Subject: Re: Compiling nmh from pkgsrc on Darwin 6.6 fails
To: Anders Andersen <aa@computer.org>
From: Masahiro =Rhythm Drive= Ishiyama <masahiro@isl.rdc.toshiba.co.jp>
List: tech-pkg
Date: 05/28/2003 11:15:19
--Multipart_Wed_May_28_11:15:19_2003-1
Content-Type: text/plain; charset=US-ASCII
>>>>> On Tue, 27 May 2003 10:47:22 +0200, Anders Andersen <aa@computer.org> said:
> While compiling nmh (from pkgsrc) on my PowerBook with Darwin Kernel
> Version 6.6 I got the following warning and errors:
[snip]
> 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
Hmm, I guess that passing "-all_load" option to ld would be a
quick kludge. please try:
0: cd pkgsrc/mail/nmh
1: bmake extract
2: (cd work/nmh-1.0.4; patch -p0 < /some/where/Makefile-uip.diff )
3: bmake
masahiro
--Multipart_Wed_May_28_11:15:19_2003-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="Makefile-uip.diff"
Content-Transfer-Encoding: 7bit
--- uip/Makefile.in.gen Fri Jan 7 06:30:07 2000
+++ uip/Makefile.in Wed May 28 09:31:47 2003
@@ -122,7 +122,7 @@
$(LINK) flist.o $(LINKLIBS)
fmtdump: fmtdump.o $(LOCALLIBS)
- $(LINK) fmtdump.o $(LINKLIBS)
+ $(LINK) fmtdump.o -all_load $(LINKLIBS)
folder: folder.o $(LOCALLIBS)
$(LINK) folder.o $(LINKLIBS)
--Multipart_Wed_May_28_11:15:19_2003-1--