Issues with compiling gnupg 2.0.10 on Solaris with Sun Studio 11
Dagobert Michelsen
dam at opencsw.org
Wed Jan 21 21:43:41 CET 2009
Hi,
I am trying to compile the current version of gnupg 2.0.10 on Solaris
with
the Sun Studio 11 compiler and I am having some issues here:
- Altough a current libgpg-error is found the library is not used for
binding:
...
configure:5746: checking for cc for build
configure:5753: result: /opt/studio/SOS11/SUNWspro/bin/cc
configure:5914: checking for libraries
configure:5938: checking for gpg-error-config
configure:5956: found /opt/csw/bin/gpg-error-config
configure:5969: result: /opt/csw/bin/gpg-error-config
configure:5978: checking for GPG Error - version >= 1.4
configure:6004: result: yes (1.7)
configure:6038: checking for libgcrypt-config
...
GPG_ERROR_CFLAGS='-I/opt/csw/include'
GPG_ERROR_CONFIG='/opt/csw/bin/gpg-error-config'
GPG_ERROR_LIBS='-L/opt/csw/lib -lgpg-error'
GREP='/opt/csw/bin/ggrep'
...
source='t-stringhelp.c' object='t-stringhelp.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../scripts/depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I.. -
I../intl -I/opt/csw/include -DJNLIB_IN_JNLIB -I/opt/csw/include -xO3 -
xarch=v8 -I/opt/csw/include -c t-stringhelp.c
source='t-support.c' object='t-support.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../scripts/depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I.. -
I../intl -I/opt/csw/include -DJNLIB_IN_JNLIB -I/opt/csw/include -xO3 -
xarch=v8 -I/opt/csw/include -c t-support.c
/opt/studio/SOS11/SUNWspro/bin/cc -DJNLIB_IN_JNLIB -I/opt/csw/include -
xO3 -xarch=v8 -I/opt/csw/include -xarch=v8 -L/opt/csw/lib -R/opt/csw/
lib/\\\$ISALIST -R/opt/csw/lib -o t-stringhelp t-stringhelp.o t-
support.o libjnlib.a /opt/csw/lib/libintl.so /opt/csw/lib/libiconv.so -
lc -R/opt/csw/lib /opt/csw/lib/libiconv.so -R/opt/csw/lib
ld: warning: file /opt/csw/lib/libiconv.so: attempted multiple
inclusion of file
Undefined first referenced
symbol in file
gpg_err_code_from_errno libjnlib.a(stringhelp.o)
gpg_err_code_from_syserror libjnlib.a(stringhelp.o)
ld: fatal: Symbol referencing errors. No output written to t-stringhelp
gmake[4]: *** [t-stringhelp] Error 1
gmake[4]: Leaving directory `/home/dam/mgar/pkg/gnupg/trunk/work/build-
isa-sparcv8/gnupg-2.0.10/jnlib'
gmake[3]: *** [all-recursive] Error 1
Explicitly adding -lgpg-error temporarily fixes this problem and leads
to another one:
DEPDIR=.deps depmode=none /bin/bash ../scripts/depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I.. -
I../gl -I../common -I../include -I../intl -DLOCALEDIR=\"/opt/csw/share/
locale\" -DGNUPG_BINDIR="\"/opt/csw/bin\"" -DGNUPG_LIBEXECDIR="\"/opt/
csw/libexec\"" -DGNUPG_LIBDIR="\"/opt/csw/lib/gnupg\"" -
DGNUPG_DATADIR="\"/opt/csw/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/opt/
csw/etc/gnupg\"" -I/opt/csw/include -I/opt/csw/include -I/opt/csw/
include -I/opt/csw/include -xO3 -xarch=v8 -I/opt/csw/include -c exec.c
/opt/studio/SOS11/SUNWspro/bin/cc -I/opt/csw/include -I/opt/csw/
include -I/opt/csw/include -xO3 -xarch=v8 -I/opt/csw/include -
xarch=v8 -L/opt/csw/lib -R/opt/csw/lib/\\\$ISALIST -R/opt/csw/lib -
lgpg-error -o gpg2 gpg.o server.o build-packet.o compress.o compress-
bz2.o free-packet.o getkey.o keydb.o keyring.o seskey.o kbnode.o
mainproc.o armor.o mdfilter.o textfilter.o progress.o misc.o rmd160.o
openfile.o keyid.o parse-packet.o cpr.o plaintext.o sig-check.o
keylist.o pkglue.o pkclist.o skclist.o pubkey-enc.o passphrase.o
seckey-cert.o encr-data.o cipher.o encode.o sign.o verify.o revoke.o
decrypt.o keyedit.o dearmor.o import.o export.o trustdb.o tdbdump.o
tdbio.o delkey.o keygen.o helptext.o keyserver.o photoid.o call-
agent.o card-util.o exec.o ../common/libcommon.a ../jnlib/
libjnlib.a ../gl/libgnu.a ../common/libgpgrl.a -lz -lbz2 -lresolv -
lreadline -ltermcap /opt/csw/lib/libintl.so /opt/csw/lib/libiconv.so -
lc -R/opt/csw/lib -lsocket -lnsl -L/opt/csw/lib -lgcrypt -lgpg-error
-L/opt/csw/lib -lassuan -L/opt/csw/lib -lgpg-error /opt/csw/lib/
libiconv.so -R/opt/csw/lib
ld: warning: file /opt/csw/lib/libiconv.so: attempted multiple
inclusion of file
Undefined first referenced
symbol in file
nanosleep /opt/csw/lib/libassuan.a(assuan-
io.o)
ld: fatal: Symbol referencing errors. No output written to gpg2
This function is located in -lrt on Solaris. Then there were more
errors like the first one
where necessary libraries weren't linked against like
DEPDIR=.deps depmode=none /bin/bash ../scripts/depcomp \
/opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I.. -
I/opt/csw/include -I../gl -I../common -I../intl -DLOCALEDIR=\"/opt/csw/
share/locale\" -DGNUPG_BINDIR="\"/opt/csw/bin\"" -
DGNUPG_LIBEXECDIR="\"/opt/csw/libexec\"" -DGNUPG_LIBDIR="\"/opt/csw/
lib/gnupg\"" -DGNUPG_DATADIR="\"/opt/csw/share/gnupg\"" -
DGNUPG_SYSCONFDIR="\"/opt/csw/etc/gnupg\"" -I/opt/csw/include -I/
opt/csw/include -I/opt/csw/include -xO3 -xarch=v8 -I/opt/csw/include -
c -o gpg2keys_hkp-no-libgcrypt.o `test -f 'no-libgcrypt.c' || echo
'./'`no-libgcrypt.c
/opt/studio/SOS11/SUNWspro/bin/cc -I/opt/csw/include -I/opt/csw/
include -xO3 -xarch=v8 -I/opt/csw/include -xarch=v8 -L/opt/csw/lib -R/
opt/csw/lib/\\\$ISALIST -R/opt/csw/lib -lgpg-error -lrt -o
gpg2keys_hkp gpg2keys_hkp-gpgkeys_hkp.o gpg2keys_hkp-ksutil.o
gpg2keys_hkp-no-libgcrypt.o -L/opt/csw/lib -lcurl -L/opt/csw/lib -L/
opt/csw/lib -lidn -lssl -lcrypto -llber -lldap -lsocket -lnsl -lssl -
lcrypto -lsocket -lnsl -ldl -lz
Undefined first referenced
symbol in file
bug_at gpg2keys_hkp-no-libgcrypt.o
ld: fatal: Symbol referencing errors. No output written to gpg2keys_hkp
gmake[4]: *** [gpg2keys_hkp] Error 1
Is here something wrong with my compile environment or is there
something
missing with the autoconf-stuff?
Best regards
-- Dago
More information about the Gnupg-devel
mailing list