Re: [rpm-list] problems compiling rpm on solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim,

Thanks for the pointers. I have downloaded rpm 4.4.7 and am trying to compile it on solaris 8 with C workshop compiler 4.2. I spent a while this morning reading through the mailing list and have applied the patches from October.

I'm running autogen.sh with myopts set to --prefix=/opt/rpm --without-python --disable-optimize (I copied these options from the opensolaris rpm build)

When I do the gmake, it gets quite far but fails in lua:

gmake[2]: Entering directory `/tmp/rpm-4.4.7/lua'
source='local/lrexlib.c' object='liblua_la-lrexlib.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I./local -I/opt/rpm/include -I../syck/lib -D_REENTRANT -DUSE_DLOPEN -DWITH_POSIX -g -c -o liblua_la-lrexlib.lo `test -f 'local/lrexlib.c' || echo './'`local/lrexlib.c cc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I./local -I/opt/rpm/include -I../syck/lib -D_REENTRANT -DUSE_DLOPEN -DWITH_POSIX -g -c local/lrexlib.c -KPIC -DPIC -o .libs/liblua_la-lrexlib.o
"local/lrexlib.c", line 43: integral constant expression expected
cc: acomp failed for local/lrexlib.c
gmake[2]: *** [liblua_la-lrexlib.lo] Error 1
gmake[2]: Leaving directory `/tmp/rpm-4.4.7/lua'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/rpm-4.4.7'
gmake: *** [all] Error 2

I fixed that with a malloc:

diff /tmp/rpm-4.4.7/lua/local/lrexlib.c /tmp/rpm-4.4.7/lua/local/lrexlib.c.orig
43,44c43
<     /*char errbuf[sz];*/
<     char *errbuf=malloc(sz);
---
    char errbuf[sz];


The gmake then failed again a short time later due to a '//' comment in lua/local/lsyck.c which was easy enough to get round, but now I get this error:

Making all in rpmio
gmake[2]: Entering directory `/tmp/rpm-4.4.7/rpmio'
source='argv.c' object='argv.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c -o argv.lo argv.c
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c argv.c -KPIC -DPIC -o .libs/argv.o cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c argv.c -o argv.o >/dev/null 2>&1
source='digest.c' object='digest.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c -o digest.lo digest.c cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c digest.c -KPIC -DPIC -o .libs/digest.o
"./rpmio_internal.h", line 15: cannot find include file: <beecrypt.api.h>
"./rpmio_internal.h", line 22: cannot find include file: <beecrypt.h>
"./rpmio_internal.h", line 23: cannot find include file: <base64.h>
"./rpmio_internal.h", line 24: cannot find include file: <dsa.h>
"./rpmio_internal.h", line 25: cannot find include file: <endianness.h>
"./rpmio_internal.h", line 28: cannot find include file: <rsa.h>
"./rpmio_internal.h", line 29: cannot find include file: <rsapk.h>
"./rpmio_internal.h", line 30: cannot find include file: <sha1.h>
"./rpmio_internal.h", line 91: syntax error before or at: mpbarrett
"./rpmio_internal.h", line 91: cannot recover from previous errors
cc: acomp failed for digest.c
gmake[2]: *** [digest.lo] Error 1
gmake[2]: Leaving directory `/tmp/rpm-4.4.7/rpmio'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/rpm-4.4.7'
gmake: *** [all] Error 2

I'm not entirely sure on the best fix though. I have got beecrypt headers in /usr/local/include/beecrypt but if I add this include path in the compile, it gives another error:

gmake
source='digest.c' object='digest.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -I/usr/local/include/beecrypt -D_REENTRANT -g -c -o digest.lo digest.c cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -I/usr/local/include/beecrypt -D_REENTRANT -g -c digest.c -KPIC -DPIC -o .libs/digest.o
"./rpmio_internal.h", line 15: cannot find include file: <beecrypt.api.h>
"/usr/local/include/beecrypt/beecrypt.h", line 33: cannot find include file: "beecrypt/api.h" "/usr/local/include/beecrypt/beecrypt.h", line 35: cannot find include file: "beecrypt/memchunk.h" "/usr/local/include/beecrypt/beecrypt.h", line 36: cannot find include file: "beecrypt/mpnumber.h" "/usr/local/include/beecrypt/beecrypt.h", line 82: undefined or not a type: BEECRYPTAPI "/usr/local/include/beecrypt/beecrypt.h", line 82: parameter not in identifier list: entropySourceCount "/usr/local/include/beecrypt/beecrypt.h", line 92: cannot recover from previous errors
cc: acomp failed for digest.c
gmake: *** [digest.lo] Error 1

Could you help me out please?

Thanks,

Ed.

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux