POV-Ray : Newsgroups : povray.programming : Trying to compile under AIX Server Time
29 Jul 2024 02:24:41 EDT (-0400)
  Trying to compile under AIX (Message 1 to 2 of 2)  
From: Steve Suehs
Subject: Trying to compile under AIX
Date: 1 Oct 1998 18:07:41
Message: <3613ECA1.FC214465@gte.net>
I'm trying to compile the latest source under AIX 4.1.

The compiler is upset with the functions prototyped in povproto.h and
implemented in userio.c that use variable argument lists.  No other
files seem to run into the problem.  It thinks that the functions are
declared differently.

An example of the error is

make ./userio.o
        cc -O2 -ansi -c -DCOMPILER_VER=\".`uname`.cc\" -I. -I..
-I../libpng -I../zlib -I/usr/X11/include ../userio.c -o ./userio.o
"../userio.c", line 59.11: 1506-343 (S) Redeclaration of Banner differs
from previous declaration on line 64 of "../povproto.h".
"../userio.c", line 59.11: 1506-378 (I) Prototype for function Banner
cannot contain "..." when mixed with a nonprototype declaration.


Has anybody made it around this?

-steve


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Trying to compile under AIX
Date: 2 Oct 1998 00:18:21
Message: <361445fd.0@news.povray.org>
<3613ECA1.FC214465@gte.net> , Steve Suehs <ske### [at] gtenet>  wrote:
>make ./userio.o
>        cc -O2 -ansi -c -DCOMPILER_VER=\".`uname`.cc\" -I. -I..
>-I../libpng -I../zlib -I/usr/X11/include ../userio.c -o ./userio.o
>"../userio.c", line 59.11: 1506-343 (S) Redeclaration of Banner differs
>from previous declaration on line 64 of "../povproto.h".
>"../userio.c", line 59.11: 1506-378 (I) Prototype for function Banner
>cannot contain "..." when mixed with a nonprototype declaration.
>
>
>Has anybody made it around this?


Have you tried to deactivate the -ansi option, POV-Ray is not exactly ANSI C
compatible. And maybe you have CDECL declare somewhere? Note that povproto.h is *not*
does not include frome.h or config.h so if you defined CDECL the header might not have
it and the prototypes do not match.

If you your compiler supports it, try to get the preprocessor output only (some
compilers can dump it) and llok if the function declaration and the function itself
differ.


Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.