I try to build opensolaris libraries with debug information. To build them I 
copied the latest build sources and tools and call bldenv -d opensolaris.sh. 
When I do a dmake all in a library directory I get (I can see the -g option):

/opt/onnv-gate/usr/src/tools/proto/opt/onbld/bin/i386/cw -_gcc -O  -K pic 
-xspace -Xa  -xildoff -errtags=yes -errwarn=%all 
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none    
-W0,-xglobalstatic -g -xc99=%none -W0,-noglobal 
-_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs -xF=%all 
-DTEXT_DOMAIN=\"SUNW_OST_NETRPC\" -D_TS_ERRNO  
-I/opt/onnv-gate/proto/root_i386/usr/include    -DKRB5_DNS_LOOKUP  
-DKRB5_DNS_LOOKUP_KDC -I..//libgss -I../include   
-I/opt/onnv-gate/usr/src/uts/common/gssapi  
-I/opt/onnv-gate/usr/src/uts/common/gssapi/include  
-I/opt/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/mech  
-I/opt/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5  
-I../include/krb5  -I../krb5/keytab  -I../krb5/krb  -I../krb5/os  
-I../krb5/ccache  -I../krb5/rcache  -I/opt/onnv-gate/usr/src/lib/krb5  
-I/opt/onnv-gate/usr/src/lib/krb5/kadm5  
-I/opt/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/include  
-I/opt/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des  
-I../krb5/ccache/file -DHAVE_LIBSOCKET -DHAVE_LIBNSL -DTIME_WITH_SYS_TIME  
-DHAVE_UNISTD_H -DHAVE_SYS_TIME_H -DHAVE_REGEX_H  -DHAVE_REGEXP_H 
-DHAVE_RE_COMP -DHAVE_REGCOMP  -DPOSIX_TYPES -DNDBM -DAN_TO_LN_RULES  
-DHAVE_STDLIB_H -DHAVE_STDARG_H -DHAVE_SYS_TYPES_H  -DHAVE_NETINET_IN_H 
-DUSE_LOGIN_LIBRARY -DHAVE_SRAND48  -DHAVE_SRAND -DHAVE_SRANDOM -DHAVE_GETPID  
-DHAVE_ERRNO -DHAVE_STRFTIME -DHAVE_STRPTIME -DHAVE_STRERROR  -DHAVE_STAT 
-DSIZEOF_INT=4 -DPROVIDE_KERNEL_IMPORT  -DHAVE_STDINT_H -DPOSIX_SIGNALS 
-DHAVE_GETENV -DHAVE_SETENV  -DHAVE_UNSETENV -DHAVE_FCHMOD 
-DHAVE_STRUCT_LIFCONF -DPIC -D_REENTRANT -c  -o pics/get_tkt_flags.o 
/opt/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/mech/get_tkt_flags.c
.
.
/opt/onnv-gate/usr/src/tools/proto/opt/onbld/bin/i386/cw -_gcc -o 
mech_krb5.so.1 -G -hmech_krb5.so.1 -ztext -zdefs -zcombreloc  -M../mapfile-vers 
-M../mapfile-vers-clean 
-M/opt/onnv-gate/usr/src/common/mapfiles/i386/map.pagealign 
-M/opt/onnv-gate/usr/src/common/mapfiles/i386/map.noexdata -zignore 
-zinitarray=krb5_ld_init pics/accept_sec_context.o ......

but when I do:

file mech_krb5.so.1

I get:
 
mech_krb5.so.1: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, 
not stripped, no debugging information available

no debug information.

What do I need to do to get debug libraries ? I tried SunStudio 11 and gcc.

Thank you
Markus
 
 
This message posted from opensolaris.org

Reply via email to