Compile problems for lorg3.1 on RH7.3

Dag Wieers dag at wieers.com
Sun May 28 08:38:15 PDT 2006


Hi Panu,

I got this error when building apt lorg3.1 on RH7.3

	 i386-redhat-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../include -DLIBDIR=\"/usr/lib\" -DPKGDATADIR=\"/usr/share/apt\" -I../lua/include
	 -I../lua/local -I/usr/include/libxml2 -I/usr/include/rpm -O2 -march=i386 -mcpu=i686 -MT rpm/rpmlistparser.lo -MD -MP -MF rpm/.deps/rpmlistparser.Tpo -c rpm/rpmlistparser.cc  -fPIC -DPIC -o rpm/.libs/rpmlistparser.o
	rpm/rpmlistparser.cc: In method `short unsigned int rpmListParser::VersionHash ()':
	rpm/rpmlistparser.cc:266: `sort' undeclared (first use this function)
	rpm/rpmlistparser.cc:266: (Each undeclared identifier is reported only once for each function it appears in.)
	rpm/rpmlistparser.cc:268: `unique' undeclared (first use this function)
	make[1]: *** [rpm/rpmlistparser.lo] Error 1
	make[1]: Leaving directory `/dar/build/apt-0.5.15lorg3.1/apt-pkg'
	make: *** [all-recursive] Error 1

Hope you know what it means :)

For EL2.1 it still requires a pkgconfig > 0.9, not sure if we can work 
around that somehow using xml2-config ?

	checking for pkg-config... /usr/bin/pkg-config
	checking pkg-config is at least version 0.9.0... no
	checking for LIBXML2... configure: error: The pkg-config script could not be found or is too old.  Make sure it
	is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.

	Alternatively, you may set the environment variables LIBXML2_CFLAGS
	and LIBXML2_LIBS to avoid the need to call pkg-config.
	See the pkg-config man page for more details.

	To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.

I think we can simply do:

	LIBXML2_CFLAGS=$(xml2-config --cflags)
	LIBXML2_LIBS=$(xml2-config --libs)

and get done with it ?

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]



More information about the Apt-Rpm mailing list