There is something fishy here: Where is this libstdc++.a?
First you say it is in /lib and then you say it is in /sw/lib.
sorry for this mess, I didn�t use copy/paste so it lead to errors, however I verified location of the file...
I found libstdc++.a in /usr/lib:
.......
lrwxr-xr-x 1 root wheel 16 Feb 11 10:01 libssl.dylib -> libssl.0.9.dylib
-rw-r--r-- 1 root wheel 480768 Feb 11 10:01 libstdc++.a
lrwxr-xr-x 1 root wheel 15 Feb 11 10:01 libtcl.dylib -> libtcl8.3.dylib
-r-xr-xr-x 1 root wheel 589800 Jan 7 10:48 libtcl8.3.dylib
-rw-r--r-- 1 root wheel 593388 Oct 6 18:22 libtcl8.3.dylib.1
-rw-r--r-- 1 root wheel 593388 Oct 6 18:22 libtcl8.3.dylib.2
-rw-r--r-- 1 root wheel 593388 Oct 6 18:22 libtcl8.3.dylib.3
-rw-r--r-- 1 root wheel 593388 Oct 6 18:22 libtcl8.3.dylib.4
-rw-r--r-- 1 root wheel 593388 Oct 6 19:13 libtcl8.3.dylib.5
-rw-r--r-- 1 root wheel 1716 Feb 11 10:01 libtclstub8.3.a
........
(partial list of /usr/lib/)
This library is NOT in /sw/lib:
.......
-rw-r--r-- 1 root admin 356532 Jan 23 18:50 libssl.a
lrwxr-xr-x 1 root admin 18 Feb 10 13:36 libssl.dylib -> libssl.0.9.6.dylib
-rw-r--r-- 1 root admin 16632 Jan 19 12:54 libstroke.a
-rwxr-xr-x 1 root admin 501 Jan 19 12:54 libstroke.la
lrwxr-xr-x 1 root admin 23 Feb 10 13:36 libtcl.dylib -> /sw/lib/libtcl8.3.dylib
-r-xr-xr-x 1 root admin 594612 Feb 6 15:24 libtcl8.3.dylib
lrwxr-xr-x 1 root admin 23 Feb 10 13:36 libtclstub.a -> /sw/lib/libtclstub8.3.a
........
(partial list of /sw/lib/)
but I have a /lib directory that contains a link (If I understand well the meaning of ->) to a default libstdc++.a library:
.........
-rwxr-xr-x 1 root admin 261472 Jan 17 15:44 libssl.0.9.dylib
lrwxr-xr-x 1 root admin 16 Jan 23 15:17 libssl.dylib -> libssl.0.9.dylib
lrwxr-xr-x 1 root admin 30 Jan 23 15:17 libstdc++.a -> gcc/darwin/default/libstdc++.a
lrwxr-xr-x 1 root admin 15 Jan 23 15:17 libtcl.dylib -> libtcl8.3.dylib
-r-xr-xr-x 1 root admin 589800 Jan 17 15:44 libtcl8.3.dylib
-rw-r--r-- 1 root admin 593388 Jan 17 15:44 libtcl8.3.dylib.1
-rw-r--r-- 1 root admin 593388 Jan 17 15:44 libtcl8.3.dylib.2
-rw-r--r-- 1 root admin 593388 Jan 17 15:44 libtcl8.3.dylib.3
-rw-r--r-- 1 root admin 1716 Jan 17 15:44 libtclstub8.3.a
.......
(partial list of /lib)
And I also found the
/lib/gcc/darwin/default/libstcd++.a
together with libcc_dynamic.a & libcc_kext.a
furthermore I can find
/usr/lib/gcc/darwin/default/libstcd++.a
together with libcc_dynamic.a libcc_kext.a & libg2c.a
Ok, that�s a mess but if I do: find -iname libstcd++.a from the root, I don�t find any other entries; only:
./lib/gcc/darwin/2.95.2/libstdc++.a
./lib/libstdc++.a
./usr/lib/gcc/darwin/2.95.2/libstdc++.a
./usr/lib/libstdc++.a
I don't have it in either. I only have /usr/lib/libstdc++.a.
I don't even have a /lib directory.
do you think I can safely remove the /lib content. I think I copied the whole /usr/lib in a newly created /lib/ before one major update, around one month ago and then I forgot it (I did the same for /bin/). Since they may have evolved (may they ?) from that moment I don�t know what I can do to clean up this mess.
What's the version of your Dev Tools? "c++ -v" gives what?
c++ --version gives:
2.95.2
c++ -v gives:
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-932.1, based on gcc version 2.95.2 19991024 (release)
Is it too old ? I update to Xfree86complete 4.2.0 few weeks ago and I thought it updated also Darwin. Should I update Darwin to the beta 2.3 ?
Eric DUFOUR
