I'm trying to build the vanilla 2.1.4 SRPM on CentOS, using both plain "rpmbuild --rebuild" and the "mock" build system (it creates a chrooted environment to perform the build in so you can verify Requires and BuildRequires properly, among other things).
To get, among other things, the hacluster and haclient UID/GID to be generated as "24" instead of "90"(so they don't conflict with postfix), I have to "%define centos_version 5"; the spec file doesn't seem to use /etc/redhat-release to work out what I'm using... Would it not be better to use "useradd -r" to create a system account? Also, if I build within the 'mock' chroot, I get the following error: I'm obviously missing a package that is present outside the chroot, but I have no idea what! (plain rpmbuild completes succesfully). ##### Making all in common Compiling ipc.c Compiling msg.c Compiling utils.c Compiling xml.c gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../include -I../../../include -I../../../libltdl -I../../../libltdl -I../../../linux-ha -I../../../linux-ha -I../../.. -I../../.. -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasxml.c: In function 'write_xml_file': xml.c:635: warning: unused variable 'in' xml.c: In function 'get_message_xml': xml.c:775: error: 'BZ_OK' undeclared (first use in this function) xml.c:775: error: (Each undeclared identifier is reported only once xml.c:775: error: for each function it appears in.) xml.c:796: warning: implicit declaration of function 'BZ2_bzBuffToBuffDecompress' xml.c:799: error: 'BZ_OUTBUFF_FULL' undeclared (first use in this function) gmake[3]: *** [xml.lo] Error 1 ##### Any ideas? Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer QinetiQ Applied Technologies GPG Key: http://www.linux-corner.info/mwatts.gpg
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
