Excerpt:
CC="gcc -m64" ./configure --prefix=/u/engineering/locals/solaris10/softs/proglang/gdb-6.6
make
make install
Compilation errors:
rm -f gdb
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
Undefined first referenced
symbol in file
initscr32 libgdb.a(tui.o)
w32addch libgdb.a(tui-io.o)
w32attron libgdb.a(tui-wingeneral.o)
w32attroff libgdb.a(tui-wingeneral.o)
acs32map libgdb.a(tui-win.o)
ld: fatal: Symbol referencing errors. No output written to gdb
To solve it:
cd /usr/ccs/lib
ln -s /usr/ccs/lib/libcurses.so libncurses.so