On Fri, 29 Oct 2004, Charles Sprickman wrote:

I grabbed the latest CVS, but it bombs while trying to compile vpopmaild:

gcc -I. -I/usr/local/include/mysql -I. -I. -I. -g -O2 -Wall -c `test -f 'vpopmaild.c' || echo './'`vpopmaild.c
gcc -g -O2 -Wall -o vpopmaild vpopmaild.o libvpopmail.a -L/usr/local/lib/mysql -lmysqlclient -lz -lm -lcrypt
vpopmaild.o: In function `get_lastauth':
/usr/local/src/toaster/vpopmail/cvs/vpopmail/vpopmaild.c(.text+0x3d00): undefined reference to `vget_lastauth'
/usr/local/src/toaster/vpopmail/cvs/vpopmail/vpopmaild.c(.text+0x3d15): undefined reference to `vget_lastauthip'
gmake[2]: *** [vpopmaild] Error 1
gmake[2]: Leaving directory `/usr/local/src/toaster/vpopmail/cvs/vpopmail'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/toaster/vpopmail/cvs/vpopmail'
gmake: *** [all] Error 2

I think I fixed it, but I'm not much of a C person. I just kind of cut and pasted some ifdefs from vpopmail.c that seem to check whether this was configured with "lastauth" or not:


[EMAIL PROTECTED]/usr/local/src/toaster/vpopmail/cvs/vpopmail]# diff vpopmaild.c.dist vpopmaild.c.fix
97a98
#ifdef ENABLE_AUTH_LOGGING
98a100
#endif
154a157
#ifdef ENABLE_AUTH_LOGGING
155a159
#endif
2163a2168
#ifdef ENABLE_AUTH_LOGGING
2211a2217
#endif

It builds... :)

Charles

Should I back off to an earlier version?

Is there any chance this will work against 5.4.7 (perhaps if vpopmaild were static)?

Charles

--
Ken Jones


Reply via email to