Problems compiling expat-1.95.8 on Solaris 8

"Crox Alexander Sanchez Rodriguez" <[email protected]>
Newsgroups gmane.text.xml.expat.bugs
Message-ID <[email protected]>
Hi!

I had the following problem when I was trying to compile expat-1.95.8 on
my Solaris 8 system:

******
bash-2.03# make
/bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototype
s -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xm
lparse.lo -c lib/xmlparse.c
/bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototype
s -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xm
ltok.lo -c lib/xmltok.c
/bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall
-Wmissing-prototype
s -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -o
lib/xm
lrole.lo -c lib/xmlrole.c
/bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall
-Wmissing-prototypes -
Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I.
-no-undefine
d -version-info 5:0:5 -rpath /usr/local/lib  -o libexpat.la
lib/xmlparse.lo lib/
xmltok.lo lib/xmlrole.lo
Undefined                       first referenced
 symbol                             in file
__eprintf                           lib/xmlparse.lo
ld: fatal: Symbol referencing errors. No output written to
.libs/libexpat.so.0.5
.0
make: *** [libexpat.la] Error 1
*******

Later, I searched on the internet for some clue or someone solving the
problem, but didn't find anything that could help me.

I solved the problem by changing the line that starts with LIBTOOL on
configure script  this way(or in the Makefile if you want):

# Always use our own libtool.
#LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIBTOOL='$(SHELL) /usr/local/bin/libtool'

I used my own installed libtool :
my_host# libtool --version
ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.94 2004/04/10 16:27:27)

Copyright (C) 2003  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

instead of the one that came with the expat-1.95.8 distribution:
my_host#pwd
/usr/local/src/expat-1.95.8
my_host# ./libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)


With this simple change, the library compiled and then it was installed.
Later it passed all the tests after  making "check" .

I hope you find this hepful

Bye

-- 
Ing. Crox A. Sánchez R.
Administrador de Red CTI-ULA
Instructor CCNA y SC
Academia Cisco ULA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.