Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > FreeBSD, gcc 3.3.6 from ports, and

Thread Tools

FreeBSD, gcc 3.3.6 from ports, and

Razvan Cojocaru
Posts: n/a

I'm running FreeBSD 5.4, and using the gcc 3.3.6 from /usr/ports/lang/gcc33:

$ gcc33 -v
Reading specs from
Configured with: ./..//gcc-3.3.6/configure --disable-nls
--with-system-zlib --program-suffix=33
--enable-languages=c,c++,objc,f77 --disable-shared --prefix=/usr/local
Thread model: posix
gcc version 3.3.6 [FreeBSD]

I've compiled a run-time loadable module (.so), and linked the libstdc++
statically into it
(/usr/local/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6/libstdc++.a). I
can dlopen() it just fine, but when I try to dlsym() something from it,
I get a "Shared object "" not found, required by
"myprogram"" error. There's no on my platform anywhere, and
I need to get rid of that dependency.

I've noticed that if I don't link the libstc++ library into the loadable
plugin the error doesn't appear, but then I get unresolved symbols.

Any suggestions are greatly appreciated.

Razvan Cojocaru
KeyID: 1024D/04CA34DE
Reply With Quote
Posts: n/a
Razvan Cojocaru wrote:
> Any suggestions are greatly appreciated.

Try comp.unix.programmer

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gcc 3.4.X to Gcc 4.1.X upgrading kas C++ 1 04-22-2010 08:56 PM
GCC 3.4.3 and GCC 4.1.2 ashnin C++ 1 07-07-2008 01:10 PM
Template construction in old gcc 3.3.3 does not compile in gcc 3.4.4 C++ 5 09-17-2005 12:27 AM
gcc 2.95 and gcc 3.2 C++ 8 03-16-2005 02:34 AM
C99 structure initialization in gcc-2.95.3 vs gcc-3.3.1 Kevin P. Fleming C Programming 2 11-06-2003 05:15 AM