Error compiling dostats SLES 10 x64
Posted in 2007
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
Hi,
I'm having trouble compiling utils2_ak on 64 bit SuSE Linux Enterprise
Server 10.
I know there's been similar posts before, but I thought this one had
been resolved in the latest version.
I get the following errors:
make dostats
INFORMIXC=gcc esql -DHAVE_GNU_GETOPT=1 -o dostats dostats.ecgetopt.c
getopt.c: In function ‘exchange’:
getopt.c:241: warning: cast to pointer from integer of different size
/tmp/ccoGiDW6.o: In function `exchange':
getopt.c:(.text+0x31): undefined reference to `__alloca'
collect2: ld returned 1 exit status
make: *** [dostats] Error 1
Similar errors are thrown up for the other programs in the package.
Thanks for any help.
Versions:
Linux dionysus 2.6.16.27-0.9-smp #1 SMP Tue Feb 13 09:35:18 UTC 2007
x86_64 x86_64 x86_64 GNU/Linux
gcc (GCC) 4.1.0 (SUSE Linux)
glibc is 2.4
goatbadger@googlemail.com wrote:
> Hi,
>
> I'm having trouble compiling utils2_ak on 64 bit SuSE Linux Enterprise
> Server 10.
> I know there's been similar posts before, but I thought this one had
> been resolved in the latest version.
> I get the following errors:
> make dostats
> INFORMIXC=gcc esql -DHAVE_GNU_GETOPT=1 -o dostats dostats.ec> getopt.c
> getopt.c: In function ‘exchange’:
> getopt.c:241: warning: cast to pointer from integer of different size
> /tmp/ccoGiDW6.o: In function `exchange':
> getopt.c:(.text+0x31): undefined reference to `__alloca'
> collect2: ld returned 1 exit status
> make: *** [dostats] Error 1
http://www.iiug.org/forums/ids/index.cgi/read/7797
--
Clive