[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined symbols when compiling under Solaris 8 w/Sun Studio

From: Dagobert Michelsen
Subject: Undefined symbols when compiling under Solaris 8 w/Sun Studio
Date: Thu, 26 Mar 2009 10:59:09 +0100

Hi Simon,

I am trying to compile gss 0.0.25 on Solaris 8 Sparc with Sun Studio 11
and get these errors:

gmake[4]: Entering directory `/home/dam/mgar/pkg/libgss/trunk/work/ build-isa-sparcv8/gss-0.0.25/src' /bin/bash ../libtool --tag=CC --mode=link /opt/studio/SOS11/ SUNWspro/bin/cc -fdiagnostics-show-option -xO3 -xarch=v8 -I/opt/csw/ include -xarch=v8 -L/opt/csw/lib -R/opt/csw/lib/\\\$ISALIST -R/opt/ csw/lib -o gss gss.o ../lib/ gl/ -L/opt/csw/lib - lintl -R/opt/csw/lib libtool: link: /opt/studio/SOS11/SUNWspro/bin/cc -fdiagnostics-show- option -xO3 -xarch=v8 -I/opt/csw/include -xarch=v8 -o .libs/gss gss.o -L/opt/csw/lib ../lib/.libs/ gl/.libs/libgnu.a - lintl ./.libs/libcmd-gss.a -R/opt/csw/lib -R/opt/csw/lib/\$ISALIST
cc: Warning: illegal option -fdiagnostics-show-option
Undefined                       first referenced
 symbol                             in file
rpl_getopt_long ./.libs/libcmd- gss.a(libcmd_gss_la-gss_cmd.o) rpl_optind ./.libs/libcmd- gss.a(libcmd_gss_la-gss_cmd.o) rpl_opterr ./.libs/libcmd- gss.a(libcmd_gss_la-gss_cmd.o) rpl_optarg ./.libs/libcmd- gss.a(libcmd_gss_la-gss_cmd.o) rpl_optopt ./.libs/libcmd- gss.a(libcmd_gss_la-gss_cmd.o)
ld: fatal: Symbol referencing errors. No output written to .libs/gss

I guess these should come from gnulib (taken from configure):

  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"


cat >>confdefs.h <<\_ACEOF
#define __GETOPT_PREFIX rpl_

However, src/gl/ doesn't contain getopt et al.
Do you have any idea on how to fix this?

Best regards

  -- Dago

reply via email to

[Prev in Thread] Current Thread [Next in Thread]