[Gllug] gcc, cfengine and rpm

pauln at truemesh.com pauln at truemesh.com
Wed Mar 13 11:54:39 UTC 2002


I've been building rpms for a while and haven't really had any problems
for a bit.

I'm trying to create a package for cfengine 2.0, there doesn't seem to
be one so I've plowed straight in.

The odd thing is that the way the BuildArchitecture is working.  It's
getting i386-redhat-linux from the %configure macro
(/usr/lib/rpm/i386-redhat-linux) however this seems to be triggering
cfengine's configure to go into cross-compile moded using
/usr/bin/i386-redhat-linux-gcc, etc. 

Thus producing prefixed binaries i386-redhat-linux-cfexecd, etc

[root at cstrike1 root]# gcc --version
2.96
[root at cstrike1 root]# /usr/bin/i386-redhat-linux-gcc --version
2.96

Name        : gcc                          Relocations: (not
relocateable)
Version     : 2.96                              Vendor: Red Hat, Inc.
Release     : 98                            Build Date: Tue 04 Sep 2001
14:10:42 EDT
Install date: Sun 14 Jan 2001 09:00:39 EST  

I've tried forcing the _target_platform to i686-pc-linux-gnu which is
what cfengine's ./configure picks up in a manual run but doesn't help,
it just complains, setting BuildArch to i686 produces i686-redhat-linux*
binaries.  

Relevant output from rpm -bb:

+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd cfengine-2.0.0
+ CFLAGS=-O2 -march=i386 -mcpu=i686
+ export CFLAGS
+ CXXFLAGS=-O2 -march=i386 -mcpu=i686
+ export CXXFLAGS
+ FFLAGS=-O2 -march=i386 -mcpu=i686
+ export FFLAGS
+ '[' -f configure.in ']'
+ libtoolize --copy --force
Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
+ ./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --with-openssl=/usr
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-redhat-linux-gnu
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for i386-redhat-linux-gcc... i386-redhat-linux-gcc

*SNIP*

Any ideas - I assume it is an autoconf/automake issue with cfengine vs
rpm.

Paul

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list