[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix link error on Solaris OpenIndiana
From: |
Bruno Haible |
Subject: |
fix link error on Solaris OpenIndiana |
Date: |
Sun, 07 Mar 2021 21:14:39 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; ) |
On Solaris 11 OpenIndiana, the final link fails:
libtool: link: gcc -O2 -D_XOPEN_SOURCE=700 -Wall -g -O2 -o .libs/poke
poke-poke.o poke-pk-term.o poke-pk-table.o poke-pk-repl.o poke-pk-cmd.o
poke-pk-cmd-ios.o poke-pk-cmd-info.o poke-pk-cmd-misc.o poke-pk-cmd-help.o
poke-pk-cmd-def.o poke-pk-cmd-vm.o poke-pk-cmd-set.o poke-pk-cmd-editor.o
poke-pk-cmd-map.o poke-pk-ios.o poke-pk-map.o poke-pk-map-tab.o
poke-pk-map-lex.o ../common/poke-pk-utils.o poke-pk-hserver.o
-L/export/home/bruno/prefix32/lib ../gl/.libs/libgnu.a -lsocket
../libpoke/.libs/libpoke.so -L/export/home/bruno/poke-1.0d/build-32/jitter/lib
-lc -lncurses -ltermcap -lm -lgc -lreadline -lpthread
-R/export/home/bruno/prefix32/lib
Undefined first referenced
symbol in file
rpl_ftello ../libpoke/.libs/libpoke.so
ld: fatal: symbol referencing errors. No output written to .libs/poke
collect2: error: ld returned 1 exit status
*** Error code 1
The reason is that
- ftello occurs among the gnulib modules for the program (indirectly),
- ftello is not among the gnulib modules for libpoke,
- but they share the same config.status and substituted variables,
so the redirection ftello -> rpl_ftello is activated also inside libpoke,
- libpoke/pkl_diag.c uses ftello.
Like before, here is workaround/fix.
0004-Fix-build-error-on-Solaris-11-OpenIndiana.patch
Description: Text Data
- fix link error on Solaris OpenIndiana,
Bruno Haible <=