pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems building gettext on Darwin (Mac OS X/Intel)



Hello,

a friend asked for help in getting pkgsrc onto his MacBook Pro.  Building
devel/gettext fails in an interesting way: 

| gcc -pipe -O2 
-I/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/include -o gettext 
-gettext.o  -L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/lib 
../lib/libgrt.a  
/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/lib/libintl.dylib -lc 
/usr/lib/libiconv.dylib 
-L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext- 
tools/work/.buildlink/lib
| /usr/bin/ld: warning -L: directory name 
(/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/lib)
 does not exist
| /usr/bin/ld: warning -L: directory name 
(/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/lib)
 does not exist
| /usr/bin/ld: can't locate file for: -lintl
| collect2: ld returned 1 exit status
|
| [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was: 
/Volumes/NetBSD/src/devel/gettext-tools/work/.gcc/bin/gcc -pipe -O2 
-I/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/include
 -o gettext gettext-gettext.o 
-L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/lib
 ../lib/libgrt.a 
-L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/lib
  -lintl -lc -liconv
| 
| [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was: 
/usr/pkg/bin/shlibtool --tag=CC --mode=link gcc -pipe -O2 
-I/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/include 
-L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/lib -o gettext 
gettext-gettext.o ../lib/libgrt.a -lintl -liconv 
-L/Volumes/NetBSD/src/devel/gettext-tools/work/.buildlink/src/devel/gettext-tools/work/.buildlink/lib
| *** Error code 1
| 
| Stop.
| bmake: stopped in  
/Volumes/NetBSD/src/devel/gettext-tools/work/gettext-0.14.6/gettext-runtime/src
| *** Error code 1

Obviously, the name of the directory gets appended to -L twice -- but where? 

Thanks for any help,
 Konrad



Home | Main Index | Thread Index | Old Index