Re: Unable to Compile GTK 2.4.0 on Linux-AIX-HP-SUN-IRIX



On Fri, 30 Apr 2004 15:30:49 +0200, Vincent Jamart said:

I'm writing mostly from memory here, as I don't have access to my AIX boxes as
I'm typing this, and it's been a while since I ported this stuff.  Although I
also support Linux, Solaris, and Irix boxes, you don't give enough context for
the errors on those platforms for me to identify the exact cause of the
problem, although for at least Linux and Solaris, it's pretty obvious
where to start chasing....

It *is* possible to get all of this stuff to build and run on AIX.  However, it
does require some AIX clue (libtool and shared libraries is particularly...
umm.. "interesting").  Also, the IBM C compiler can be invoked under multiple
names (xlc, cc, c89, and so on), which compile with different sets of default
pre-defined preprocessor symbols and compiler/linker options and flags....

You might want to visit http://www.bullfreeware.com - the nice guys at Bull
have a large collection of pre-built packages that may help considerably in
easing the pain of getting this going.

> -AIX: Dependency libtiff has a problem at make time:
> = libtiff
>         /usr/vacpp/bin/xlc -o mkversion -Dunix -qlanglvl=ansi -qsrcmsg
> -qmaxmem=8192 -bM:SRE -g -O  -I. -I../libtiff   ../libtiff/mkversion.c
>         rm -f ../libtiff/tiffvers.h
>         ./mkversion -v .././VERSION -r .././RELEASE-DATE
> ../libtiff/tiffvers.h
>         /usr/vacpp/bin/xlc -c -Dunix -qlanglvl=ansi -qsrcmsg
> -qmaxmem=8192 -bM:SRE -g -O  -I. -I../libtiff   ../libtiff/tif_aux.c
> "../libtiff/tiff.h", line 75.21: 1506-334 (S) Identifier int8 has
> already been defined on line 631 of "/usr/include/sys/inttypes.h".
> "../libtiff/tiff.h", line 80.15: 1506-334 (S) Identifier int16 has
> already been defined on line 632 of "/usr/include/sys/inttypes.h".
> "../libtiff/tiff.h", line 86.14: 1506-334 (S) Identifier int32 has
> already been defined on line 633 of "/usr/include/sys/inttypes.h".
> make: 1254-004 The error code from the last command is 1.
> Stop.
> make: 1254-004 The error code from the last command is 2.
> Stop.

If I remember correctly, the problem ls libtiff not knowing what AIX's header
files supply under all combinations of -D flags (often predefines supplied by
the compiler). In particular, the presence/lack of -D_ALL_SOURCE caused issues.



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