Solaris and g++

Paul D. Smith pasmith@nortelnetworks.com
Fri Jan 15 15:48:00 GMT 1999


Solaris 2.5.1, egcs-2.91.60, configure --prefix=/usr/global --enable-shared

All tests of the c++ or g++ compilers are failing due to link errors.

I know why (missing -R options on the link line of the app) and I read
the FAQ and I understand why you have a problem with -R.

But I'm quite unsatisfied with the current situation.  I know that if
the network is down the app won't function properly due to shared
library problems.  We have many, many apps like this; we're well used
to the problems and their solutions.

At the very least, there should be some way of obtaining this behavior
(automatic -R addition to the link line invoked from c++/g++) for those
who want it; perhaps an extra configure option or some special set of
commands listed in the FAQ.

Currently I can't install the shared libraries for this reason.

Also, I feel that these shared libraries would better be stored under
the gcc-lib/... directory, rather than in ${libdir}: if -R${libdir} is
added automatically to the link line that may not be what the user
wants; extra, unwanted libraries may be used.  Putting the shared
library (or a link to it) in the version-specific directory would
alleviate this problem.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.



More information about the Gcc-bugs mailing list