[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix link error on Solaris OpenIndiana
From: |
Jose E. Marchesi |
Subject: |
Re: fix link error on Solaris OpenIndiana |
Date: |
Mon, 08 Mar 2021 12:43:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Bruno.
> 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.
OK for both master and maint/poke-1.
Thanks!
>
>>From c55c95c242a93f8ba9c55e9183f41d9d697de3bd Mon Sep 17 00:00:00 2001
> From: Bruno Haible <bruno@clisp.org>
> Date: Sun, 7 Mar 2021 20:03:54 +0100
> Subject: [PATCH] Fix build error on Solaris 11 OpenIndiana.
>
> * bootstrap.conf (libpoke_modules): Add ftello.
> ---
> bootstrap.conf | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/bootstrap.conf b/bootstrap.conf
> index 1325885..6050874 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -65,11 +65,12 @@ gnulib_modules="
> libpoke_modules="
> basename-lgpl
> byteswap
> - gettime
> + ftello
> free-posix
> fstat
> gcd
> gettext-h
> + gettime
> intprops
> isatty
> mkstemp