Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

Make Error: conf_lex.c

Make Error: conf_lex.c

2004-10-11 by martinmcwhorter

I am trying to make milter-greylist 1.4 from source on a redhat 9.0
linux machine.

The error I get is:

conf_yacc.y:148:22: conf_lex.c: No such file or directory
make: *** [conf_yacc.o] Error 1

This seems to make sence, as there is no conf_lex.c in the tarball. 

Does anyone have an idea where I am going wrong?

Martin

Re: [milter-greylist] Make Error: conf_lex.c

2004-10-11 by Emmanuel Dreyfus

On Mon, Oct 11, 2004 at 03:42:58PM -0000, martinmcwhorter wrote:
> conf_yacc.y:148:22: conf_lex.c: No such file or directory
> make: *** [conf_yacc.o] Error 1
> 
> This seems to make sence, as there is no conf_lex.c in the tarball. 

It is generated using lex (or flex) from conf_lex.l
Do you have another error before about this operation? 

lex conf_lex.l should give you a lex.yy.c
rename it to conf_lex.c and you should be able to resume the build.

If lex fails, please report the error.

-- 
Emmanuel Dreyfus
manu@...

Re: Make Error: conf_lex.c

2004-10-11 by martinmcwhorter

> It is generated using lex (or flex) from conf_lex.l
> Do you have another error before about this operation? 

No other error.
 
> lex conf_lex.l should give you a lex.yy.c
> rename it to conf_lex.c and you should be able to resume the build.
> 
> If lex fails, please report the error.

Lex does not fail, but make failed after that with:

dump_yacc.y:44:22: dump_lex.c: No such file or directory
make: *** [dump_yacc.o] Error 1

So I did a lex dump_lex.l > dump_lex.c

I ran make again now I get:
[root@lennon milter-greylist-1.4]# make
gcc -g -O2 -Wall -D_XOPEN_SOURCE=500 -D_BSD_SOURCE   -c -o dump_yacc.o
dump_yacc.c
gcc -o milter-greylist milter-greylist.o pending.o except.o sync.o
conf_yacc.o dump_yacc.o conf.o autowhite.o dump.o spf.o  -lresolv
-lnsl -lpthread -lmilter
dump_yacc.o(.text+0x2c4): In function `dump_parse':
/usr/local/src/milter-greylist-1.4/y.tab.c:467: undefined reference to
`dump_error'
dump_yacc.o(.text+0x2d9):/usr/local/src/milter-greylist-1.4/y.tab.c:335:
undefined reference to `dump_error'
dump_yacc.o(.text+0x471):/usr/local/src/milter-greylist-1.4/y.tab.c:434:
undefined reference to `dump_lex'
dump_yacc.o(.text+0x58d):/usr/local/src/milter-greylist-1.4/y.tab.c:294:
undefined reference to `dump_lex'
dump.o(.text+0x369): In function `dump_reload':
/usr/local/src/milter-greylist-1.4/dump.c:237: undefined reference to
`dump_in'
collect2: ld returned 1 exit status
make: *** [milter-greylist] Error 1

Re: [milter-greylist] Re: Make Error: conf_lex.c

2004-10-11 by Emmanuel Dreyfus

On Mon, Oct 11, 2004 at 04:00:31PM -0000, martinmcwhorter wrote:
> > It is generated using lex (or flex) from conf_lex.l
> Lex does not fail, but make failed after that with:
> 
> dump_yacc.y:44:22: dump_lex.c: No such file or directory
> make: *** [dump_yacc.o] Error 1

What do you have in the makefile about lex? How LEX is defined? 
Does make clean && make conf_lex.l do something?

-- 
Emmanuel Dreyfus
manu@...

Re: Make Error: conf_lex.c

2004-10-11 by martinmcwhorter

> What do you have in the makefile about lex? How LEX is defined? 
> Does make clean && make conf_lex.l do something?

I am not sure what I did, but I must have done something wrong. I rm
-fr the greylist-1.4 dir and retared (yeah I know) xvfz it. Make
worked fine this time.

Re: [milter-greylist] Re: Make Error: conf_lex.c

2004-10-11 by Emmanuel Dreyfus

On Mon, Oct 11, 2004 at 04:18:02PM -0000, martinmcwhorter wrote:
> I am not sure what I did, but I must have done something wrong. I rm
> -fr the greylist-1.4 dir and retared (yeah I know) xvfz it. Make
> worked fine this time. 
 
I suspect you forgot to run configure

-- 
Emmanuel Dreyfus
manu@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.