pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gdb 6.2.1 under Solaris 9
Just to let you know (as I don't have a copy of send-pr) that the
devel/gdb6 port seems a bit broken on Solaris 9. I did get gdb installed
but it required some hacks...
1) bmake (build fails with an ln error saying file exists)
2) remove work/gdb-6.2.1/libtool.m4
3) bmake (build fails with errors I didn't keep but they were syntax
errors in string_iso.h included from /usr/include/string.h included from
gdb_string.h include by gdb/tuisomething.c)
4) cd to work/gdb and run the gcc line that failed. it will work this
time)
5) repeat steps 3 & 4 many times for different gdb/tui*.c files
6) once past the tui files bit everything will work until the linking
which will fail with:
gcc -O -I/usr/pkg/gcc34/include
-I/usr/pkg/gcc34/lib/gcc/sparc-sun-solaris2.9/3.4.5/include -I/usr/include
-I/usr/pkg/include \
-o gdb gdb.o libgdb.a \
../bfd/libbfd.a ../readline/libreadline.a
../opcodes/libopcodes.a ../libiberty/libiberty.a -ldl -ltermcap
-lsocket -lnsl -lm -liconv ../libiberty/libiberty.a
Undefined first referenced
symbol in file
libintl_gettext libgdb.a(main.o)
libintl_textdomain libgdb.a(main.o)
libintl_bindtextdomain libgdb.a(main.o)
libintl_dgettext ../bfd/libbfd.a(bfd.o)
ld: fatal: Symbol referencing errors. No output written to gdb
collect2: ld returned 1 exit status
gmake[1]: *** [gdb] Error 1
gmake[1]: Leaving directory
`/usr/pkg/pkgsrc/devel/gdb6/work/gdb-6.2.1/gdb'
gmake: *** [all-gdb] Error 2
*** Error code 2
I ran the command myself but added "-L/usr/pkg/lib", "-R/usr/pkg/lib" and
"-lintl" in appropriate places.
7) gdbtui will fail to link also...same fix required as for gdb in step 6.
8) bmake install
gdb appears to be working OK after all that. I don't have time to look
into it much further but hopefully this might help someone else track down
the problem or at least help someone else get gdb installed.
Thanks,
Andrew
Home |
Main Index |
Thread Index |
Old Index