RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm5 compilation on rhel6.

From: Jeffrey Johnson <n3npq@me.com>
Date: Thu 16 Feb 2012 - 16:27:06 CET
Message-id: <E0D82F18-7056-44C9-812F-CA4373D29B24@me.com>

On Feb 15, 2012, at 3:59 PM, Maruthi Devulapalli wrote:

> Hi All,
> Need your help with this,
> make[3]: Entering directory xmlFreeParserCtxt'
> /tmp/rpm/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to xmlCreatePushParserCtxt'
> /tmp/rpm/rpm-5.3.5/misc/.libs/librpmmisc.so: undefined reference to /tmp/rpm/rpm-5.3.5/rpmconstant'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory /tmp/rpm/rpm-5.3.5'
> make: *** [all] Error 2

Hmmm  I don't recall this issue.

One thing to try is a clean build from scratch
	make distclean
or (at a minimum) rebuild the misc directory:
	cd misc
	make clean all
The misc directory has some subtle problems with missing Makefile pre-requisites.
A proper solution is quite difficult because of the need to build RPM both with
internal <-> external trees. Some problems are not worth solving imho.

RPM itself doesn't depend on libxml2: the usual need is from
	rpm -> neon -> libxml2
where the necessary additional libraries are brought in from neon's pkgconfig.

So librpmmisc is a collection point for most external library linkages, and
a container for most internal (i.e. built when RPM is built) objects. That
is why rebuilding misc manually somethings needs to be attempted.

> configured with  ./configure --with-openssl=/usr/local/ssl/ --with-db=/usr/include/db51

You might need additional options (if those are the only two options you passed to configure).

Examine the %system stanza in the top-level devtool.conf file. Those options are
what I typically use on Red Hat derived systems (but note that for development
I configure *EVERYTHING*: you almost certainly need/want to be more selective
than what is in the %system stanza).


73 de Jeff
> Best Regards
> Maruthi Devulapalli
> NASD  Unix
> 201-743-6585
> This email originates from AXA Technology Services UK Limited (reg. no. 1854856) which has its registered office at 5 Old Broad Street, London EC2N 1AD, England.
> This message and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this in error, you should not disseminate or copy this email. Please notify the sender immediately and delete this email from your system.
> Please also note that any opinions presented in this email are solely those of the author and do not necessarily represent those of The AXA UK Plc Group.
> Email transmission cannot be guaranteed to be secure, or error free as information could be intercepted, corrupted, lost, destroyed, late in arriving or incomplete as a result of the transmission process. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission.
> Finally, the recipient should check this email and any attachments for viruses. The AXA UK Plc Group accept no liability for any damage caused by any virus transmitted by this email.
Received on Thu Feb 16 16:27:10 2012
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.