Subject: Re: gdb 6.2.1 under Solaris 9
To: None <pkgsrc-bugs@NetBSD.org, andrew@ugh.net.au>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 02/15/2006 17:31:20
> From: Andrew <andrew@ugh.net.au>
>
>
>
> 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.
>
I think that's your (wrong) wrapper
Try this in mk.conf and rebuild needed package
---------------------------------cut here-------------------------------------
# iconv is a system lib on Solaris10
BUILDLINK_RPATHDIRS.iconv= #empty
BUILDLINK_LIBDIRS.iconv= #empty
# pthread is a system lib on Solaris10
BUILDLINK_RPATHDIRS.pthread= #empty
BUILDLINK_LIBDIRS.pthread= #empty
# dl is a system lib on Solaris10
BUILDLINK_RPATHDIRS.dl= #empty
BUILDLINK_LIBDIRS.dl= #empty
# gettext est construit a partir de pkgsrc
BUILDLINK_LIBDIRS.gettext= lib
BUILDLINK_LDFLAGS.gettext= -R/usr/pkg/lib
PREFER_NATIVE= yes
# On utilise la zlib native, je ne sais trop pourquoi
IS_BUILTIN.zlib= yes
USE_BUILTIN.zlib= no # force use of pkgsrc zlib a cause de -R/usr/lib/64
IS_BUILTIN.iconv= yes
USE_BUILTIN.iconv= yes
ICONV_TYPE= native
# pour que le BUILDLINK_LDFLAGS soit le bon
USE_BUILTIN.bzip2= no
PREFER.bzip2= pkgsrc
USE_BZIP2= yes
########################################
# Y a un sac de moeud avec gettext et libintl
# gettext exist en Solaris 10 mais pas de la bonne version
########################################
IS_BUILTIN.gettext= yes
#USE_BUILTIN.gettext= yes
# Re test... 23/01/2006
USE_BUILTIN.gettext= no # force use of pkgsrc gettext-lib
#USE_MSGFMT_PLURALS= yes
-----------------------------------------------------------
Sorry for frenchy words
Gilles