[SATLUG] Compiling for 64-bit
Ed Coates
edcoates at gmail.com
Fri Apr 18 00:01:02 CDT 2008
Hi All,
I'm having some issues compiling some code on my AMD64 Ubuntu Box.
I'm trying to get echolinux to compile, but when I type make, it get
the following:
gcc -c -g -DHEXDUMP -Igsm/inc -DInternet_Port=2074 control.c
control.c: In function 'main':
control.c:330: warning: passing argument 1 of 'rtp_make_sdes' from
incompatible pointer type
gcc -c -g -DHEXDUMP -Igsm/inc -DInternet_Port=2074 rtpacket.c
rtpacket.c: In function 'addSDES':
rtpacket.c:31: warning: incompatible implicit declaration of built-in
function 'strlen'
rtpacket.c:32: warning: incompatible implicit declaration of built-in
function 'bcopy'
rtpacket.c: In function 'rtp_make_sdes':
rtpacket.c:67: warning: incompatible implicit declaration of built-in
function 'strcpy'
rtpacket.c:111: warning: incompatible implicit declaration of built-in
function 'bzero'
rtpacket.c:124: warning: incompatible implicit declaration of built-in
function 'malloc'
rtpacket.c:126: warning: incompatible implicit declaration of built-in
function 'bcopy'
rtpacket.c: In function 'rtp_make_bye':
rtpacket.c:176: warning: incompatible implicit declaration of built-in
function 'strlen'
rtpacket.c:179: warning: incompatible implicit declaration of built-in
function 'bcopy'
rtpacket.c:203: warning: incompatible implicit declaration of built-in
function 'bzero'
rtpacket.c: In function 'parseSDES':
rtpacket.c:247: warning: incompatible implicit declaration of built-in
function 'bcopy'
rtpacket.c: In function 'copySDESitem':
rtpacket.c:287: warning: incompatible implicit declaration of built-in
function 'bcopy'
gcc control.o rtpacket.o -g -DHEXDUMP -Igsm/inc -DInternet_Port=2074
libgsm.a \
-lm -o echolinux
gcc -c -g -DHEXDUMP -Igsm/inc -DInternet_Port=2074 vox.c
gcc vox.o -g -DHEXDUMP -Igsm/inc -DInternet_Port=2074 libgsm.a -lm
-o echoaudio
/usr/bin/ld: i386 architecture of input file `libgsm.a(gsm_decode.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(gsm_encode.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(gsm_create.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(code.o)' is
incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(decode.o)' is
incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(long_term.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(lpc.o)' is
incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(preprocess.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(rpe.o)' is
incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(short_term.o)'
is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(table.o)' is
incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `libgsm.a(add.o)' is
incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make: *** [echoaudio] Error 1
I've tried setting the CFLAG to -m32 and also -m64, but still can't
get it to work. Would anyone be willing to take a crack at getting it
to compile on an AMD64 platform?
Ed/KB8FZQ
More information about the SATLUG
mailing list