[Top][All Lists]

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

fix link error on Mac OS X 10.5

From: Bruno Haible
Subject: fix link error on Mac OS X 10.5
Date: Sun, 07 Mar 2021 22:19:34 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; )

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.

Attachment: 0005-Fix-build-error-on-Mac-OS-X-10.5.patch
Description: Text Data

reply via email to

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