Fwd: Help with build failing

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

 



Hi,

I am trying to build Xalan (1.10.0) on Solaris 8. I am getting the
following error:


g++ -DSOLARIS -fPIC -L/usr/local/lib  -DXALAN_INMEM_MSG_LOADER   \
        -lc  -L/tmp/njakhar/ovaldi/lib -lxerces-c
../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o
../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o
../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o
../../../../bin/MsgCreator
Undefined                       first referenced
 symbol                             in file
endl(ostream &)                     ../../../../obj/MsgCreator.o
ostream::operator<<(char const *)   ../../../../obj/MsgCreator.o
cerr                                ../../../../obj/MsgCreator.o
cout                                ../../../../obj/MsgCreator.o
ostream::operator<<(int)            ../../../../obj/SAX2Handler.o
ld: fatal: Symbol referencing errors. No output written to
../../../../bin/MsgCreator
collect2: ld returned 1 exit status
gmake[3]: *** [../../../../bin/MsgCreator] Error 1
gmake[3]: Leaving directory
`/tmp/njakhar/ovaldi/3rdParty/xml-xalan/c/src/xalanc/Utils/MsgCreator'
gmake[2]: *** [../../../bin/MsgCreator] Error 2
gmake[2]: Leaving directory
`/tmp/njakhar/ovaldi/3rdParty/xml-xalan/c/src/xalanc/Utils'
gmake[1]: *** [locale] Error 2
gmake[1]: Leaving directory
`/tmp/njakhar/ovaldi/3rdParty/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2



The following are the contents of /usr/local/lib:

bash-2.03$ ls -al /usr/local/lib
total 8408
drwxr-xr-x   3 bin      bin          512 Aug 12  2009 .
drwxr-xr-x  12 root     other        512 Sep  9  2009 ..
lrwxrwxrwx   1 root     other         18 Aug 12  2009 gcc-lib ->
/tools/lib/gcc-lib
-rw-r--r--   1 bin      bin       337994 Jul 21  2007 libg2c.a
-rwxr-xr-x   1 bin      bin          732 Jul 21  2007 libg2c.la
lrwxrwxrwx   1 root     other         15 Nov 26  2008 libg2c.so ->
libg2c.so.0.0.0
lrwxrwxrwx   1 root     other         15 Nov 26  2008 libg2c.so.0 ->
libg2c.so.0.0.0
-rwxr-xr-x   1 bin      bin       162240 Jul 21  2007 libg2c.so.0.0.0
lrwxrwxrwx   1 root     other         13 Nov 26  2008 libgcc_s.so ->
libgcc_s.so.1
-rw-r--r--   1 bin      bin       168408 Jul 21  2007 libgcc_s.so.1
-rw-r--r--   1 bin      bin      1947292 Jul 21  2007 libstdc++.a
-rwxr-xr-x   1 bin      bin         1162 Jul 21  2007 libstdc++.la
lrwxrwxrwx   1 root     other         18 Nov 26  2008 libstdc++.so ->
libstdc++.so.6.0.3
lrwxrwxrwx   1 root     other         18 Nov 26  2008 libstdc++.so.6
-> libstdc++.so.6.0.3
-rwxr-xr-x   1 bin      bin      1614392 Jul 21  2007 libstdc++.so.6.0.3
drwxr-xr-x   2 root     other        512 May 27  2009 perl5

Which means libstdc++ is present in /usr/local/lib. Also, including
/usr/local/lib in the library search path (-L/usr/local/lib) makes no
difference.


Some other information:

bash-2.03$ gcc --version
2.95.2
bash-2.03$ g++ --version
2.95.2

GCC_EXEC_PREFIX=/tools/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2
CPLUS_INCLUDE_PATH=/tools/include/g++-3:/tools/sparc-sun-solaris2.5.1/include:/tools/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/include
C_INCLUDE_PATH=/tools/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/include
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/tools/bin


Can somebody help me fix the problem? Please forgive if I have
overlooked something obvious.
Also, please note that I do not have root access to this box, and its
compiler chain might well be broken.

Thanks in advance.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux