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

egcs linking desparation and that pesky libstdc++272



Alright, this has gotten to the point of desparation.

Background:  
- I'm the maintiner of 'jade', which includes jade, sp, and sp-dev.  It's 
   in C++.
- The package also includes a shared library
- It's all working for gcc 2.7.x vintage
- AFAIK, I'm supposed to use egcs/libstc++ 2.8
- local versions
  libstdc++2.8    2.90.26-1      The GNU stdc++ library (egcs version)
  g++             2.90.26-1      The GNU (egcs) C++ compiler.

Problem:
<apharris@burrito:lib> ldd libsp.so
        libstdc++.so.2.7.2 => /usr/lib/libstdc++.so.2.7.2 (0x40170000)
        libc.so.6 => /lib/libc.so.6 (0x401ad000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
        libm.so.6 => /lib/libm.so.6 (0x40250000)
<apharris@burrito:nsgmls> ldd nsgmls
        libsp.so.1 => /usr/lib/libsp.so.1 (0x40011000)
        libstdc++.so.2.8 => /usr/lib/libstdc++.so.2.8 (0x4017c000)
        libm.so.6 => /lib/libm.so.6 (0x401c9000)
        libc.so.6 => /lib/libc.so.6 (0x401e2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libstdc++.so.2.7.2 => /usr/lib/libstdc++.so.2.7.2 (0x40285000)

No matter how I link libsp, I can't get it to link with libstdc++ 2.8!
I've tried the following (note gcc is 272, c++ is egcs)

c++ --shared -o libsp.so.1.3 -Wl,-soname,libsp.so.1.3 
  <object files> 
  (this one generated the one above)
c++ --shared -o libsp.so.1.3 -Wl,-soname,libsp.so.1.3 
  <object files> -lc -lstdc++
c++ --shared -o libsp.so.1.3 -Wl,-soname,libsp.so.1.3 
  <object files> -lc /usr/lib/libstdc++.so.2.8 

Nothing works.  It either links with libstc++2.7.2 *and* 2.8, or, in the 
first case, 272 only.

If anyone can give me a clue, let me know.  Perhaps the new version just 
uploaded fixes the problem?

Is it okay to stick with the old g++ 2.7.2.x ?

.....A. P. Harris...apharris@onShore.com...<URL:http://www.onShore.com/>



--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: