Subject: mail/nmh fails to build on Darwin
To: None <kim@tac.nyc.ny.us>
From: Oliver V Gould <ogould@olix0r.net>
List: pkgsrc-users
Date: 01/09/2007 13:36:19
--cQXOx3fnlpmgJsTP
Content-Type: multipart/mixed; boundary="8NvZYKFJsRX2Djef"
Content-Disposition: inline


--8NvZYKFJsRX2Djef
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Using pkgsrc-2006Q4 on Darwin, I get the following (attached) linking
errors when building mail/nmh.

Any suggestions?  Is there any more useful info that I can provide?

  -Oliver

--8NvZYKFJsRX2Djef
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nmh_fail.txt"
Content-Transfer-Encoding: quoted-printable

=3D> Required installed package digest>=3D20010302: digest-20060826 found
=3D=3D=3D> Checking for vulnerabilities in nmh-1.0.4nb7
=3D> Checksum SHA1 OK for nmh-1.0.4.tar.gz
=3D> Checksum RMD160 OK for nmh-1.0.4.tar.gz
=3D=3D=3D> Building for nmh-1.0.4nb7
for subdir in h config sbr zotnet mts uip etc man; do  (cd $subdir && /usr/=
pkg/bin/bmake CC=3D'gcc -pipe' CPPFLAGS=3D'-no-cpp-precomp' DEFS=3D'-DHAVE_=
CONFIG_H'  CFLAGS=3D'-O2 -O1' LDFLAGS=3D'-L/usr/pkg/lib' LIBS=3D''  prefix=
=3D'/usr/pkg' exec_prefix=3D'/usr/pkg' bindir=3D'/usr/pkg/bin'  etcdir=3D'/=
usr/pkg/etc/nmh' libdir=3D'/usr/pkg/libexec/nmh' mandir=3D'/usr/pkg/man'  m=
ailspool=3D'/var/mail' sendmailpath=3D'/usr/sbin/sendmail'  default_editor=
=3D'vi' default_pager=3D'more' all) || exit 1;  done
for subdir in mts tws mf bboards; do  (cd $subdir && /usr/pkg/bin/bmake CC=
=3D'gcc -pipe' CPPFLAGS=3D'-no-cpp-precomp' DEFS=3D'-DHAVE_CONFIG_H'  CFLAG=
S=3D'-O2 -O1' LDFLAGS=3D'-L/usr/pkg/lib' LIBS=3D''  prefix=3D'/usr/pkg' exe=
c_prefix=3D'/usr/pkg' bindir=3D'/usr/pkg/bin'  etcdir=3D'/usr/pkg/etc/nmh' =
libdir=3D'/usr/pkg/libexec/nmh' mandir=3D'/usr/pkg/man'  mailspool=3D'/var/=
mail' sendmailpath=3D'/usr/sbin/sendmail'  default_editor=3D'vi' default_pa=
ger=3D'more' all) || exit 1;  done
for subdir in smtp; do  (cd $subdir && /usr/pkg/bin/bmake CC=3D'gcc -pipe' =
CPPFLAGS=3D'-no-cpp-precomp' DEFS=3D'-DHAVE_CONFIG_H'  CFLAGS=3D'-O2 -O1' L=
DFLAGS=3D'-L/usr/pkg/lib' LIBS=3D''  prefix=3D'/usr/pkg' exec_prefix=3D'/us=
r/pkg' bindir=3D'/usr/pkg/bin'  etcdir=3D'/usr/pkg/etc/nmh' libdir=3D'/usr/=
pkg/libexec/nmh' mandir=3D'/usr/pkg/man'  mailspool=3D'/var/mail' sendmailp=
ath=3D'/usr/sbin/sendmail'  default_editor=3D'vi' default_pager=3D'more' al=
l) || exit 1;  done
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  =20
/usr/bin/ld: warning multiple definitions of symbol _strncasecmp
=2E./sbr/libmh.a(strcasecmp.o) definition of _strncasecmp in section (__TEX=
T,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib(strcasecmp.S=
o) definition of _strncasecmp
/usr/bin/ld: warning multiple definitions of symbol _strcasecmp
=2E./sbr/libmh.a(strcasecmp.o) definition of _strcasecmp in section (__TEXT=
,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib(strcasecmp.S=
o) definition of _strcasecmp
/usr/bin/ld: Undefined symbols:
_fmt_mnull
collect2: ld returned 1 exit status

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/absolute-pkgsrc/pkgsrc/mail/nmh/work/.gcc/bin/gcc -pipe -L/Volumes=
/absolute-pkgsrc/pkgsrc/mail/nmh/work/.buildlink/lib -o fmtdump fmtdump.o .=
./config/version.o ../config/config.o ../sbr/libmh.a ../mts/smtp/libsmtp.a =
../zotnet/libzot.a -I/Volumes/absolute-pkgsrc/pkgsrc/mail/nmh/work/.buildli=
nk/include=20
*** Error code 1

Stop.
bmake: stopped in /Volumes/absolute-pkgsrc/pkgsrc/mail/nmh/work/nmh-1.0.4/u=
ip
*** Error code 1

Stop.
bmake: stopped in /Volumes/absolute-pkgsrc/pkgsrc/mail/nmh/work/nmh-1.0.4
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/mail/nmh
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/mail/nmh

--8NvZYKFJsRX2Djef--

--cQXOx3fnlpmgJsTP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iD8DBQFFo+CjC6De7no7rEgRAhFTAJ9WYAD1xrmNBlI7nlb/EnMD6g1bbgCgh4no
dqNXKAS0gz0H4sfrdNbA05Q=
=8CF/
-----END PGP SIGNATURE-----

--cQXOx3fnlpmgJsTP--