LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2014, 04:26 AM   #1
M.Tenenbaum
LQ Newbie
 
Registered: May 2014
Posts: 9

Rep: Reputation: Disabled
error compiling linphone for 32bits in ubuntu-12.04(64 bits)


Hello,

I'm trying to compile linphone for 32bits-architecture without video.
I export this flags: CFLAGS=-m32 LDFLAGS=-m32 CXXFLAGS=-m32
then I run:
$./configure --disable-video
Everything seems fine
But when I run
$make
I get this error:
Making all in oRTP
make[2]: Entering directory `/home/stella/linphone-hc2/linphone-3.3.2/oRTP'
make all-recursive
make[3]: Entering directory `/home/stella/linphone-hc2/linphone-3.3.2/oRTP'
Making all in src
make[4]: Entering directory `/home/stella/linphone-hc2/linphone-3.3.2/oRTP/src'
Making all in .
make[5]: Entering directory `/home/stella/linphone-hc2/linphone-3.3.2/oRTP/src'
CCLD libortp.la
/usr/bin/ld: i386:x86-64 architecture of input file `.libs/stun.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `.libs/stun_udp.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `.libs/srtp.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `.libs/b64.o' is incompatible with i386 output
collect2: ld returned 1 exit status

I don't know if I have to compile another extra 32bit-library or I have to include some other option or how to solve this problem. I've been searching through the mailing-list and google, and I don't find anyone with the same problem.
I've already installed ia32-libs package.

Please help me, I'm stuck
Regards,
Stella.
 
Old 07-22-2014, 12:08 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Seems to be a 32/64bit problem. Have you installed the make:i386 package?
jdk
 
1 members found this post helpful.
Old 07-22-2014, 01:48 AM   #3
M.Tenenbaum
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes, you are right. It was a 32-64 bit issue.
I started from scratch with flags for 32 bit and everything seemed to be ok, till make gave this message:
Code:
Making all in win_sender
make[6]: Entering directory `/home/stella/linphone-m32/linphone-3.3.2/oRTP/src/tests/win_sender'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/stella/linphone-m32/linphone-3.3.2/oRTP/src/tests/win_sender'
make[6]: Entering directory `/home/stella/linphone-m32/linphone-3.3.2/oRTP/src/tests'
  CCLD   rtpsend
../../src/.libs/libortp.so: undefined reference to `EVP_sha1'
../../src/.libs/libortp.so: undefined reference to `HMAC'
../../src/.libs/libortp.so: undefined reference to `MD5'
collect2: ld returned 1 exit status
make[6]: *** [rtpsend] Error 1
I have enabled shared libraries with make, but the error's still there. Maybe there's some other library I've forgotten to install for 32 bit?
Thanks.
Regards
 
Old 07-22-2014, 02:40 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
In the "leaving no stone unturned" department, you have installed the multiarch-support package, correct?
jdk
 
1 members found this post helpful.
Old 07-22-2014, 02:50 AM   #5
M.Tenenbaum
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes, you are right.
I have multiarch-support package installed.
Should I uninstall it?
I've uninstalled it via synaptic. It complains about important packages that must be deleted.

Last edited by M.Tenenbaum; 07-22-2014 at 02:52 AM.
 
Old 07-22-2014, 09:06 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
If you want to run 32 bit programs on a 64 bit Debian system then you need to have multiarch-support installed. Is there a special reason why you are compiling linphone for a 32 bit system?
jdk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cryptography... what's difference between 8bits / 16 bits / 32 bits/ 64 bits/128bits? ybpark81 Linux - Security 4 02-19-2012 08:38 AM
Linphone Build Error in Ubuntu gcc 4.6.1 hiteurecomupf Linux - Distributions 2 11-05-2011 03:25 AM
ubuntu 10.10 error logs when install on windows 7 32bits ulitmate salimshahzad Linux - Newbie 1 12-29-2010 06:17 AM
troubles compiling SDLMame on 64 bits Revolver Onslaught Linux - Software 1 01-12-2009 09:39 AM
Things to consider when compiling C using 32 bits instead of 64 bits processors rpomerleau Programming 2 07-08-2008 01:22 PM


All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration