Daniele Gallina - 3P System S.r.l.
2005-Mar-02 00:45 UTC
[Asterisk-Users] Addons Make Problems! HELP!
Hi all, I have a server with an Athlon 64 3200 and Fedora Core 2 x86_64. I have compiled and installed Asterisk 1.0.6 without any problems. When I try to make asterisk-addons-1.0.6 it say me: [root@server1 asterisk-addons-1.0.6]# make ./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.6/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.6/format_mp3' make: *** [format_mp3/format_mp3.so] Error 2 Now, I am not a Linux Expert. What can I do for make addons??? Thank to all, and sorry for my poor english. Daniele Gallina -- Daniele Gallina 3P System S.r.l. - Software Developer Web: http://www.3psystem.net E-Mail: daniele@3psystem.net Tel: 041.8626401 Int. 12 Fax: 041.5161655
On Wed, Mar 02, 2005 at 08:45:24AM +0100, Daniele Gallina - 3P System S.r.l. wrote:> Hi all, > I have a server with an Athlon 64 3200 and Fedora Core 2 x86_64. > I have compiled and installed Asterisk 1.0.6 without any problems. When > I try to make asterisk-addons-1.0.6 it say me: > > [root@server1 asterisk-addons-1.0.6]# make > ./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.6/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 -fPICNot that I really know what this means, but any chance you're mixing 32bit and 64bit code?> 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.6/format_mp3' > make: *** [format_mp3/format_mp3.so] Error 2-- Tzafrir Cohen | New signature for new address and | VIM is http://tzafrir.org.il | new homepage | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | Space reserved for other protocols | friend