On Tue, Jul 25, 2006, Julien TOUCHE wrote: > i try to compile openpkg (2.20060622) on openbsd (3.8/x86) and get the > following error > > +-----------------------------------------------------------------------------+ > | BUILD: Build RPM (RedHat Package Manager) > | > +-----------------------------------------------------------------------------+ > + pwd > + br=/tmp/openpkg-2.20060622 > + cd rpm-4.2.1 > [...] > + sh ./configure --cache-file=./config.cache > --prefix=/export/tmp/wt/local --with-db --with-glob --without-python > --without-apidocs --disable-shared --disable-rpath --disable-nls > configure: loading cache ./config.cache > [...] > + /tmp/openpkg-2.20060622/make-3.81/make > cd . && \ > [...] > /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../popt -DOPENPKG > -DOPENPKG_OPENBSD -I/tmp/openpkg-2.20060622/zlib-1.2.3 > -I/tmp/openpkg-2.20060622/bzip2-1.0.3 > -I/tmp/openpkg-2.20060622/beecrypt-4.1.2 -DOPENPKG -DOPENPKG_OPENBSD > -I/tmp/openpkg-2.20060622/zlib-1.2.3 > -I/tmp/openpkg-2.20060622/bzip2-1.0.3 > -I/tmp/openpkg-2.20060622/beecrypt-4.1.2 -O2 -D_GNU_SOURCE -D_REENTRANT > -MT digest.lo -MD -MP -MF .deps/digest.Tpo -c digest.c -o digest.o > In file included from rpmio_internal.h:19, > from digest.c:6: > /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:107: error: syntax > error before "__extension__" > /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:107: error: syntax > error before '?' token > In file included from rpmio_internal.h:19, > from digest.c:6: > /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:31:1: unterminated #else > /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:26:1: unterminated > #ifndef > In file included from digest.c:6: > rpmio_internal.h:1:1: unterminated #ifndef > make[2]: *** [digest.lo] Error 1 > make[2]: Leaving directory `/tmp/openpkg-2.20060622/rpm-4.2.1/rpmio' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/openpkg-2.20060622/rpm-4.2.1' > make: *** [all] Error 2 > + exit 2 > ./openpkg.boot:ERROR: script returned non-null value
Seems like the beecrypt library headers contain things which break under OpenBSD. Either it is the BEECRYPTAPI macro or the swap16 conflicts with a macro somewhere in the OpenBSD system headers. Try to build BeeCrypt 4.1.2 stand-alone on OpenBSD first, hack the endianness.h to get it working and then let us integrate the hack into the bootstrap process. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org