RPM Community Forums

Mailing List Message of <rpm-users>

feedback : the -lexpat flag is missing in 4 Makefile

From: YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist@laposte.net>
Date: Tue 28 Jun 2011 - 08:14:52 CEST
Message-Id: <20110628081452.abbdbd3b.yugiohjcj-mailinglist@laposte.net>

Hello,

in order to compile rpm-5.3.5, I need to edit 4 Makefile after the configure step because I need the -lexpat option.
If I don't do this, I got errors about XML functions which are undefined :
libtool: link: gcc -g -O2 -D_GNU_SOURCE -D_REENTRANT -o .libs/rpmconstant constant.o  ./.libs/librpmconstant.so -L/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/beecrypt -L/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/neon/src -L/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/neon -L/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/pcre /home/yugiohjcj/documents/downloads/software/rpm-5.3.5/rpmio/.libs/librpmio.so -lm /home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so -lgomp -ldl /usr/lib/libdb-5.1.so /usr/lib/libpopt.so -lpthread -lrt -lz
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_ParserCreate'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_GetErrorCode'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_SetUserData'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_SetXmlDeclHandler'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_GetCurrentLineNumber'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_ErrorString'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_SetEntityDeclHandler'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_ParserFree'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_SetElementHandler'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_StopParser'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_Parse'
/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to `XML_SetCharacterDataHandler'
collect2: ld returned 1 exit status
make[3]: *** [rpmconstant] Error 1
make[3]: Leaving directory `/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/rpmconstant'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/yugiohjcj/documents/downloads/software/rpm-5.3.5/rpmconstant'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yugiohjcj/documents/downloads/software/rpm-5.3.5'
make: *** [all] Error 2

I am on Debian squeeze. I suggest you correct the 4 Makefile.am corresponding to add this flag.

You can see below the 4 Makefile that I must edit :
$ for each in `find rpm-5.3.5 -name "Makefile"`; do echo ${each} && diff ${each} `echo ${each} | sed s/5.3.5/5.3.5-m/`; done
rpm-5.3.5/syck/Makefile
rpm-5.3.5/syck/ext/yamlbyte/Makefile
rpm-5.3.5/syck/ext/lua/Makefile
rpm-5.3.5/syck/tests/Makefile
rpm-5.3.5/syck/lib/Makefile
rpm-5.3.5/Makefile
250c250
< LDFLAGS =     
---
> LDFLAGS = -lexpat
rpm-5.3.5/beecrypt/Makefile
rpm-5.3.5/beecrypt/include/Makefile
rpm-5.3.5/beecrypt/python/Makefile
rpm-5.3.5/beecrypt/python/test/Makefile
rpm-5.3.5/beecrypt/docs/Makefile
rpm-5.3.5/beecrypt/gas/Makefile
rpm-5.3.5/beecrypt/c++/lang/Makefile
rpm-5.3.5/beecrypt/c++/Makefile
rpm-5.3.5/beecrypt/c++/math/Makefile
rpm-5.3.5/beecrypt/c++/security/Makefile
rpm-5.3.5/beecrypt/c++/security/auth/Makefile
rpm-5.3.5/beecrypt/c++/security/cert/Makefile
rpm-5.3.5/beecrypt/c++/security/spec/Makefile
rpm-5.3.5/beecrypt/c++/provider/Makefile
rpm-5.3.5/beecrypt/c++/nio/Makefile
rpm-5.3.5/beecrypt/c++/util/Makefile
rpm-5.3.5/beecrypt/c++/util/concurrent/Makefile
rpm-5.3.5/beecrypt/c++/util/concurrent/locks/Makefile
rpm-5.3.5/beecrypt/c++/beeyond/Makefile
rpm-5.3.5/beecrypt/c++/io/Makefile
rpm-5.3.5/beecrypt/c++/crypto/Makefile
rpm-5.3.5/beecrypt/c++/crypto/spec/Makefile
rpm-5.3.5/beecrypt/java/Makefile
rpm-5.3.5/beecrypt/masm/Makefile
rpm-5.3.5/beecrypt/tests/Makefile
rpm-5.3.5/rpmconstant/Makefile
166c166
< LDFLAGS =     
---
> LDFLAGS = -lexpat
rpm-5.3.5/tools/Makefile
528c528
< LDFLAGS =     
---
> LDFLAGS = -lexpat
rpm-5.3.5/build/Makefile
rpm-5.3.5/build/auto/Makefile
rpm-5.3.5/python/Makefile
rpm-5.3.5/neon/Makefile
rpm-5.3.5/neon/src/Makefile
rpm-5.3.5/neon/test/Makefile
rpm-5.3.5/rpmio/Makefile
rpm-5.3.5/rpmio/auto/Makefile
rpm-5.3.5/ruby/Makefile
rpm-5.3.5/scripts/Makefile
rpm-5.3.5/misc/Makefile
rpm-5.3.5/po/Makefile
rpm-5.3.5/js/Makefile
rpm-5.3.5/rpmdb/Makefile
rpm-5.3.5/rpmdb/auto/Makefile
rpm-5.3.5/pcre/Makefile
rpm-5.3.5/tests/Makefile
rpm-5.3.5/tests/mongo/Makefile
173c173
< LDFLAGS =     
---
> LDFLAGS = -lexpat
rpm-5.3.5/lib/Makefile
rpm-5.3.5/lib/auto/Makefile
rpm-5.3.5/doc/Makefile
rpm-5.3.5/doc/ru/Makefile
rpm-5.3.5/doc/ja/Makefile
rpm-5.3.5/doc/pl/Makefile
rpm-5.3.5/doc/manual/Makefile
rpm-5.3.5/doc/fr/Makefile
rpm-5.3.5/doc/ko/Makefile
rpm-5.3.5/doc/sk/Makefile
rpm-5.3.5/lua/Makefile

I hope this feedback can help rpm5 to be better :-)
Received on Tue Jun 28 08:14:54 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.