|
All of those "incompatible implicit declaration" warnings bother me.
Why are they implicit declarations?! malloc should surely be
prototyped
somewhere?!
What the heck?
On 5/13/2010 11:12 AM, Alberto wrote:
Hi Scott thanks for your answer!!I/usr/include
This is what i've got :
<<--->>
make
make all-recursive
Making all in lib5250
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT buffer.lo -MD -MP -MF ".deps/buffer.Tpo" -c -obuffer.lo
buffer.c; then mv -f ".deps/buffer.Tpo" ".deps/buffer.Plo"; else rm-f
".deps/buffer.Tpo"; exit 1; fiI/usr/include
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c buffer.c -DPIC -o
.libs/buffer.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT conf.lo -MD -MP -MF ".deps/conf.Tpo" -c -o conf.loconf.c;
then mv -f ".deps/conf.Tpo" ".deps/conf.Plo"; else rm -f".deps/conf.Tpo";
exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT conf.lo -MD -MP -MF .deps/conf.Tpo -c conf.c -DPIC -oI/usr/include
.libs/conf.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT dbuffer.lo -MD -MP -MF ".deps/dbuffer.Tpo" -c -odbuffer.lo
dbuffer.c; then mv -f ".deps/dbuffer.Tpo" ".deps/dbuffer.Plo"; elserm -f
".deps/dbuffer.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT dbuffer.lo -MD -MP -MF .deps/dbuffer.Tpo -c dbuffer.c -DPIC -o
.libs/dbuffer.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT debug.lo -MD -MP -MF ".deps/debug.Tpo" -c -o debug.lodebug.c;
then mv -f ".deps/debug.Tpo" ".deps/debug.Plo"; else rm -fI/usr/include
".deps/debug.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -DPIC -o
.libs/debug.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT display.lo -MD -MP -MF ".deps/display.Tpo" -c -odisplay.lo
display.c; then mv -f ".deps/display.Tpo" ".deps/display.Plo"; elserm -f
".deps/display.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT display.lo -MD -MP -MF .deps/display.Tpo -c display.c -DPIC -o
.libs/display.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT field.lo -MD -MP -MF ".deps/field.Tpo" -c -o field.lofield.c;
then mv -f ".deps/field.Tpo" ".deps/field.Plo"; else rm -fI/usr/include
".deps/field.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT field.lo -MD -MP -MF .deps/field.Tpo -c field.c -DPIC -o
.libs/field.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT macro.lo -MD -MP -MF ".deps/macro.Tpo" -c -o macro.lomacro.c;
then mv -f ".deps/macro.Tpo" ".deps/macro.Plo"; else rm -fI/usr/include
".deps/macro.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT macro.lo -MD -MP -MF .deps/macro.Tpo -c macro.c -DPIC -o
.libs/macro.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT menu.lo -MD -MP -MF ".deps/menu.Tpo" -c -o menu.lomenu.c;
then mv -f ".deps/menu.Tpo" ".deps/menu.Plo"; else rm -f".deps/menu.Tpo";
exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT menu.lo -MD -MP -MF .deps/menu.Tpo -c menu.c -DPIC -oI/usr/include
.libs/menu.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT printsession.lo -MD -MP -MF ".deps/printsession.Tpo" -c -o
printsession.lo printsession.c; then mv -f ".deps/printsession.Tpo"fi
".deps/printsession.Plo"; else rm -f ".deps/printsession.Tpo"; exit 1;
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -I/usr/include
-g -O2 -MT printsession.lo -MD -MP -MF .deps/printsession.Tpo -cI/usr/include
printsession.c -DPIC -o .libs/printsession.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT record.lo -MD -MP -MF ".deps/record.Tpo" -c -orecord.lo
record.c; then mv -f ".deps/record.Tpo" ".deps/record.Plo"; else rm-f
".deps/record.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT record.lo -MD -MP -MF .deps/record.Tpo -c record.c -DPIC -o
.libs/record.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT scrollbar.lo -MD -MP -MF ".deps/scrollbar.Tpo" -c -oI/usr/include
scrollbar.lo scrollbar.c; then mv -f ".deps/scrollbar.Tpo"
".deps/scrollbar.Plo"; else rm -f ".deps/scrollbar.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT scrollbar.lo -MD -MP -MF .deps/scrollbar.Tpo -cI/usr/include
crollbar.c -DPIC -o .libs/scrollbar.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT scs.lo -MD -MP -MF ".deps/scs.Tpo" -c -o scs.lo scs.c;then
mv -f ".deps/scs.Tpo" ".deps/scs.Plo"; else rm -f ".deps/scs.Tpo";exit 1;
fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT scs.lo -MD -MP -MF .deps/scs.Tpo -c scs.c -DPIC -o .libs/scs.o
if /bin/sh ../libtool --tag=CC --mode=compileI/usr/include
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT session.lo -MD -MP -MF ".deps/session.Tpo" -c -osession.lo
session.c; then mv -f ".deps/session.Tpo" ".deps/session.Plo"; elserm -f
".deps/session.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT session.lo -MD -MP -MF .deps/session.Tpo -c session.c -DPIC -o
.libs/session.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT sslstream.lo -MD -MP -MF ".deps/sslstream.Tpo" -c -oI/usr/include
sslstream.lo sslstream.c; then mv -f ".deps/sslstream.Tpo"
".deps/sslstream.Plo"; else rm -f ".deps/sslstream.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT sslstream.lo -MD -MP -MF .deps/sslstream.Tpo -cI/usr/include
slstream.c -DPIC -o .libs/sslstream.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT stream.lo -MD -MP -MF ".deps/stream.Tpo" -c -ostream.lo
stream.c; then mv -f ".deps/stream.Tpo" ".deps/stream.Plo"; else rm-f
".deps/stream.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT stream.lo -MD -MP -MF .deps/stream.Tpo -c stream.c -DPIC -o
.libs/stream.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT telnetstr.lo -MD -MP -MF ".deps/telnetstr.Tpo" -c -oI/usr/include
telnetstr.lo telnetstr.c; then mv -f ".deps/telnetstr.Tpo"
".deps/telnetstr.Plo"; else rm -f ".deps/telnetstr.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT telnetstr.lo -MD -MP -MF .deps/telnetstr.Tpo -cI/usr/include
elnetstr.c -DPIC -o .libs/telnetstr.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT terminal.lo -MD -MP -MF ".deps/terminal.Tpo" -c -oterminal.lo
terminal.c; then mv -f ".deps/terminal.Tpo" ".deps/terminal.Plo";else
rm -f ".deps/terminal.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT terminal.lo -MD -MP -MF .deps/terminal.Tpo -cI/usr/include
terminal.c -DPIC -o .libs/terminal.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT utility.lo -MD -MP -MF ".deps/utility.Tpo" -c -outility.lo
utility.c; then mv -f ".deps/utility.Tpo" ".deps/utility.Plo"; elserm -f
".deps/utility.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c utility.c -DPIC -o
.libs/utility.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT version.lo -MD -MP -MF ".deps/version.Tpo" -c -oversion.lo
version.c; then mv -f ".deps/version.Tpo" ".deps/version.Plo"; elserm -f
".deps/version.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -DPIC -o
.libs/version.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT window.lo -MD -MP -MF ".deps/window.Tpo" -c -owindow.lo
window.c; then mv -f ".deps/window.Tpo" ".deps/window.Plo"; else rm-f
".deps/window.Tpo"; exit 1; fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT window.lo -MD -MP -MF .deps/window.Tpo -c window.c -DPIC -o
.libs/window.oI/usr/include
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT wtd.lo -MD -MP -MF ".deps/wtd.Tpo" -c -o wtd.lo wtd.c;then
mv -f ".deps/wtd.Tpo" ".deps/wtd.Plo"; else rm -f ".deps/wtd.Tpo";exit 1;
fiI/usr/include
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-g -O2 -MT wtd.lo -MD -MP -MF .deps/wtd.Tpo -c wtd.c -DPIC -o .libs/wtd.o
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -odebug.lo
lib5250.la -rpath /usr/local/lib buffer.lo conf.lo dbuffer.lo
display.lo field.lo macro.lo menu.lo printsession.lo record.loscrollbar.lo
scs.lo session.lo sslstream.lo stream.lo telnetstr.lo terminal.loo
utility.lo version.lo window.lo wtd.lo -lssl -lcrypto
generating symbol list for `lib5250.la'
/usr/bin/nm -B -BCpg .libs/buffer.o .libs/conf.o .libs/dbuffer.o
.libs/debug.o .libs/display.o .libs/field.o .libs/macro.o .libs/menu.
.libs/printsession.o .libs/record.o .libs/scrollbar.o .libs/scs.o/wtd.o
.libs/session.o .libs/sslstream.o .libs/stream.o .libs/telnetstr.o
.libs/terminal.o .libs/utility.o .libs/version.o .libs/window.o .libs
| awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B"))&&(substr($3,1,1)
!= ".")) { print $3 } }' | sort -u> .libs/lib5250.expro.o
gcc -shared -o .libs/lib5250.so.0 .libs/buffer.o .libs/conf.o
.libs/dbuffer.o .libs/debug.o .libs/display.o .libs/field.o .libs/mac
.libs/menu.o .libs/printsession.o .libs/record.o .libs/scrollbar.obE:.libs/lib5250.exp
.libs/scs.o .libs/session.o .libs/sslstream.o .libs/stream.o
.libs/telnetstr.o .libs/terminal.o .libs/utility.o .libs/version.o
.libs/window.o
libs/wtd.o -lssl -lcrypto -lc -Wl,-bnoentry -Wl,-
${wl}-berokI../lib5250
ar cru .libs/lib5250.a .libs/lib5250.so.0
creating lib5250.la
(cd .libs&& rm -f lib5250.la&& ln -s ../lib5250.la lib5250.la)
Target "all" is up to date.
Making all in lp5250d
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -g -O2 -MT scs2ascii.o -MD -MP -MFscs2ascii
".deps/scs2ascii.Tpo" -c -o scs2ascii.o scs2ascii.c; then mv -f
".deps/scs2ascii.Tpo" ".deps/scs2ascii.Po"; else rm -f
".deps/scs2ascii.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
scs2ascii.o ../lib5250/lib5250.la -lssl -lcryptoblibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-
mkdir .libs
gcc -g -O2 -o .libs/scs2ascii
scs2ascii.o -L../lib5250/.libs -l5250 -lssl -lcrypto -Wl,-
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
creating scs2asciiI../lib5250
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -g -O2 -MT scs2pdf.o -MD -MP -MF".deps/scs2pdf.Tpo"; exit
".deps/scs2pdf.Tpo" -c -o scs2pdf.o scs2pdf.c; then mv -f
".deps/scs2pdf.Tpo" ".deps/scs2pdf.Po"; else rm -f
1; fiin
scs2pdf.c: In function 'tn5250_scs2pdf_new':
scs2pdf.c:534: warning: incompatible implicit declaration of built-in
function 'malloc'
scs2pdf.c: In function 'array_new':
scs2pdf.c:1389: warning: incompatible implicit declaration of built-
function 'malloc'in
scs2pdf.c: In function 'array_append_val':
scs2pdf.c:1413: warning: incompatible implicit declaration of built-
function 'malloc'without a
scs2pdf.c:1417: warning: assignment makes pointer from integer
castscs2pdf
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
scs2pdf.o ../lib5250/lib5250.la -lssl -lcryptoblibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-
gcc -g -O2 -o .libs/scs2pdf
scs2pdf.o -L../lib5250/.libs -l5250 -lssl -lcrypto -Wl,-
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
creating scs2pdfI../lib5250
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -g -O2 -MT scs2ps.o -MD -MP -MF".deps/scs2ps.Tpo" -c -o
scs2ps.o scs2ps.c; then mv -f ".deps/scs2ps.Tpo" ".deps/scs2ps.Po";else
rm -f ".deps/scs2ps.Tpo"; exit 1; fiscs2ps
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
scs2ps.o ../lib5250/lib5250.la -lssl -lcryptoblibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-
gcc -g -O2 -o .libs/scs2ps
scs2ps.o -L../lib5250/.libs -l5250 -lssl -lcrypto -Wl,-
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
creating scs2psI../lib5250
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -g -O2 -MT lp5250d.o -MD -MP -MF".deps/lp5250d.Tpo"; exit
".deps/lp5250d.Tpo" -c -o lp5250d.o lp5250d.c; then mv -f
".deps/lp5250d.Tpo" ".deps/lp5250d.Po"; else rm -f
1; filp5250d
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
lp5250d.o ../lib5250/lib5250.la -lssl -lcryptoblibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-
gcc -g -O2 -o .libs/lp5250d
lp5250d.o -L../lib5250/.libs -l5250 -lssl -lcrypto -Wl,-
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
creating lp5250dI../lib5250
Target "all" is up to date.
Making all in curses
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -DUSE_CURSES -g -O2 -MT tn5250-cursesterm.o -MD -MP -MF
".deps/tn5250-cursesterm.Tpo" -c -o tn5250-cursesterm.o `test -ff
'cursesterm.c' || echo './'`cursesterm.c; then mv -f
".deps/tn5250-cursesterm.Tpo" ".deps/tn5250-cursesterm.Po"; else rm -
".deps/tn5250-cursesterm.Tpo"; exit 1; fibuilt-in
cursesterm.c: In function 'tn5250_curses_terminal_new':
cursesterm.c:263: warning: incompatible implicit declaration of
function 'malloc'built-in
cursesterm.c: In function 'curses_terminal_init':
cursesterm.c:416: warning: incompatible implicit declaration of
function 'malloc'built-in
cursesterm.c: In function 'tn5250_curses_terminal_set_xterm_font':
cursesterm.c:519: warning: incompatible implicit declaration of
function 'malloc'built-in
cursesterm.c: In function 'curses_terminal_print_screen':
cursesterm.c:1491: warning: incompatible implicit declaration of
function 'malloc'I../lib5250
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
-I/usr/include -DUSE_CURSES -g -O2 -MT tn5250-tn5250.o -MD -MP -MF
".deps/tn5250-tn5250.Tpo" -c -o tn5250-tn5250.o `test -f 'tn5250.c'|| echo
'./'`tn5250.c; then mv -f ".deps/tn5250-tn5250.Tpo"1; fi
".deps/tn5250-tn5250.Po"; else rm -f ".deps/tn5250-tn5250.Tpo"; exit
tn5250.c: In function 'main':cast
tn5250.c:97: warning: assignment makes pointer from integer without a
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -oWl,-blibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-
tn5250 -lcurses tn5250-cursesterm.o tn5250-tn5250.o
../lib5250/lib5250.la -lssl -lcrypto
mkdir .libs
gcc -g -O2 -o .libs/tn5250 tn5250-cursesterm.o
tn5250-tn5250.o -lcurses -L../lib5250/.libs -l5250 -lssl -lcrypto -
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
creating tn5250useful:
Target "all" is up to date.
Making all in doc
Target "all" is up to date.
Making all in freebsd
Target "all" is up to date.
Making all in linux
Target "all" is up to date.
Making all in sun
Target "all" is up to date.
Making all in win32
Target "all" is up to date.
Target "all-am" is up to date.
u000> tn5250
Segmentation fault(coredump)
<<--->>
It seems is not working the same :-(
Thanks!
Ciao.
Alberto
"Scott Klement"<tn5250@xxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:mailman.27750.1273761028.2580.linux5250@xxxxxxxxxxxxxxx
A quick Google found the following discussion that might prove
undefined-reference-rpl_malloc.html
http://www.linuxforums.org/forum/redhat-fedora-linux-help/104263-
scs2pdf
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
blibpath:/usr/local/lib:/opt/freeware/lib/gcc/powerpc-ibm-scs2pdf.o ../lib5250/lib5250.la -lssl -lcrypto
gcc -g -O2 -o .libs/scs2pdf
scs2pdf.o -L../lib5250/.libs -l5250 -lssl -lcrypto -Wl,-
aix5.3.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.2.0/../../..:/usr/lib:/lib
compiler)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
unfortunatelybut with GCC no.
Thanks
Ciao.
Alberto.
"James Rich"<james@xxxxxxxxxxx> ha scritto nel messaggio
news:mailman.27643.1273687588.2580.linux5250@xxxxxxxxxxxxxxx
On Wed, 12 May 2010, Alberto wrote:
Hi James, thanks for your answer :-)
I succesfully compiled the tn5250 under aix at least, but
fault(coredump)"every time i try to launch it i get a "segmentation
problems.error.
The compiler was XLC , seems that with GCC there still are
onI 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
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@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.