[Freeswitch-users] cannot compile 64 bit freeswitch

curriegrad2004 curriegrad2004 at gmail.com
Fri Apr 1 18:32:45 MSD 2011


Seems like your compiler is trying to link x86 code with x86_64 code.
Have you tried adding this before the ./configure command?

eg. CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 ./configure

On Fri, Apr 1, 2011 at 2:41 AM,  <covici at ccs.covici.com> wrote:
> Here is some of what I get when i try to compile fs using 64-bit C
> compiler and libraries -- using gentoo.
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> i386 architecture of input file `./.libs/libsqlite3.a(complete.o)' is
> incompatib\le with i386:x86-64 output
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> i386 architecture of input file `./.libs/libsqlite3.a(main.o)' is
> incompatible w\ith i386:x86-64 output
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> i386 architecture of input file `./.libs/libsqlite3.a(os_unix.o)' is
> incompatibl\e with i386:x86-64 output
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> i386 architecture of input file `./.libs/libsqlite3.a(prepare.o)' is
> incompatibl\e with i386:x86-64 output
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> i386 architecture of input file `./.libs/libsqlite3.a(printf.o)' is
> incompatible\ with i386:x86-64 output
>
>
> There is more like that and then it dies with a number of undefined
> references.
>
> How can I fix this library or what else should I do?  I restarted from
> ./bootstrap.sh  ./config and make.
>
> Any assistance would be appreciated.
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>         John Covici
>         covici at ccs.covici.com
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



More information about the FreeSWITCH-users mailing list