You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Nick Bastin <nb...@opnet.com> on 2004/03/30 23:13:45 UTC

Building 1.7.0 on solaris 8 with ICU (install problem)

Xalan successfully builds ('make') on Solaris 8 with ICU, but when I  
'make install' it fails with:

make -C XalanMsgLib
make[3]: Entering directory  
`/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/ 
XalanMsgLib'
CC -O -DNDEBUG -I/tmp/icu/include     -KPIC -mt -xs -ptr../../../../obj  
-features=rtti -DSOLARIS -D_REENTRANT -I/stlport  
-DXALAN_INMEM_MSG_LOADER -c  
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src  
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/include  
-I../../../../nls/include -I/tmp/xercesc//src/  
-I/tmp/xercesc//include/xercesc -I/tmp/xercesc//include/  -o  
../../../../obj/XalanMsgLib.o  
/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/ 
XalanMsgLib.cpp
CC -DSOLARIS -G -ptr  -h libxalanMsg.so.17   -mt -lm -L/tmp/icu  
-L/tmp/icu/lib -L/tmp/icu/data -lpthread  -L/usr/local/SUNWspro/lib  
-L/usr/ccs/lib -lc -lgen -L/tmp/xercesc//lib -lxerces-c    
../../../../obj/XalanMsgLib.o -o ../../../../lib/libxalanMsg.so.17.0
CC: Warning: Warning: no directory is given for -ptr, using default
ln -fs libxalanMsg.so.17.0 ../../../../lib/libxalanMsg.so
ln: cannot create ../../../../lib/libxalanMsg.so: File exists
make[3]: *** [../../../../lib/libxalanMsg.so.17.0] Error 2


Has anybody else seen this problem?  I would imagine there's some sort  
of workaround, but I haven't thoroughly investigated it at this point.   
I'm curious as to why make install is compiling more code, and also why  
it's using flags in CC which have long been deprecated (-ptr).

--
Nick


Re: Building 1.7.0 on solaris 8 with ICU (install problem)

Posted by da...@us.ibm.com.



Hi Nick,

I think the dependency problems with building the message loaders is now
fixed, so you won't see this problem in the next release.  In the meantime,
you can manually remove the symlinks before you start the install.

As far as the deprecated -ptr option -- I'll take a look at the compiler
docs, but it's probably a remnant from earlier versions of the Sun
compiler.

Thanks!

Dave



|---------+--------------------------->
|         |           Nick Bastin     |
|         |           <nbastin@opnet.c|
|         |           om>             |
|         |                           |
|         |           03/30/2004 01:13|
|         |           PM              |
|         |           Please respond  |
|         |           to xalan-c-users|
|---------+--------------------------->
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                                  |
  |        To:      xalan-c-users@xml.apache.org                                                                                                     |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                                                             |
  |        Subject: Building 1.7.0 on solaris 8 with ICU (install problem)                                                                           |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|



Xalan successfully builds ('make') on Solaris 8 with ICU, but when I
'make install' it fails with:

make -C XalanMsgLib
make[3]: Entering directory
`/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/
XalanMsgLib'
CC -O -DNDEBUG -I/tmp/icu/include     -KPIC -mt -xs -ptr../../../../obj
-features=rtti -DSOLARIS -D_REENTRANT -I/stlport
-DXALAN_INMEM_MSG_LOADER -c
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/include
-I../../../../nls/include -I/tmp/xercesc//src/
-I/tmp/xercesc//include/xercesc -I/tmp/xercesc//include/  -o
../../../../obj/XalanMsgLib.o
/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/
XalanMsgLib.cpp
CC -DSOLARIS -G -ptr  -h libxalanMsg.so.17   -mt -lm -L/tmp/icu
-L/tmp/icu/lib -L/tmp/icu/data -lpthread  -L/usr/local/SUNWspro/lib
-L/usr/ccs/lib -lc -lgen -L/tmp/xercesc//lib -lxerces-c
../../../../obj/XalanMsgLib.o -o ../../../../lib/libxalanMsg.so.17.0
CC: Warning: Warning: no directory is given for -ptr, using default
ln -fs libxalanMsg.so.17.0 ../../../../lib/libxalanMsg.so
ln: cannot create ../../../../lib/libxalanMsg.so: File exists
make[3]: *** [../../../../lib/libxalanMsg.so.17.0] Error 2


Has anybody else seen this problem?  I would imagine there's some sort
of workaround, but I haven't thoroughly investigated it at this point.
I'm curious as to why make install is compiling more code, and also why
it's using flags in CC which have long been deprecated (-ptr).

--
Nick




Re: Building 1.7.0 on solaris 8 with ICU (install problem)

Posted by Matthew Hoyt <mh...@ca.ibm.com>.



Hi Nick,

As mentioned, the dependency issue has already been fixed.

The specific reason for the failure though was 'ln'.   As mentioned by
Berin Lautenbach
(http://marc.theaimsgroup.com/?l=xalan-dev&m=107528687330706&w=2)  'ln' for
Solaris has slightly different semantics.    I have committed his
suggestion that we explicitly delete symlinks before creating them.

-Matt.



                                                                           
             Nick Bastin                                                   
             <nbastin@opnet.                                               
             com>                                                       To 
                                     xalan-c-users@xml.apache.org          
             03/30/2004                                                 cc 
             04:13 PM                                                      
                                                                   Subject 
                                     Building 1.7.0 on solaris 8 with ICU  
             Please respond          (install problem)                     
                   to                                                      
              xalan-c-users                                                
                                                                           
                                                                           
                                                                           
                                                                           




Xalan successfully builds ('make') on Solaris 8 with ICU, but when I
'make install' it fails with:

make -C XalanMsgLib
make[3]: Entering directory
`/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/
XalanMsgLib'
CC -O -DNDEBUG -I/tmp/icu/include     -KPIC -mt -xs -ptr../../../../obj
-features=rtti -DSOLARIS -D_REENTRANT -I/stlport
-DXALAN_INMEM_MSG_LOADER -c
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src
-I/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/include
-I../../../../nls/include -I/tmp/xercesc//src/
-I/tmp/xercesc//include/xercesc -I/tmp/xercesc//include/  -o
../../../../obj/XalanMsgLib.o
/usr/mil3/prod/opnet/tmp/i18n/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/
XalanMsgLib.cpp
CC -DSOLARIS -G -ptr  -h libxalanMsg.so.17   -mt -lm -L/tmp/icu
-L/tmp/icu/lib -L/tmp/icu/data -lpthread  -L/usr/local/SUNWspro/lib
-L/usr/ccs/lib -lc -lgen -L/tmp/xercesc//lib -lxerces-c
../../../../obj/XalanMsgLib.o -o ../../../../lib/libxalanMsg.so.17.0
CC: Warning: Warning: no directory is given for -ptr, using default
ln -fs libxalanMsg.so.17.0 ../../../../lib/libxalanMsg.so
ln: cannot create ../../../../lib/libxalanMsg.so: File exists
make[3]: *** [../../../../lib/libxalanMsg.so.17.0] Error 2


Has anybody else seen this problem?  I would imagine there's some sort
of workaround, but I haven't thoroughly investigated it at this point.
I'm curious as to why make install is compiling more code, and also why
it's using flags in CC which have long been deprecated (-ptr).

--
Nick