Bekijk Volledige Versie : Issue compiling gnupg on AIX 5.3
jeff.shumard@defenseweb.com
21/02/07, 15:32
I am trying to compile gnupg on AIX 5.3 and I am not able to figure
out what's going wrong. I was able to compile all the require
software with a couple of tweaks, like the tests would not compile for
libgcrypt but everything else compiled fine. Now I am trying to
compile gnupg and I am getting this error message about undefined
symbol's.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DLOCALEDIR=\"/usr/local/
share/locale\" -I../gl -I../common -I../intl -I/usr/local/include -I/
usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -
Wall -Wno-pointer-sign -MT kbxutil.o -MD -MP -MF ".deps/kbxutil.Tpo" -
c -o kbxutil.o kbxutil.c; then mv -f ".deps/kbxutil.Tpo" ".deps/
kbxutil.Po"; else rm -f ".deps/kbxutil.Tpo"; exit 1; fi
gcc -g -O2 -Wall -Wno-pointer-sign -o kbxutil kbxutil.o
keybox-util.o keybox-init.o keybox-blob.o keybox-file.o keybox-
search.o keybox-update.o keybox-openpgp.o keybox-dump.o ../jnlib/
libjnlib.a ../gl/libgnu.a ../common/libcommon.a -L/usr/local/lib -
lksba -lgpg-error -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-
error -L/usr/local/lib -lgpg-error /usr/local/lib/libintl.a -liconv -
lc -liconv
ld: 0711-317 ERROR: Undefined symbol: .gcry_md_open
ld: 0711-317 ERROR: Undefined symbol: .gcry_md_write
ld: 0711-317 ERROR: Undefined symbol: .gcry_md_read
ld: 0711-317 ERROR: Undefined symbol: .gcry_md_close
ld: 0711-317 ERROR: Undefined symbol: .gcry_md_hash_buffer
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
Thank you
jeff.shumard@defenseweb.com
23/02/07, 19:50
On Feb 20, 9:26 am, jeff.shum...@defenseweb.com wrote:
> I am trying to compile gnupg on AIX 5.3 and I am not able to figure
> out what's going wrong. I was able to compile all the require
> software with a couple of tweaks, like the tests would not compile for
> libgcrypt but everything else compiled fine. Now I am trying to
> compile gnupg and I am getting this error message about undefined
> symbol's.
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DLOCALEDIR=\"/usr/local/
> share/locale\" -I../gl -I../common -I../intl -I/usr/local/include -I/
> usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -
> Wall -Wno-pointer-sign -MT kbxutil.o -MD -MP -MF ".deps/kbxutil.Tpo" -
> c -o kbxutil.o kbxutil.c; then mv -f ".deps/kbxutil.Tpo" ".deps/
> kbxutil.Po"; else rm -f ".deps/kbxutil.Tpo"; exit 1; fi
> gcc -g -O2 -Wall -Wno-pointer-sign -o kbxutil kbxutil.o
> keybox-util.o keybox-init.o keybox-blob.o keybox-file.o keybox-
> search.o keybox-update.o keybox-openpgp.o keybox-dump.o ../jnlib/
> libjnlib.a ../gl/libgnu.a ../common/libcommon.a -L/usr/local/lib -
> lksba -lgpg-error -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-
> error -L/usr/local/lib -lgpg-error /usr/local/lib/libintl.a -liconv -
> lc -liconv
> ld: 0711-317 ERROR: Undefined symbol: .gcry_md_open
> ld: 0711-317 ERROR: Undefined symbol: .gcry_md_write
> ld: 0711-317 ERROR: Undefined symbol: .gcry_md_read
> ld: 0711-317 ERROR: Undefined symbol: .gcry_md_close
> ld: 0711-317 ERROR: Undefined symbol: .gcry_md_hash_buffer
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
>
> Thank you
I was able to get gnupg installed by compiling the software with
static libraries by passing the --disable-shared to compile. I am
having a new issue now trying to get pinentry installed on the same
system. with out pinentry I am not able to generate a key. Here are
the new errors that I am getting.
Making all in pinentry
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../assuan -I../secmem -
Wall -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT
pinentry.o -MD -MP -MF ".deps/pinentry.Tpo" -c -o pinentry.o
pinentry.c; then mv -f ".deps/pinentry.Tpo" ".deps/pinentry.Po"; else
rm -f ".deps/pinentry.Tpo"; exit 1; fi
In file included from pinentry.c:28:
.../getopt.h:155: warning: function declaration isn't a prototype
pinentry.c: In function 'cmd_setdesc':
pinentry.c:488: warning: pointer targets in passing argument 2 of
'strcpy_escaped' differ in signedness
pinentry.c: In function 'cmd_setprompt':
pinentry.c:505: warning: pointer targets in passing argument 2 of
'strcpy_escaped' differ in signedness
pinentry.c: In function 'cmd_seterror':
pinentry.c:522: warning: pointer targets in passing argument 2 of
'strcpy_escaped' differ in signedness
pinentry.c: In function 'cmd_setok':
pinentry.c:539: warning: pointer targets in passing argument 2 of
'strcpy_escaped' differ in signedness
pinentry.c: In function 'cmd_setcancel':
pinentry.c:556: warning: pointer targets in passing argument 2 of
'strcpy_escaped' differ in signedness
rm -f libpinentry.a
ar cru libpinentry.a pinentry.o
ranlib libpinentry.a
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../assuan -I../secmem -
Wall -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT
pinentry-curses.o -MD -MP -MF ".deps/pinentry-curses.Tpo" -c -o
pinentry-curses.o pinentry-curses.c; then mv -f ".deps/pinentry-
curses.Tpo" ".deps/pinentry-curses.Po"; else rm -f ".deps/pinentry-
curses.Tpo"; exit 1; fi
pinentry-curses.c: In function 'dialog_run':
pinentry-curses.c:564: warning: passing argument 1 of 'newterm32'
discards qualifiers from pointer target type
pinentry-curses.c:575: warning: implicit declaration of function
'clear'
rm -f libpinentry-curses.a
ar cru libpinentry-curses.a pinentry-curses.o
ranlib libpinentry-curses.a
Target "all" is up to date.
Making all in curses
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../pinentry -Wall -g
-O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry-
curses.o -MD -MP -MF ".deps/pinentry-curses.Tpo" -c -o pinentry-
curses.o pinentry-curses.c; then mv -f ".deps/pinentry-curses.Tpo"
".deps/pinentry-curses.Po"; else rm -f ".deps/pinentry-curses.Tpo";
exit 1; fi
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -
o pinentry-curses pinentry-curses.o ../pinentry/libpinentry.a ../
pinentry/libpinentry-curses.a ../assuan/libassuan.a ../secmem/
libsecmem.a -lcurses -liconv
ld: 0711-317 ERROR: Undefined symbol: .getopt_long
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
If anyone can help on this issue it would be appreciated.
Thank you