[Mimedefang] undefined reference to strlcpy and other sendmail routines on make

Christopher Biow biow at ezmort.com
Thu Feb 27 04:45:01 EST 2003


I'm getting the undefined reference, despite the apparent presence of the
strlcpy symbol in /usr/local/lib/libsm.a, as copied from sendmail-8.12.7
tarball install, according to the mimedefang compile directions. "-lsm"
doesn't seem to help, either.

Compiling on Redhat 8.0.

|[root at planes mimedefang-2.30]# make
|gcc -g -O2 -Wall -Wstrict-prototypes -pthread -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o /usr/lib/libmilter.a /usr/local/lib/libsm.a -lpthread -lnsl 
|/usr/lib/libmilter.a(main.o): In function `smfi_register':
|main.o(.text+0x74): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(main.o): In function `smfi_setconn':
|main.o(.text+0x12f): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(listener.o): In function `mi_milteropen':
|listener.o(.text+0x184): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(engine.o): In function `st_connectinfo':
|engine.o(.text+0x83a): undefined reference to `strlcpy'
|collect2: ld returned 1 exit status
|make: *** [mimedefang] Error 1
|[root at planes mimedefang-2.30]# grep strlcpy /usr/local/lib/libsm.a      
|Binary file /usr/local/lib/libsm.a matches
|[root at planes mimedefang-2.30]# gcc -g -O2 -Wall -Wstrict-prototypes -pthread -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o /usr/lib/libmilter.a /usr/local/lib/libsm.a -lsm -lpthread -lnsl
|/usr/lib/libmilter.a(main.o): In function `smfi_register':
|main.o(.text+0x74): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(main.o): In function `smfi_setconn':
|main.o(.text+0x12f): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(listener.o): In function `mi_milteropen':
|listener.o(.text+0x184): undefined reference to `strlcpy'
|/usr/lib/libmilter.a(engine.o): In function `st_connectinfo':
|engine.o(.text+0x83a): undefined reference to `strlcpy'
|collect2: ld returned 1 exit status



More information about the MIMEDefang mailing list