On Wed, 2004-01-07 at 18:13, Michael Schloh von Bennewitz wrote:
> > 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.
> >
> Have you locally (on Tru64) built OpenPKG after patching
> rpm.patch.porting
> with 'AC_CHECK_TYPE_STDC(uint32_t, int)'?
>
> Regards,
> Michael
Nope, I haven't yet.. but I did try adding
#define int32_t int
to the config.h in that directory. When doing that, the compile
continues but then hits another problem :(
--
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: Warning: system.h, line 300: In this declaration, "xmalloc" is
declared with both internal and external linkage. The previous
declaration is at line number 218 in file system.h. (mixlinkage)
static void *xmalloc(size_t size)
------------^
cc: Warning: system.h, line 307: In this declaration, "xcalloc" is
declared with both internal and external linkage. The previous
declaration is at line number 226 in file system.h. (mixlinkage)
static void *xcalloc(size_t number, size_t size)
------------^
cc: Warning: system.h, line 314: In this declaration, "xrealloc" is
declared with both internal and external linkage. The previous
declaration is at line number 234 in file system.h. (mixlinkage)
static void *xrealloc(void *ptr, size_t size)
------------^
cc: Error: file.c, line 177: In the initializer for long_options, an
array's element type is incomplete, which precludes its initialization.
(incompelinit)
{"version", 0, 0, 'v'},
----------------^
*** Exit 1
Stop.
---
A quick look shows that this is due to HAVE_GETOPT_H being set. If
HAVE_GETOPT_H is defined, the file.c source uses getopt_long().
ie. in config.h I have :
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1
Tru64 V5.1B has a getopt.h file, but it's only for the POSIX getopt()
function: extern int getopt __((int, char * const [], const char *));
There is no getopt_long(). I guess the configure check is wrong here.
So.. quick recap.. to get this to compile, I only had to change config.h
add: #define int32_t int
remove: #define HAVE_GETOPT_H
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]