Full_Name: Vinod Kutty
Version: 2.0.5pre2-20021204
OS: Solaris 9
Submission from: (NULL) (66.93.80.24)



Hi,

I tried to build cfengine from the CURRENT snapshot dir, and this is what
happen. I was initially using openpkg build ... then also tried manually with
rpm --rebuild with the same results ... the output below is reconstructed from
copy 'n paste o:

-----------------------------------------
$ sh ./build.cfengine
:::: ftp://ftp.openpkg.org/current/SRC/cfengine-2.0.5pre2-20021204.src.rpm ::::
Installing 
ftp://ftp.openpkg.org/current/SRC/cfengine-2.0.5pre2-20021204.src.rpmExecuting(%prep):
env -i /plocal/apps/opkg/lib/openpkg/bash --norc --noprofile --posix -e
/plocal/apps/opkg/RPM/TMP/rpm-tmp.27097
+ cd /plocal/apps/opkg/RPM/TMP
+ cd /plocal/apps/opkg/RPM/TMP
+ rm -rf cfengine-2.0.5pre2
+ /plocal/apps/opkg/lib/openpkg/gzip -dc
/plocal/apps/opkg/RPM/SRC/cfengine/cfengine-2.0.5pre2.tar.gz
+ /plocal/apps/opkg/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cfengine-2.0.5pre2
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 60000 = 0 ']'
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 60000 = 0 ']'
+ chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): env -i /plocal/apps/opkg/lib/openpkg/bash --norc --noprofile
--posix -e /plocal/apps/opkg/RPM/TMP/rpm-tmp.11167
+ cd /plocal/apps/opkg/RPM/TMP
+ cd cfengine-2.0.5pre2
+ CC=/plocal/apps/opkg/bin/cc
+ CFLAGS=-O2 -pipe
+ ./configure --prefix=/plocal/apps/opkg
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether make sets ... yes
checking for gcc... /plocal/apps/opkg/bin/cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether /plocal/apps/opkg/bin/cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of /plocal/apps/opkg/bin/cc... gcc3
checking for flex... no
checking for lex... lex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for a BSD compatible install... ./install-sh -c
checking for latex... false
checking for texi2dvi... false
checking for dvips... false
checking for makeinfo... false
checking for main in -lm... yes
checking for door_create... no
checking for setsockopt... no
checking for setsockopt in -lsocket... yes
checking for gethostent... no
checking for gethostent in -lnsl... yes
checking for getaddrinfo... yes
checking for library containing socket... none required
checking for BerkeleyDB location... configure: error: Cannot find BerkeleyDB
error: Bad exit status from /plocal/apps/opkg/RPM/TMP/rpm-tmp.11167 (%build)


RPM build errors:
    Bad exit status from /plocal/apps/opkg/RPM/TMP/rpm-tmp.11167 (%build)
$ 

-----------------------------------------

I had similar problems later with it not finding openssl. Both berkeleydb AND
openssl are installed.

The workaround was to change the cfengine.spec %build section FROM this:

-----------------------------------------
%build
    CC="%{l_cc}"     CFLAGS="%{l_cflags -O}"     ./configure         
--prefix=%{l_prefix}
    %{l_make} %{l_mflags -O}
-----------------------------------------

TO this:
-----------------------------------------
%build
    CC="%{l_cc}"     CFLAGS="%{l_cflags -O}"     ./configure         
--prefix=%{l_prefix}         --with-berkeleydb=%{l_prefix}         
--with-openssl=%{l_prefix}
    %{l_make} %{l_mflags -O}
-----------------------------------------


Then I ran 'rpm -bb ./cfengine.spec' (in /RPM/SRC/cfengine) and
successfully built the .rpm

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Bug Database Interface                           www.openpkg.org/bugdb
Bug Database List                            [EMAIL PROTECTED]

Reply via email to