Page MenuHome GnuPG

Can't build on Solaris due to linking errors: ld: fatal: relocations remain against allocatable but non-writable sections
Closed, ResolvedPublic

Description

mv -f .deps/dumpsexp.Tpo .deps/dumpsexp.Po
mv -f .deps/hmac256-hmac256.Tpo .deps/hmac256-hmac256.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -pipe -Wformat-security
-Wfatal-errors -I/opt/include -I/opt/pkg/expat/include -I/opt/pkg/gdbm/include
-I/opt/pkg/ncurses/include -I/opt/pkg/openssl-0.9.8g/include
-I/opt/pkg/readline/include -Wall -L/tmp/4tmuelle/opt/gnome/lib
-L/opt/pkg/expat/lib -R/opt/pkg/expat/lib -L/opt/pkg/gdbm/lib
-R/opt/pkg/gdbm/lib -L/opt/pkg/ncurses/lib -R/opt/pkg/ncurses/lib
-L/opt/pkg/openssl-0.9.8g/lib -R/opt/pkg/openssl-0.9.8g/lib
-L/opt/pkg/readline/lib -R/opt/pkg/readline/lib -lsec -o dumpsexp dumpsexp.o
-lsocket -lsocket
/bin/bash ../libtool --tag=CC --mode=link gcc -DSTANDALONE -pipe
-Wformat-security -Wfatal-errors -I/opt/include -I/opt/pkg/expat/include
-I/opt/pkg/gdbm/include -I/opt/pkg/ncurses/include
-I/opt/pkg/openssl-0.9.8g/include -I/opt/pkg/readline/include -Wall
-L/tmp/4tmuelle/opt/gnome/lib -L/opt/pkg/expat/lib -R/opt/pkg/expat/lib
-L/opt/pkg/gdbm/lib -R/opt/pkg/gdbm/lib -L/opt/pkg/ncurses/lib
-R/opt/pkg/ncurses/lib -L/opt/pkg/openssl-0.9.8g/lib
-R/opt/pkg/openssl-0.9.8g/lib -L/opt/pkg/readline/lib -R/opt/pkg/readline/lib
-lsec -o hmac256 hmac256-hmac256.o -lsocket -lsocket
gcc -pipe -Wformat-security -Wfatal-errors -I/opt/include
-I/opt/pkg/expat/include -I/opt/pkg/gdbm/include -I/opt/pkg/ncurses/include
-I/opt/pkg/openssl-0.9.8g/include -I/opt/pkg/readline/include -Wall -o dumpsexp
dumpsexp.o -L/tmp/4tmuelle/opt/gnome/lib -L/opt/pkg/expat/lib
-L/opt/pkg/gdbm/lib -L/opt/pkg/ncurses/lib -L/opt/pkg/openssl-0.9.8g/lib
-L/opt/pkg/readline/lib -lsec -lsocket -R/opt/pkg/expat/lib -R/opt/pkg/gdbm/lib
-R/opt/pkg/ncurses/lib -R/opt/pkg/openssl-0.9.8g/lib -R/opt/pkg/readline/lib
gcc -DSTANDALONE -pipe -Wformat-security -Wfatal-errors -I/opt/include
-I/opt/pkg/expat/include -I/opt/pkg/gdbm/include -I/opt/pkg/ncurses/include
-I/opt/pkg/openssl-0.9.8g/include -I/opt/pkg/readline/include -Wall -o hmac256
hmac256-hmac256.o -L/tmp/4tmuelle/opt/gnome/lib -L/opt/pkg/expat/lib
-L/opt/pkg/gdbm/lib -L/opt/pkg/ncurses/lib -L/opt/pkg/openssl-0.9.8g/lib
-L/opt/pkg/readline/lib -lsec -lsocket -R/opt/pkg/expat/lib -R/opt/pkg/gdbm/lib
-R/opt/pkg/ncurses/lib -R/opt/pkg/openssl-0.9.8g/lib -R/opt/pkg/readline/lib
gcc -shared -Wl,-h -Wl,libgcrypt.so.11 -o .libs/libgcrypt.so.11.5.3
.libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o
.libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o
.libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o
.libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o
.libs/libgcrypt_la-module.o .libs/libgcrypt_la-fips.o
.libs/libgcrypt_la-hmac256.o .libs/libgcrypt_la-ath.o -z allextract
../cipher/.libs/libcipher.a ../random/.libs/librandom.a ../mpi/.libs/libmpi.a -z
defaultextract -R/opt/pkg/expat/lib -R/opt/pkg/gdbm/lib -R/opt/pkg/ncurses/lib
-R/opt/pkg/openssl-0.9.8g/lib -R/opt/pkg/readline/lib
-L/tmp/4tmuelle/opt/gnome/lib -L/opt/pkg/expat/lib -L/opt/pkg/gdbm/lib
-L/opt/pkg/ncurses/lib -L/opt/pkg/openssl-0.9.8g/lib -L/opt/pkg/readline/lib
-lsec -L/tmp/4tmuelle/opt/gnome//lib -lgpg-error -lsocket -lc
Text relocation remains referenced

