LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2013, 11:23 PM   #1
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Rep: Reputation: 15
Cross-Compiling on ARM from x86_64: Undef ref to rplmalloc/realloc


Hi I'm trying to compile autossh for a Moxa IA240 embedded arm computer.

All the details and the toolchain can be found here:
www.moxa.com/product/IA241_IA240.htm

I installed the toolchain, installed all the dependencies, added all the required variables to my path, etc.

I can /configure --host=arm-linux --build=x86_64 --prefix=/usr/local/arm-linux

Then I try to make and it spits out some errors.

Here is everything I have, the errors are at the bottom:
http://pastebin.com/JfVa53pL

I tried the trick of commenting out some different things in the configure setup scripts but that didn't change anything so far.

Also through a google search I learned that maybe setting ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes before ./configure would work too. Unfortunately that didn't work either because that's what everyone was having success with.

Please let me know if you have any ideas, thanks.
 
Old 07-12-2013, 07:00 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
A search on linuxquestions gave some answers.

Cheers
 
Old 07-12-2013, 07:45 AM   #3
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
I found that post too. I tried the fix and it didn't do anything.
 
Old 07-13-2013, 05:04 PM   #4
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Original Poster
Rep: Reputation: 15
Figured it out.

Had to modify configure.h and add some additional environment variables.
 
  


Reply



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
cross compiling apache-2.0.54 for arm jkeertir Linux - Newbie 3 09-11-2014 01:35 PM
[SOLVED] cross compiling for arm with buildroot brooko Slackware 3 01-29-2011 11:42 AM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 06:07 AM
ARM Cross Compiling Issues AuzJ Linux - Newbie 4 04-16-2009 03:47 AM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 AM.

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
Open Source Consulting | Domain Registration