Re: [Xml-coreutils-discuss] Compilation Problem
Status: Alpha
Brought to you by:
lbreyer
|
From: Latha G. <la...@ai...> - 2011-04-29 09:46:36
|
Hi,
I removed the link of libexpat.so and made it point to the new library
And then the make & install of xml-coreutils worked
Thanks for ur support
Regaards
latha
-----Original Message-----
From: Latha Ganesan
Sent: Friday, April 29, 2011 2:52 PM
To: Latha Ganesan; 'la...@lb...'
Cc: 'xml...@li...'
Subject: RE: [Xml-coreutils-discuss] Compilation Problem
Hi,
This is the output I got from expat install
make install
/bin/sh ./conftools/mkinstalldirs /usr/local/lib /usr/local/include
/bin/sh ./libtool --mode=install /usr/bin/install -c libexpat.la /usr/local/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.so.1.5.2 /usr/local/lib/libexpat.so.1.5.2
(cd /usr/local/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so.1 || { rm -f libexpat.so.1 && ln -s libexpat.so.1.5.2 libexpat.so.1; }; })
(cd /usr/local/lib && { ln -s -f libexpat.so.1.5.2 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.1.5.2 libexpat.so; }; })
/usr/bin/install -c .libs/libexpat.lai /usr/local/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.a /usr/local/lib/libexpat.a
chmod 644 /usr/local/lib/libexpat.a
ranlib /usr/local/lib/libexpat.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
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 the `-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
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
for FN in ./lib/expat.h ./lib/expat_external.h ; do /usr/bin/install -c -m 644 $FN /usr/local/include ; done
/bin/sh ./conftools/mkinstalldirs /usr/local/bin /usr/local/man/man1
/bin/sh ./libtool --mode=install /usr/bin/install -c xmlwf/xmlwf /usr/local/bin/xmlwf
/usr/bin/install -c xmlwf/.libs/xmlwf /usr/local/bin/xmlwf
/usr/bin/install -c -m 644 ./doc/xmlwf.1 /usr/local/man/man1
And the env is as follows
MANPATH=/home/lathag/Linux/man/:/usr/swtools/man:/usr/share/man:/usr/local/man:/var/man:/usr/atria/doc/man
HOSTNAME=linuxpppoe.india.wirelessworld.airvananet.com
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=::ffff:172.17.18.16 1242 22
VIEW_NAME=lathag_fap_dev
QTDIR=/usr/lib/qt-3.3
SSH_TTY=/dev/pts/6
USER=lathag
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
KDEDIR=/usr
CLEARCASE_CMDLINE=setview lathag_fap_dev
MAIL=/var/spool/mail/lathag
PATH=/usr/kerberos/sbin:./:./:./:./:./:./:./:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/rational/clearcase/rhat_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin:/opt/rational/clearcase/linux_x86/bin:/usr/swtools/bin:/usr/local/bin:/usr/sbin:/sbin:/home/lathag/Linux/bin:/usr/local/sbin:/usr/bin/X11/:/usr/local/vtcl:/usr/local/netcom/smartlib/bin:.:/sbin:/usr/sbin:/home/lathag/bin:/opt/rational/common/bin:/opt/rational/clearquest/bin:/usr/atria/bin:/usr/local/bin:/bin:/usr/sbin:/usr/ucb:/usr/atria/bin
LINKDIR=/usr/local/lib
LD_RUN_PATH=/home/lathag/xmlutils
INPUTRC=/etc/inputrc
PWD=/home/lathag/xmlutils/expat-2.0.1
SQUID_PASSWORD=airvana
CLEARCASE_ROOT=/view/lathag_fap_dev
EDITOR=vim
LANG=en_US.UTF-8
TZ=Asia/Calcutta
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
CF_OPTS=--enable-shared --disable-static
SHLVL=7
HOME=/root
LOGNAME=lathag
SQUID_USER=lathag
CVS_RSH=ssh
SSH_CONNECTION=::ffff:172.17.18.16 1242 ::ffff:10.204.3.2 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
Can u please suggest how I can fix the makefile of to make it work
Regards
latha
-----Original Message-----
From: Latha Ganesan
Sent: Friday, April 29, 2011 2:19 PM
To: 'la...@lb...'
Cc: xml...@li...
Subject: RE: [Xml-coreutils-discuss] Compilation Problem
Hi,
Thanks for the reply
I downloaded and installed Expat just now
Can u suggest how to purge system's Expat
package and reinstall.
Or can u specify how to make the makefile to look at /usr/local/lib/expat before others
I tried installing with xml-coreutils-0.8.1.tar.gz and even there I encountered the same issue
Regards
latha
-----Original Message-----
From: la...@lb... [mailto:la...@lb...]
Sent: Friday, April 29, 2011 12:48 PM
To: Latha Ganesan
Cc: xml...@li...
Subject: Re: [Xml-coreutils-discuss] Compilation Problem
Hi Latha,
On Fri, 29 Apr 2011 11:51:32 +0530, Latha Ganesan
<la...@ai...> wrote:
> gcc -funsigned-char -Wall -pedantic -g -O2 -o xml-cat xml-cat.o
> myerror.o mysignal.o common.o parser.o filelist.o io.o stdout.o mem.o
> entities.o cstring.o wrap.o -lslang -lncurses -lexpat -lm
> parser.o(.text+0x94): In function `stop_parser':
> /home/lathag/xmlutils/xml-coreutils-0.8a/src/parser.c:60: undefined
> reference to `XML_StopParser'
> parser.o(.text+0xc0): In function `restart_parser':
> /home/lathag/xmlutils/xml-coreutils-0.8a/src/parser.c:68: undefined
> reference to `XML_ResumeParser'
> parser.o(.text+0x694): In function `get_pstatus':
> /home/lathag/xmlutils/xml-coreutils-0.8a/src/parser.c:276: undefined
> reference to `XML_GetParsingStatus'
> collect2: ld returned 1 exit status
That's a strange error. It looks to me like your Expat library exists,
but it is missing some functions. Did you install the latest version of
Expat? If it's convenient, I would suggest purging your system's Expat
package and reinstalling.
If you installed Expat as a user in your home directory, I would
suggest checking your paths to see if there's another copy of the Expat
headers in the system.
BTW, there's a more recent xml-coreutils-0.8.1.tar.gz file in the
sourceforge download area.
Cheers,
Laird Breyer
|