Subject: pkgsrc g++ 3.3.2 breaks on 1.6.2_RC4?
To: None <netbsd-help@netbsd.org>
From: ali (Anders Lindgren) <dat94ali@ludat.lth.se>
List: netbsd-help
Date: 02/24/2004 13:41:25
On 1.6.2_RC4 port-sparc64 with pkgsrc g++ 3.3.2, it looks
like g++ is -- despite all(?) the -Wl,--rpath and -L options -- trying to
use the system libstdc++ instead of the pkgsrc 3.3.x one? I know others
have had the same problem but I couldn't find anything relevant when I
googled around mail-index.
What is /usr/lib/libstdc++.so doing in this picture? Doesn't the pkgsrc
g++ check for its own /local/pkg/gcc3/lib/libstdc++.so first?
I don't know what to do about this since I don't know what is actually
wrong -- the commandline looks ok afaict so it looks more like a
configuration error in the g++3 package to me?
Hints&help would be much appreciated. :)
-----------8<--------------------8<---------------
/local/pkg/gcc3/bin/c++ -O3 -DDBUG_OFF -O -ffixed-g4 -mcpu=ultrasparc
-mtune=ultrasparc -O2 -pipe -I/local/pkg/include -fno-implicit-templates
-fno-exceptions -fno-rtti -Dunix -Wl,-R/local/pkg/gcc3/lib/gcc-lib/sparc64--netbsd/3.3.2
-Wl,-R/local/pkg/gcc3/lib -Wl,-R/local/pkg/lib/mysql -Wl,-R/local/pkg/lib -o
.libs/mysql mysql.o readline.o sql_string.o completion_hash.o
-L/local/pkg/gcc3/lib/gcc-lib/sparc64--netbsd/3.3.2 -L/local/pkg/gcc3/lib -L/local/pkg/lib -lreadline
-lcurses -ltermcap ../libmysql/.libs/libmysqlclient.so -L/usr/lib -lz -lcrypt
-lm -lssl -lcrypto -Wl,--rpath -Wl,/local/pkg/lib/mysql
/usr/lib/libstdc++.so: warning: reference to compatibility vfork();
include <unistd.h> for correct reference
/usr/lib/libstdc++.so: undefined reference to `exception type_info function'
/usr/lib/libstdc++.so: undefined reference to `__cp_push_exception'
/usr/lib/libstdc++.so: undefined reference to `__rtti_user'
/usr/lib/libstdc++.so: undefined reference to `__rtti_si'
/usr/lib/libstdc++.so: undefined reference to `__throw'
/usr/lib/libstdc++.so: undefined reference to `terminate(void)'
/usr/lib/libstdc++.so: undefined reference to `exception type_info node'
/usr/lib/libstdc++.so: undefined reference to `__builtin_vec_new'
/usr/lib/libstdc++.so: undefined reference to `__builtin_vec_delete'
/usr/lib/libstdc++.so: undefined reference to `__rtti_class'
/usr/lib/libstdc++.so: undefined reference to `__builtin_delete'
/usr/lib/libstdc++.so: undefined reference to `exception virtual table'
/usr/lib/libstdc++.so: undefined reference to `__builtin_new'
/usr/lib/libstdc++.so: undefined reference to `__eh_alloc'
collect2: ld returned 1 exit status
gmake[2]: *** [mysql] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/databases/mysql4-client/work/mysql-4.0.17/client'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/pkgsrc/databases/mysql4-client/work/mysql-4.0.17'
-----------8<--------------------8<---------------
--
/ali
:wq