Re: Tn5250 compile under IBM Aix 5.3

Scott Klement <[email protected]>
Newsgroups gmane.comp.emulators.tn5250
Message-ID <[email protected]>
A quick Google found the following discussion that might prove useful:

http://www.linuxforums.org/forum/redhat-fedora-linux-help/104263-undefined-reference-rpl_malloc.html

Alberto wrote:
> Hi James this is what i am getting :
> 
> <--->
>  make
>         make  all-recursive
> Making all in lib5250
> Target "all" is up to date.
> Making all in lp5250d
>         /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2    -o scs2pdf 
> scs2pdf.o ../lib5250/lib5250.la -lssl -lcrypto
> gcc -g -O2 -o .libs/scs2pdf 
> scs2pdf.o  -L../lib5250/.libs -l5250 -lssl -lcrypto  -Wl,-blibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
> ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc
> ld: 0711-317 ERROR: Undefined symbol: .rpl_realloc
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
> information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> <--->
> 
> 
> looking on the internet it seems that setting a variable 
> ac_cv_func_malloc_0_nonnull=yes helps ( it helped with the XlC compiler) but 
> with GCC no.
> 
> Thanks
> Ciao.
> Alberto.
> 
> "James Rich" <[email protected]> ha scritto nel messaggio 
> news:mailman.27643.1273687588.2580.linux5250-Zwy7GipZuJitq2lpoERdew@public.gmane.org
>> On Wed, 12 May 2010, Alberto wrote:
>>
>>> Hi James, thanks for your answer :-)
>>> I succesfully compiled the tn5250 under aix at least, but unfortunately
>>> every time i try to launch it  i get a "segmentation fault(coredump)" 
>>> error.
>>> The compiler was XLC , seems that with GCC there still are problems.
>>> I will try to do some tests and i'll let you know :-)
>> Can you post the output from gcc?
>>
>> James Rich
>>
>> if you want to understand why that is, there are many good books on
>> the design of operating systems. please pass them along to redmond
>> when you're done reading them :)
>>  - Paul Davis on ardour-dev 
> 
> 

-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.