[Home]

Summary:ASTERISK-03766: asterisk-addons and 64bit make
Reporter:Daniele Gallina (gallysoft)Labels:
Date Opened:2005-03-25 09:14:28.000-0600Date Closed:2005-04-05 23:53:22
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi all, I have an Athlon 64 server with Fedora Core 2 x86_64. When I try
to make asterisk-addons-1.0.7 (and olders) it can't and it say me

[root@server1 asterisk-addons-1.0.7]# make install
./mkdep -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql   `ls *.c`
make -C format_mp3 all
make[1]: Entering directory `/usr/src/asterisk-addons-1.0.7/format_mp3'
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
common.o common.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
dct64_i386.o dct64_i386.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
decode_ntom.o decode_ntom.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
layer3.o layer3.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
tabinit.o tabinit.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
interface.o interface.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o
format_mp3.o format_mp3.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64 -shared
-Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o
layer3.o tabinit.o interface.o format_mp3.o
/usr/bin/ld: common.o: relocation R_X86_64_32 can not be used when
making a shared object; recompile with -fPIC
common.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [format_mp3.so] Error 1
make[1]: Leaving directory `/usr/src/asterisk-addons-1.0.7/format_mp3'
make: *** [format_mp3/format_mp3.so] Error 2
Comments:By: Mark Spencer (markster) 2005-03-25 10:26:57.000-0600

Not a bug in CVS head.  CVS stable just needs to add -fPIC to the CFLAGS

By: Russell Bryant (russell) 2005-04-05 04:35:15

-fPIC is already defined in the CFLAGS for stable -addons.

I'm going to need someone with a 64-bit machine to help me out on this one.  I have no way to test this.

By: Malcolm Davenport (mdavenport) 2005-04-05 12:43:20

Committed -fPIC to the Makefile in the format_mp3 subdirectory.  Thanks :)

By: Russell Bryant (russell) 2005-04-05 23:53:22

Malcolm fixed it  :)