> That's 1 problem down... next one up is: > > source='file.c' object='file.o' libtool=no \ > depfile='.deps/file.Po' tmpdepfile='.deps/file.TPo' \ > depmode=tru64 /bin/ksh ./depcomp \ > /usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I. > -DMAGIC='"/cw/lib/openpkg/magic"' > -DOPENPKG -DOPENPKG_OSF1 > -I/cluster/members/member1/tmp/openpkg-20040107/zlib-1.2.1 > -I/cluster/members/member1/tmp/openpkg-20040107/bzip2-1.0.2 > -I/cluster/members/member1/tmp/openpkg-20040107/beecrypt-3.1.0 > -c `test -f > 'file.c' || echo './'`file.c > cc: Error: file.h, line 85: Missing type specifier or type qualifier. > (missingtype) > int32_t offset; /* offset to magic number */ > --------^ > cc: Error: file.h, line 86: Missing type specifier or type qualifier. > (missingtype) > int32_t in_offset; /* offset from indirection */ > --------^
I guess the nice thing to do is to extend the following patch in rpm.patch.porting to include an AC_CHECK_TYPE_STDC(int32_t, int) ?! >> --------------------------------------------------------------------------- | Provide fallback definitions for uintX_t stuff, which is used by | build/rpmfile.h and not available on all platforms. We do this by | adding the same Autoconf checks file/configure already used for its | original file.h. | Additionally, do not try to configure in an internal | beecrypt subdirectory. +--------------------------------------------------------------------------- Index: configure.ac --- configure.ac 2 Jul 2003 19:20:52 -0000 1.1.1.4 +++ configure.ac 28 Oct 2003 15:31:33 -0000 @@ -1249,11 +1251,37 @@ AC_SUBST(OBJDUMP) +dnl OpenPKG: rpmfile.h (used in RPM) from file(1) needs additional checks +dnl for its use of uintXX_t (which are available in file/config.h, but which +dnl we cannot include into RPM because of conflicts with RPM's config.h) +AC_DEFUN([AC_CHECK_TYPE_STDC], +[AC_REQUIRE([AC_HEADER_STDC])dnl +AC_MSG_CHECKING(for $1) +AC_CACHE_VAL(ac_cv_type_$1, +[AC_EGREP_CPP(dnl +[(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]], +[#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = no; then + AC_DEFINE($1, $2, $1) +fi]) +AC_CHECK_TYPE_STDC(uint8_t, unsigned char) +AC_CHECK_TYPE_STDC(uint16_t, unsigned short) +AC_CHECK_TYPE_STDC(uint32_t, unsigned int) + ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]
