Subject: net/ORBit2 not building under Linux
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/30/2003 08:20:17
(I blind-carbon copied this to maintainer.)
net/ORBit2 is not building for me under Linux when using pkgsrc.
Building ORBit2-2.6.0 from source (without pkgsrc) on same machine works
fine.
Before I send-pr this, can someone look at my troubleshooting below?
It fails here:
/bin/sh ../../libtool --mode=link cc -O2 -I/usr/include -Wl,-R/usr/lib
-liconv -L/usr/lib -o client -static -module everything-skels.o
everything-stubs.o everything-common.o client.o
../../src/orb/libORBit-2.la
../../src/services/imodule/libORBit-imodule-2.la -Wl,-R/usr/lib
-Wl,--export-dynamic -lIDL-2 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic -llinc -lgthread-2.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lintl
cc -O2 -I/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/include
-Wl,-R/usr/lib -o client everything-skels.o everything-stubs.o
everything-common.o client.o -Wl,-R/usr/lib -Wl,--export-dynamic
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic
-L/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib
../../src/orb/.libs/libORBit-2.a /usr/lib/libpopt.a
../../src/services/imodule/.libs/libORBit-imodule-2.a /usr/lib/libIDL-2.a
/usr/lib/liblinc.a /usr/lib/libgthread-2.0.a -lpthread
/usr/lib/libgobject-2.0.a /usr/lib/libgmodule-2.0.a -ldl
/usr/lib/libglib-2.0.a /usr/lib/libiconv.a /usr/lib/libintl.a -lc
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libintl.a(plural-exp.o)(.text+0x52):
In function `libintl_gettext_extract_plural':
: undefined reference to `__ctype_b'
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libintl.a(localealias.o)(.text+0x1a9):
In function `read_alias_file':
: undefined reference to `__ctype_b'
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libintl.a(localealias.o)(.text+0x20f):
In function `read_alias_file':
: undefined reference to `__ctype_b'
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libintl.a(l10nflist.o)(.text+0x549):
In function `_nl_normalize_codeset':
: undefined reference to `__ctype_b'
... and so on ...
The .work.log has:
/usr/bin/libtool --mode=link cc -O2
-I/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/include -Wl,-R/usr/lib
-liconv -L/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib -o client
-static -module everything-skels.o everything-stubs.o everything-common.o
client.o ../../src/orb/libORBit-2.la
../../src/services/imodule/libORBit-imodule-2.la -Wl,-R/usr/lib
-Wl,--export-dynamic -lIDL-2 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic -llinc -lgthread-2.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lintl
/usr/bin/cc -O2 -I/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/include
-Wl,-R/usr/lib -o client everything-skels.o everything-stubs.o
everything-common.o client.o -Wl,-R/usr/lib -Wl,--export-dynamic
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic
-L/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib
../../src/orb/.libs/libORBit-2.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libpopt.a
../../src/services/imodule/.libs/libORBit-imodule-2.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libIDL-2.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/liblinc.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libgthread-2.0.a
-lpthread
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libgobject-2.0.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libgmodule-2.0.a -ldl
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libglib-2.0.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libiconv.a
/tmp/pkgsrc/net/ORBit2/work.puget/.buildlink/lib/libintl.a -lc
When building without pkgsrc (successfully), the related output is:
/bin/sh ../../libtool --mode=link gcc -g -O2 -o client -static -module
everything-skels.o everything-stubs.o everything-common.o client.o
../../src/orb/libORBit-2.la
../../src/services/imodule/libORBit-imodule-2.la -Wl,-R/usr/lib
-Wl,--export-dynamic -lIDL-2 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic -llinc -lgthread-2.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
gcc -g -O2 -o client everything-skels.o everything-stubs.o
everything-common.o client.o -Wl,-R/usr/lib -Wl,--export-dynamic
-Wl,-R/usr/lib -pthread -Wl,--export-dynamic
../../src/orb/.libs/libORBit-2.a -ldl /usr/lib/libpopt.a
../../src/services/imodule/.libs/libORBit-imodule-2.al /usr/lib/libIDL-2.a
-ldl -ldl /usr/lib/liblinc.a /usr/lib/libintl.a -lc
/usr/lib/libgthread-2.0.a -lpthread /usr/lib/libgobject-2.0.a
/usr/lib/libgmodule-2.0.a -ldl -ldl /usr/lib/libglib-2.0.a
/usr/lib/libiconv.a
I have:
ltmain.sh (GNU libtool) 1.4a (1.641.2.255 2001/05/22 10:39:30)
from the libtool-base-1.4.20010614nb14 package.
My GCC is 3.3.1; I have gcc3-c++-3.3.1 and gcc3-c-3.3.1 installed.
Jeremy C. Reed
http://bsd.reedmedia.net/