automake doesn't work for your system?
From the linker errors it seems you are missing the z-library (compress
functions) and the math-library (floor). Try adding
-lz -lm
to the library list. If it doesn't work, verify the existence of these
libraries (usually libz.* and libm.*) on your system.
good luck!
regards roel
Ronnie Tartar heeft op zondag, 15 jun 2003 om 12:19 (Europe/Amsterdam)
het volgende geschreven:
Anyone running on Solaris 8 out there? I was able to compile before
(v1.0) but had serious stability problems, was hoping to revisit. I
cannot compile again, any help would be greatly appreciated.. I
downloaded the latest version from CVS.
Thanks
Enter new libraries (preceed each by -l) or press RETURN to keep this
setting:
-lmysqlclient -lcrypto -lsec -lgen -lsocket -lnsl -ldl -lresolv
./build.sh: [-f: command not found
Creating makefile..
Done. You can now make dbmail by running 'make clean all'.
Do you want this to be executed right now?
y
rm -f *.o core mysql/*.o
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
list.o list.c
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
debug.o debug.c
debug.c: In function `trace':
debug.c:74: warning: implicit declaration of function `vsyslog'
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
pipe.o pipe.c
pipe.c: In function `insert_messages':
pipe.c:289: warning: subscript has type `char'
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
mime.o mime.c
mime.c: In function `mime_readheader':
mime.c:230: warning: subscript has type `char'
cc -o mysql/dbmysql.o -c mysql/dbmysql.c -L/usr/local/mysql/lib
-I/usr/local/mysql/include -I.
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
dbmd5.o dbmd5.c
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o md5.o
md5.c
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
bounce.o bounce.c
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
forward.o forward.c
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
memblock.o memblock.c
cc -o mysql/dbauthmysql.o -c mysql/dbauthmysql.c
-L/usr/local/mysql/lib -I/usr/local/mysql/include -I.
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
config.o config.c
config.c: In function `ReadConfig':
config.c:63: warning: subscript has type `char'
config.c:90: warning: subscript has type `char'
config.c:94: warning: subscript has type `char'
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H -c -o
misc.o misc.c
misc.c: In function `itoa':
misc.c:50: warning: implicit declaration of function `malloc'
cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_CRYPT_H main.c
-o dbmail-smtp list.o debug.o pipe.o mime.o mysql/dbmysql.o dbmd5.o
md5.o bounce.o forward.o memblock.o mysql/dbauthmysql.o config.o
misc.o -L/usr/local/mysql/lib -I/usr/local/mysql/include -I.
-lmysqlclient -lcrypto -lsec -lgen -lsocket -lnsl -ldl -lresolv
main.c: In function `main':
main.c:53: warning: implicit declaration of function `openlog'
/usr/local/mysql/lib/libmysqlclient.a(password.o): In function
`scramble':
password.o(.text+0x288): undefined reference to `floor'
password.o(.text+0x344): undefined reference to `floor'
/usr/local/mysql/lib/libmysqlclient.a(password.o): In function
`check_scramble':
password.o(.text+0x580): undefined reference to `floor'
password.o(.text+0x648): undefined reference to `floor'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x9c): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x12c): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [smtp] Error 1
Sorry, Make failed.
Please report any problems to the mailing list: [email protected]
You can find more information (including how to subscribe to the
mailinglist) on www.dbmail.org
bash-2.03# cd /usr/local/mysql/lib
_________________________
R.A. Rozendaal
IC&S
T: +31 30 2322878
F: +31 30 2322305
www.ic-s.nl