against symbol                  offset      in file

.text (section) 0x112c .libs/libgcrypt_la-global.o
.text (section) 0x1130 .libs/libgcrypt_la-global.o
.text (section) 0x1134 .libs/libgcrypt_la-global.o
.text (section) 0x1138 .libs/libgcrypt_la-global.o
.text (section) 0x113c .libs/libgcrypt_la-global.o
.text (section) 0x1140 .libs/libgcrypt_la-global.o
.text (section) 0x1144 .libs/libgcrypt_la-global.o
.text (section) 0x1148 .libs/libgcrypt_la-global.o
.text (section) 0x114c .libs/libgcrypt_la-global.o
.text (section) 0x1150 .libs/libgcrypt_la-global.o
.text (section) 0x1154 .libs/libgcrypt_la-global.o
.text (section) 0x1158 .libs/libgcrypt_la-global.o
.text (section) 0x115c .libs/libgcrypt_la-global.o
.text (section) 0x1160 .libs/libgcrypt_la-global.o
.text (section) 0x1164 .libs/libgcrypt_la-global.o
.text (section) 0x1168 .libs/libgcrypt_la-global.o
.text (section) 0x116c .libs/libgcrypt_la-global.o
.text (section) 0x1170 .libs/libgcrypt_la-global.o
.text (section) 0x1174 .libs/libgcrypt_la-global.o
.text (section) 0x1178 .libs/libgcrypt_la-global.o
.text (section) 0x117c .libs/libgcrypt_la-global.o
.text (section) 0x1180 .libs/libgcrypt_la-global.o
.text (section) 0x1184 .libs/libgcrypt_la-global.o
.text (section) 0x1188 .libs/libgcrypt_la-global.o
.text (section) 0x118c .libs/libgcrypt_la-global.o
.text (section) 0x1190 .libs/libgcrypt_la-global.o
...
time 0x2340
../random/.libs/librandom.a(random-csprng.o)
gettimeofday 0x4b8
../random/.libs/librandom.a(random-fips.o)
getppid 0x490
../random/.libs/librandom.a(random-fips.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[2]: * [libgcrypt.la] Error 1
gmake[2]: Leaving directory `/tmp/4tmuelle/svn/gnome/libgcrypt-1.4.5/src'
gmake[1]:
* [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/4tmuelle/svn/gnome/libgcrypt-1.4.5'
gmake: *** [all] Error 2

  • Error during phase build of libgcrypt: ## Error running gmake ***

[5/75]

I tested it with 1.5.0, too and it fails with the very same error.

I expected it to build fine.

Details

Version
1.4.5

Event Timeline

Why do you include openssl and other stuff with -I ? Please show the config.log
file.

Why do you include openssl and other stuff with -I ?

I don't do that on purpose. I guess it's the build system, that does that.

Please find the config.log attached.

werner claimed this task.
werner changed Version from 1.5.0 to 1.4.5.

You are using version 1.4.5 and not 1.5.0.

Two hints: Your are using the Solaris as and ld - better try with a native GNU
toolchain. You have some global CLFAGS set which add a lot of extra and useless
include paths. Please remove them.

I close the bug because it is pretty old. Feel free to re-open it if you have
newer info and tried with 1.5.0.