Forum OpenACS Development: Problem with building nsxml

Collapse
Posted by Ahmed Moustafa on
I get the following when I try to build nsxml:

bash-2.03# make
gcc -I/usr/local/aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -
fPIC -Wall -Wno-unused -mcpu=ultrasparc -D_POSIX_PTHREAD_SEMANTICS=1 -
DUSE_PTHREAD_SYSSCOPE=1 -DUSE_PTHREAD_PSHARED=1 -DHAVE_ETIME_BUG=1 -
DUSE_DUPHIGH=1 -DHAVE_FORK1=1   -c -o ns_xml.o ns_xml.c
/bin/rm -f nsxml.so
/usr/ccs/bin/ld -G -o nsxml.so ns_xml.o -lxml
ld: fatal: library -lxml: not found
ld: fatal: File processing errors. No output written to nsxml.so
make: *** [nsxml.so] Error 1
bash-2.03#

Would you help me, please?
Collapse
Posted by Ahmed Moustafa on
BTW, the box is Solaris 7.
Collapse
Posted by Vinod Kurup on
Looks like you need the GNU library libxml2.

There's installation information at xmlsoft.org

Collapse
Posted by Ahmed Moustafa on
Vinod,

It was already installed. And, I download it again from ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/libxml2-2.3.7.tar.gz and installed it again and I still get the same error message.

During the installtion, I got the following message:


----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Could be there something I need to do according to the above message?

Thanks,

Collapse
Posted by Ahmed Moustafa on
The above message came during the installation of libxml2.
Collapse
Posted by Tom Jackson on

You probably neet to change the -lxml to -lxml2.

Try https://openacs.org/forums/message-view?message_id=18890 or https://openacs.org/forums/message-view?message_id=19256 for more information.
Collapse
Posted by Ahmed Moustafa on
Tom,

Thanks a lot. That change made the compilation worked fine.