[Asterisk-Users] compiling cdr_mysql on AMD64 fedora core 2

Umar Sear usedcanon at yahoo.co.uk
Sun Oct 17 22:01:42 MST 2004


I had simillar issues (not the same maybe) with Centos 3.3 X64. 

The first was becuase I had asterisk compile in /usr/src/asterisk-1.0.1
rather than /usr/src/asterisk. 

creating a symbolic link took the build process further but still
failed. This time it was to do with the fact that it was looking for the
mysql libs in /usr/lib/mysql whilst being x64 they were installed in
/usr/lib64/mysql. Once again creating a symbolic link fixed that and I
was able to compile clean.

I hope this helps you diagnose the issue that you are having (my guess
is that the error you are reporting is simmillar to the first error I
had)

Umar.

On Sat, 2004-10-16 at 21:52, david winter wrote:
> I got this error when installing cdr_mysql on an AMD64 running fedora
> core 2. Anyone have ideas on what is wrong?
> 
>  
> 
> 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
> `/home/dwinter/src/asterisk-addons/format_mp3'
> 
> make: *** [format_mp3/format_mp3.so] Error 2
> 
> [root at ast1 asterisk-addons]#
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list