× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



malloc should be prototyped in stdlib.h. Did you #include <stdlib.h> ?

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Shared pain is lessened; shared joy, increased.
-- Spider Robinson

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!!
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\" -
I/usr/include
-g -O2 -MT buffer.lo -MD -MP -MF ".deps/buffer.Tpo" -c -o
buffer.lo
buffer.c; then mv -f ".deps/buffer.Tpo" ".deps/buffer.Plo"; else rm
-f
".deps/buffer.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c buffer.c -
DPIC -o
.libs/buffer.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT conf.lo -MD -MP -MF ".deps/conf.Tpo" -c -o conf.lo
conf.c;
then mv -f ".deps/conf.Tpo" ".deps/conf.Plo"; else rm -f
".deps/conf.Tpo";
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT conf.lo -MD -MP -MF .deps/conf.Tpo -c conf.c -DPIC -o
.libs/conf.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT dbuffer.lo -MD -MP -MF ".deps/dbuffer.Tpo" -c -o
dbuffer.lo
dbuffer.c; then mv -f ".deps/dbuffer.Tpo" ".deps/dbuffer.Plo"; else
rm -f
".deps/dbuffer.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT dbuffer.lo -MD -MP -MF .deps/dbuffer.Tpo -c dbuffer.c -
DPIC -o
.libs/dbuffer.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT debug.lo -MD -MP -MF ".deps/debug.Tpo" -c -o debug.lo
debug.c;
then mv -f ".deps/debug.Tpo" ".deps/debug.Plo"; else rm -f
".deps/debug.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -DPIC -
o
.libs/debug.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT display.lo -MD -MP -MF ".deps/display.Tpo" -c -o
display.lo
display.c; then mv -f ".deps/display.Tpo" ".deps/display.Plo"; else
rm -f
".deps/display.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT display.lo -MD -MP -MF .deps/display.Tpo -c display.c -
DPIC -o
.libs/display.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT field.lo -MD -MP -MF ".deps/field.Tpo" -c -o field.lo
field.c;
then mv -f ".deps/field.Tpo" ".deps/field.Plo"; else rm -f
".deps/field.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT field.lo -MD -MP -MF .deps/field.Tpo -c field.c -DPIC -
o
.libs/field.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT macro.lo -MD -MP -MF ".deps/macro.Tpo" -c -o macro.lo
macro.c;
then mv -f ".deps/macro.Tpo" ".deps/macro.Plo"; else rm -f
".deps/macro.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT macro.lo -MD -MP -MF .deps/macro.Tpo -c macro.c -DPIC -
o
.libs/macro.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT menu.lo -MD -MP -MF ".deps/menu.Tpo" -c -o menu.lo
menu.c;
then mv -f ".deps/menu.Tpo" ".deps/menu.Plo"; else rm -f
".deps/menu.Tpo";
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT menu.lo -MD -MP -MF .deps/menu.Tpo -c menu.c -DPIC -o
.libs/menu.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT printsession.lo -MD -MP -MF ".deps/printsession.Tpo" -
c -o
printsession.lo printsession.c; then mv -f ".deps/printsession.Tpo"
".deps/printsession.Plo"; else rm -f ".deps/printsession.Tpo"; exit 1;
fi
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 -c
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\" -
I/usr/include
-g -O2 -MT record.lo -MD -MP -MF ".deps/record.Tpo" -c -o
record.lo
record.c; then mv -f ".deps/record.Tpo" ".deps/record.Plo"; else rm
-f
".deps/record.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT record.lo -MD -MP -MF .deps/record.Tpo -c record.c -
DPIC -o
.libs/record.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT scrollbar.lo -MD -MP -MF ".deps/scrollbar.Tpo" -c -o
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\" -
I/usr/include
-g -O2 -MT scrollbar.lo -MD -MP -MF .deps/scrollbar.Tpo -c
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\" -
I/usr/include
-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;
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-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=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT session.lo -MD -MP -MF ".deps/session.Tpo" -c -o
session.lo
session.c; then mv -f ".deps/session.Tpo" ".deps/session.Plo"; else
rm -f
".deps/session.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT session.lo -MD -MP -MF .deps/session.Tpo -c session.c -
DPIC -o
.libs/session.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT sslstream.lo -MD -MP -MF ".deps/sslstream.Tpo" -c -o
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\" -
I/usr/include
-g -O2 -MT sslstream.lo -MD -MP -MF .deps/sslstream.Tpo -c
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\" -
I/usr/include
-g -O2 -MT stream.lo -MD -MP -MF ".deps/stream.Tpo" -c -o
stream.lo
stream.c; then mv -f ".deps/stream.Tpo" ".deps/stream.Plo"; else rm
-f
".deps/stream.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT stream.lo -MD -MP -MF .deps/stream.Tpo -c stream.c -
DPIC -o
.libs/stream.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT telnetstr.lo -MD -MP -MF ".deps/telnetstr.Tpo" -c -o
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\" -
I/usr/include
-g -O2 -MT telnetstr.lo -MD -MP -MF .deps/telnetstr.Tpo -c
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\" -
I/usr/include
-g -O2 -MT terminal.lo -MD -MP -MF ".deps/terminal.Tpo" -c -o
terminal.lo
terminal.c; then mv -f ".deps/terminal.Tpo" ".deps/terminal.Plo";
else
rm -f ".deps/terminal.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT terminal.lo -MD -MP -MF .deps/terminal.Tpo -c
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\" -
I/usr/include
-g -O2 -MT utility.lo -MD -MP -MF ".deps/utility.Tpo" -c -o
utility.lo
utility.c; then mv -f ".deps/utility.Tpo" ".deps/utility.Plo"; else
rm -f
".deps/utility.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c utility.c -
DPIC -o
.libs/utility.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT version.lo -MD -MP -MF ".deps/version.Tpo" -c -o
version.lo
version.c; then mv -f ".deps/version.Tpo" ".deps/version.Plo"; else
rm -f
".deps/version.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -
DPIC -o
.libs/version.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT window.lo -MD -MP -MF ".deps/window.Tpo" -c -o
window.lo
window.c; then mv -f ".deps/window.Tpo" ".deps/window.Plo"; else rm
-f
".deps/window.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-g -O2 -MT window.lo -MD -MP -MF .deps/window.Tpo -c window.c -
DPIC -o
.libs/window.o
if /bin/sh ../libtool --tag=CC --mode=compile
cc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-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;
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I/usr/include
-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 -o
lib5250.la -rpath /usr/local/lib buffer.lo conf.lo dbuffer.lo
debug.lo
display.lo field.lo macro.lo menu.lo printsession.lo record.lo
scrollbar.lo
scs.lo session.lo sslstream.lo stream.lo telnetstr.lo terminal.lo
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.
o
.libs/printsession.o .libs/record.o .libs/scrollbar.o .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
| awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B"))&&
(substr($3,1,1)
!= ".")) { print $3 } }' | sort -u> .libs/lib5250.exp
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
ro.o
.libs/menu.o .libs/printsession.o .libs/record.o .libs/scrollbar.o
.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,-
bE:.libs/lib5250.exp
${wl}-berok
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../lib5250
-I/usr/include -g -O2 -MT scs2ascii.o -MD -MP -MF
".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
scs2ascii.o ../lib5250/lib5250.la -lssl -lcrypto
mkdir .libs
gcc -g -O2 -o .libs/scs2ascii
scs2ascii.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
creating scs2ascii
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I../lib5250
-I/usr/include -g -O2 -MT scs2pdf.o -MD -MP -MF
".deps/scs2pdf.Tpo" -c -o scs2pdf.o scs2pdf.c; then mv -f
".deps/scs2pdf.Tpo" ".deps/scs2pdf.Po"; else rm -f
".deps/scs2pdf.Tpo"; exit
1; fi
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-
in
function 'malloc'
scs2pdf.c: In function 'array_append_val':
scs2pdf.c:1413: warning: incompatible implicit declaration of built-
in
function 'malloc'
scs2pdf.c:1417: warning: assignment makes pointer from integer
without a
cast
/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
creating scs2pdf
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I../lib5250
-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; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
scs2ps
scs2ps.o ../lib5250/lib5250.la -lssl -lcrypto
gcc -g -O2 -o .libs/scs2ps
scs2ps.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
creating scs2ps
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I../lib5250
-I/usr/include -g -O2 -MT lp5250d.o -MD -MP -MF
".deps/lp5250d.Tpo" -c -o lp5250d.o lp5250d.c; then mv -f
".deps/lp5250d.Tpo" ".deps/lp5250d.Po"; else rm -f
".deps/lp5250d.Tpo"; exit
1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
lp5250d
lp5250d.o ../lib5250/lib5250.la -lssl -lcrypto
gcc -g -O2 -o .libs/lp5250d
lp5250d.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
creating lp5250d
Target "all" is up to date.
Making all in curses
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I../lib5250
-I/usr/include -DUSE_CURSES -g -O2 -MT tn5250-cursesterm.o -MD -
MP -MF
".deps/tn5250-cursesterm.Tpo" -c -o tn5250-cursesterm.o `test -f
'cursesterm.c' || echo './'`cursesterm.c; then mv -f
".deps/tn5250-cursesterm.Tpo" ".deps/tn5250-cursesterm.Po"; else rm -
f
".deps/tn5250-cursesterm.Tpo"; exit 1; fi
cursesterm.c: In function 'tn5250_curses_terminal_new':
cursesterm.c:263: warning: incompatible implicit declaration of
built-in
function 'malloc'
cursesterm.c: In function 'curses_terminal_init':
cursesterm.c:416: warning: incompatible implicit declaration of
built-in
function 'malloc'
cursesterm.c: In function 'tn5250_curses_terminal_set_xterm_font':
cursesterm.c:519: warning: incompatible implicit declaration of
built-in
function 'malloc'
cursesterm.c: In function 'curses_terminal_print_screen':
cursesterm.c:1491: warning: incompatible implicit declaration of
built-in
function 'malloc'
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -
I../lib5250
-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"
".deps/tn5250-tn5250.Po"; else rm -f ".deps/tn5250-tn5250.Tpo"; exit
1; fi
tn5250.c: In function 'main':
tn5250.c:97: warning: assignment makes pointer from integer without a
cast
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o
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 -
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
creating tn5250
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
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"<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
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@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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.