Re: Problem compiling freeradius on x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Sergio Belkin wrote:
2008/3/5, Mogens Kjaer <mk@xxxxxx>:
Sergio Belkin wrote:
 > Hi,
 > I can't compile freeradius-2.0.2 (Centos RPM is too old for what I
 > need) on Centos 5.1 x86_64. It outputs:
 >
 > /usr/lib/libltdl.so: could not read symbols: File in wrong format
 > collect2: ld returned 1 exit status


That error means you are trying to link against i386 libraries with -m64 ... which you can't do. You need to remove all i[3,4,5,6]86 RPMS from an x86_64 build server except for glibc.i686 and glibc-devel.i386 (and those packages are only needed to build a couple packages).


Maybe it should look for /usr/lib64/libltdl.so ?

 Can't you use the Centos SRPM file as a template for
 the build process?
<snip>

Ooops  :S How can I do that?

First thing is that building on x86_64 is quite a PITA.

You will need to either use mock with the appropriate configuration file or you will need to create a build machine that has only x86_64 RPMS (otherwise you will either try (and fail) to link to i386 libraries ... or if you have enough i386 software actually installed (binutils, libgcc, glibc and glibc-devel) then you will actually link against i386 libraries).

This will most likely make your binaries not work, or require mixed software on other installs.

So, I would recommend that you create a build VM or use mock.

Thanks,
Johnny Hughes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux