Hello,

As I faced the same problem while compiling gdb-6.6 on Solaris 10 Sparc, I just 
wanted to let you know how I worked around this.

Actually, installing a new libncurses.a does not solve the problem since these 
symbols (initscr32, ...) are not defined in it. I had to re-compile ncurses 5.6 
to check it unfortunately.
But, the thing is that they are defined in the native Solaris curses library.
So:

cd /usr/local/lib
ln -s /usr/ccs/lib/libcurses.a libncurses.a

and roule ma poule:

gcc -g -O2       \
        -o gdb gdb.o libgdb.a \
           ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a 
./../intl/libintl.a ../libiberty/libiberty.a      -ldl -lncurses -lsocket -lnsl 
-lm      ../libiberty/libiberty.a  
gcc -c -g -O2     -I. -I. -I./config 
-DLOCALEDIR="\"/u/engineering/locals/solaris10/softs/proglang/gdb-6.6/share/locale\""
 -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/..  -I../bfd -I./../bfd 
-I./../include  -I./../intl  -DMI_OUT=1 -DTUI=1  -Wimplicit -Wreturn-type 
-Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith 
-Wformat-nonliteral -Wunused-label -Wunused-function -Wuninitialized  
./tui/tui-main.c
rm -f gdbtui
gcc -g -O2       \
        -o gdbtui tui-main.o libgdb.a \
           ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a 
./../intl/libintl.a ../libiberty/libiberty.a      -ldl -lncurses -lsocket -lnsl 
-lm      ../libiberty/libiberty.a  

Cheers,
jerome
 
 
This message posted from opensolaris.org

Reply via email to