poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fix link error on Mac OS X 10.5


From: Jose E. Marchesi
Subject: Re: fix link error on Mac OS X 10.5
Date: Sun, 07 Mar 2021 23:19:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Bruno.

> On Mac OS X 10.5 I get this link error:
>
> Undefined symbols:
>   "_strndup", referenced from:
>       _pk_completion_function in libpoke_la-libpoke.o
>       _pkl_struct_type_traverse in libpoke_la-pkl-ast.o
>       _pkl_trans1_ps_print_stmt in libpoke_la-pkl-trans.o
>       _pkl_trans1_ps_print_stmt in libpoke_la-pkl-trans.o
>   "_rpl_fopen", referenced from:
>       _pkl_execute_file in libpoke_la-pkl.o
>       _load_module in libpoke_la-pkl-tab.o
>       _pkl_detailed_location in libpoke_la-pkl-diag.o
>       _ios_dev_file_open in libpoke_la-ios-dev-file.o
>       _ios_dev_file_open in libpoke_la-ios-dev-file.o
>       _ios_dev_file_open in libpoke_la-ios-dev-file.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [libpoke.la] Error 1
>
> Again, the cause is that the source files (fopen.c and strndup.c, this time)
> are present in gl/ but not in gl-libpoke/.
>
> Here's a proposed fix.

OK for both master and maint/poke-1.
Thanks!

>
>>From 51bb93a692e4a494c40784f6dd7bcb4801d788b2 Mon Sep 17 00:00:00 2001
> From: Bruno Haible <bruno@clisp.org>
> Date: Sun, 7 Mar 2021 21:39:52 +0100
> Subject: [PATCH] Fix build error on Mac OS X 10.5.
>
> * bootstrap.conf (libpoke_modules): Add fopen-gnu, strndup.
> ---
>  bootstrap.conf | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/bootstrap.conf b/bootstrap.conf
> index 6050874..3d217f4 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -65,9 +65,10 @@ gnulib_modules="
>  libpoke_modules="
>    basename-lgpl
>    byteswap
> -  ftello
> +  fopen-gnu
>    free-posix
>    fstat
> +  ftello
>    gcd
>    gettext-h
>    gettime
> @@ -84,6 +85,7 @@ libpoke_modules="
>    strchrnul
>    streq
>    string-buffer
> +  strndup
>    strtoull
>    signal-h
>    tempname



reply via email to

[Prev in Thread] Current Thread [Next in Thread]