cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IBM-AIX xlc Makefile internal compiler error

From: Frank Chang <frank_chang91_at_hotmail.com>
Date: Tue, 22 Jan 2013 14:08:29 -0500

Tor Arnsten, We followed the following steps on IBM-AIX:
 
export CC=xlc
./configure
make

and progress.c is unable to build correctly with the Makefile and libtool.
 
  However, when we manually enter the following command line directive. we obtain the result shown below. If you have the time, could you possibly look into the cause of the problem 1) IBM AIX configuration process or 2) something in the Makefile? Thank you for your help.
 
$ xlc -v -I./include/curl -I./include -I./lib -DHAVE_BOOL_T -DHAVE_STRUCT_TIMEV
AL -Dsread -Dswrite -DHAVE_SIG_ATOMIC_T lib/progress.c
exec: /usr/vac/exe/xlcentry(/usr/vac/exe/xlcentry,-D_AIX,-D_AIX32,-D_AIX41,-D_AI
X43,-D_AIX50,-D_AIX51,-D_IBMR2,-D_POWER,-I./include/curl,-I./include,-I./lib,-DH
AVE_BOOL_T,-DHAVE_STRUCT_TIMEVAL,-Dsread,-Dswrite,-DHAVE_SIG_ATOMIC_T,-q32,-qans
ialias,-oprogress.o,lib/progress.c,/tmp/xlcW0BZ7fUa,/tmp/xlcW1BZ7fUb,/dev/null,p
rogress.lst,/dev/null,/tmp/xlcW2BZ7fUc,NULL)
"lib/curl_addrinfo.h", line 78.18: 1506-310 (I) The type "struct hostent" was in
troduced in a parameter list, and will go out of scope at the end of the functio
n declaration or definition.
exec: /usr/vac/exe/xlCcode(/usr/vac/exe/xlCcode,-qansialias,/tmp/xlcW0BZ7fUa,/tm
p/xlcW1BZ7fUb,progress.o,progress.lst,/tmp/xlcW2BZ7fUc,NULL)
exec: /bin/ld(/bin/ld,-b32,/lib/crt0.o,-bpT:0x10000000,-bpD:0x20000000,progress.
o,-L/usr/lpp/xlopt,-lxlopt,-lc,NULL)
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
unlink: /tmp/xlcW0BZ7fUa
unlink: /tmp/xlcW1BZ7fUb
unlink: /tmp/xlcW2BZ7fUc

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-22