I am building a static version of ncurses (don’t ask) and there are a couple of 
problems I note:


  1.  The xlc include search order defaults to -I/usr/include as the 1st place 
to search (despite what the man page for c89 says) whereas other *IX systems 
search the user specification first then the system. I had to add -qnosearch 
then the user spec then a -I/usr/include. Annoying – is there a way around this?
  2.  After I get a clean compilation the linker craps out with:

xlc ../objects/tic.o  ../objects/dump_entry.o  ../objects/tparm_type.o  
../objects/transform.o -O -qxplink -qdll -qxplink -qdll -qnosearch 
-DHAVE_CONFIG_H -I../progs -I. -I../include -D_ALL_SOURCE -D_EXT  
-D_XOPEN_SOURCE_EXTENDED=1 -D__VM__ -D_ISOC99_SOURCE -DEBCDIC -D_OE_SOCKETS 
-D_OPEN_MSGQ_EXT -D_OPEN_SYS -D_OPEN_THREADS -D_POSIX_SOURCE -D_UNIX03_SOURCE 
-D_UNIX03_WITHDRAWN -D_XOPEN_SOURCE=600 -DNCURSES_CONST=const -I/usr/include -O 
-qlanglvl=extended:extc89:extc99 -qxplink -qdll -qenum=int -qexportall 
-qfloat=ieee -qlongname -q32 -qseverity=e=CCN3296 -DNCURSES_STATIC -L../lib  
-lncurses -lncurses -o tic

FSUM3008 Specify a file with the correct suffix (.c, .i, .s, .o, .x, .p, .I, or 
.a), or a corresponding data set name, instead of -L../lib.



I change the command to get rid of the -L../lib and -l options but still have a 
problem at which point I am now stuck:



xlc ../objects/tic.o  ../objects/dump_entry.o  ../objects/tparm_type.o  
../objects/transform.o -O -qxplink -qdll -qxplink -qdll -qnosearch 
-DHAVE_CONFIG_H -I../progs -I. -I../include -D_ALL_SOURCE -D_EXT  
-D_XOPEN_SOURCE_EXTENDED=1 -D__VM__ -D_ISOC99_SOURCE -DEBCDIC -D_OE_SOCKETS 
-D_OPEN_MSGQ_EXT -D_OPEN_SYS -D_OPEN_THREADS -D_POSIX_SOURCE -D_UNIX03_SOURCE 
-D_UNIX03_WITHDRAWN -D_XOPEN_SOURCE=600 -DNCURSES_CONST=const -I/usr/include -O 
-qlanglvl=extended:extc89:extc99 -qxplink -qdll -qenum=int -qexportall 
-qfloat=ieee -qlongname -q32 -qseverity=e=CCN3296 -DNCURSES_STATIC 
../lib/libncurses.a ../lib/libncurses.a -o tic

FSUM3008 Specify a file with the correct suffix (.c, .i, .s, .o, .x, .p, .I, or 
.a), or a corresponding data set name, instead of -o./tic.

Any advice?

Neale

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to