Subject: Compiling nmh from pkgsrc on Darwin 6.6 fails
To: None <tech-pkg@netbsd.org>
From: Anders Andersen <aa@computer.org>
List: tech-pkg
Date: 05/27/2003 10:47:22
While compiling nmh (from pkgsrc) on my PowerBook with Darwin Kernel
Version 6.6 I got the following warning and errors:
(...)
gcc -pipe -L/usr/pkg/lib -o ali ali.o aliasbr.o ../config/version.o
../config/config.o ../sbr/libmh.a ../mts/smtp/libsmtp.a ../zotnet/libzot.a
ld: warning multiple definitions of symbol _strncasecmp
../sbr/libmh.a(strcasecmp.o) definition of _strncasecmp in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strncasecmp
ld: warning multiple definitions of symbol _strcasecmp
../sbr/libmh.a(strcasecmp.o) definition of _strcasecmp in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
(... these kind of warnings are repeated many times ...)
gcc -pipe -L/usr/pkg/lib -o fmtdump fmtdump.o ../config/version.o
../config/config.o ../sbr/libmh.a ../mts/smtp/libsmtp.a ../zotnet/libzot.a
ld: warning multiple definitions of symbol _strncasecmp
../sbr/libmh.a(strcasecmp.o) definition of _strncasecmp in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strncasecmp
ld: warning multiple definitions of symbol _strcasecmp
../sbr/libmh.a(strcasecmp.o) definition of _strcasecmp in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
ld: Undefined symbols:
_fmt_mnull
*** Error code 1
Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/mail/nmh/work/nmh-1.0.4/uip
*** Error code 1
Any ideas. The same problem is discussed here (with the complete
configure/compile dump):
http://www.mail-archive.com/nmh-workers@mhost.com/msg00818.html
(aa)