bug-gettext
[Top][All Lists]
Advanced

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

Build failure in get text-0.22.3 on MacOS Sonoma


From: John Dykstra
Subject: Build failure in get text-0.22.3 on MacOS Sonoma
Date: Mon, 23 Oct 2023 20:33:36 -0500

Resend, since it hasn’t shown up in the archive after several hours...

libtool: link: ( cd ".libs" && rm -f "libxml_rpl.la" && ln -s 
"../libxml_rpl.la" "libxml_rpl.la" )
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2  -no-undefined           
    -lncurses -no-undefined -export-symbols libtextstyle.sym -version-info 
1:2:1 -rpath /usr/local/lib  -o libtextstyle.la -rpath /usr/local/lib 
gl_array_list.lo basename-lgpl.lo binary-io.lo c-ctype.lo c-strcasecmp.lo 
c-strncasecmp.lo cloexec.lo concat-filename.lo exitfail.lo fatal-signal.lo 
fd-hook.lo fd-ostream.lo file-ostream.lo full-write.lo get_ppid_of.lo 
get_progname_of.lo getprogname.lo html-ostream.lo html-styled-ostream.lo 
ialloc.lo iconv-ostream.lo gl_list.lo glthread/lock.lo malloca.lo math.lo 
mem-hash-map.lo memory-ostream.lo noop-styled-ostream.lo ostream.lo 
printf-frexp.lo printf-frexpl.lo safe-read.lo safe-write.lo sig-handler.lo 
sockets.lo stat-time.lo styled-ostream.lo sys_socket.lo term-ostream.lo 
term-style-control.lo term-styled-ostream.lo glthread/threadlib.lo unistd.lo 
unistr/u8-mbtouc.lo unistr/u8-mbtouc-aux.lo xmalloc.lo xalloc-die.lo 
xconcat-filename.lo xgethostname.lo gl_xlist.lo xsize.lo xvasprintf.lo 
xasprintf.lo color.lo misc.lo version.lo asnprintf.lo asprintf.lo error.lo 
free.lo obstack.lo open.lo printf-args.lo printf-parse.lo reallocarray.lo 
snprintf.lo stat.lo strerror.lo strerror-override.lo vasnprintf.lo vasprintf.lo 
libcroco_rpl.la libglib_rpl.la libxml_rpl.la
libtool: link: /usr/bin/sed 's|^|_|' < libtextstyle.sym > 
.libs/libtextstyle-symbols.expsym
libtool: link: gcc -dynamiclib  -o .libs/libtextstyle.0.dylib  
.libs/gl_array_list.o .libs/basename-lgpl.o .libs/binary-io.o .libs/c-ctype.o 
.libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/cloexec.o 
.libs/concat-filename.o .libs/exitfail.o .libs/fatal-signal.o .libs/fd-hook.o 
.libs/fd-ostream.o .libs/file-ostream.o .libs/full-write.o .libs/get_ppid_of.o 
.libs/get_progname_of.o .libs/getprogname.o .libs/html-ostream.o 
.libs/html-styled-ostream.o .libs/ialloc.o .libs/iconv-ostream.o 
.libs/gl_list.o glthread/.libs/lock.o .libs/malloca.o .libs/math.o 
.libs/mem-hash-map.o .libs/memory-ostream.o .libs/noop-styled-ostream.o 
.libs/ostream.o .libs/printf-frexp.o .libs/printf-frexpl.o .libs/safe-read.o 
.libs/safe-write.o .libs/sig-handler.o .libs/sockets.o .libs/stat-time.o 
.libs/styled-ostream.o .libs/sys_socket.o .libs/term-ostream.o 
.libs/term-style-control.o .libs/term-styled-ostream.o 
glthread/.libs/threadlib.o .libs/unistd.o unistr/.libs/u8-mbtouc.o 
unistr/.libs/u8-mbtouc-aux.o .libs/xmalloc.o .libs/xalloc-die.o 
.libs/xconcat-filename.o .libs/xgethostname.o .libs/gl_xlist.o .libs/xsize.o 
.libs/xvasprintf.o .libs/xasprintf.o .libs/color.o .libs/misc.o .libs/version.o 
.libs/asnprintf.o .libs/asprintf.o .libs/error.o .libs/free.o .libs/obstack.o 
.libs/open.o .libs/printf-args.o .libs/printf-parse.o .libs/reallocarray.o 
.libs/snprintf.o .libs/stat.o .libs/strerror.o .libs/strerror-override.o 
.libs/vasnprintf.o .libs/vasprintf.o   -Wl,-force_load,./.libs/libcroco_rpl.a 
-Wl,-force_load,./.libs/libglib_rpl.a -Wl,-force_load,./.libs/libxml_rpl.a  
-lncurses  -g -O2   -install_name  /usr/local/lib/libtextstyle.0.dylib 
-compatibility_version 2 -current_version 2.2 
-Wl,-exported_symbols_list,.libs/libtextstyle-symbols.expsym
ld: Undefined symbols:
 _iconv_ostream_create, referenced from:
     <initial-undefines>
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [libtextstyle.la] Error 1

ld throws the error because _iconv_ostream_create is specified in 
./.libs/libtextstyle-symbols.expsym (derived from 
libtextstyle/lib/libtextstyle.sym.in), but is not built from 
/libtextstyle/lib/iconv-ostream.c because HAVE_ICONV is false.  It is false 
because this test case in libtextstyle/configure fails:

  /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
|      successful returns.  This is even documented in
|      
<https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html>
 */
|   {
|     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
|     if (cd_utf8_to_88591 != (iconv_t)(-1))
|       {
|         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
|         char buf[10];
|         ICONV_CONST char *inptr = input;
|         size_t inbytesleft = strlen (input);
|         char *outptr = buf;
|         size_t outbytesleft = sizeof (buf);
|         size_t res = iconv (cd_utf8_to_88591,
|                             &inptr, &inbytesleft,
|                             &outptr, &outbytesleft);
|         if (res == 0)
|           result |= 1;
|         iconv_close (cd_utf8_to_88591);
|       }
|   }

The build completes successfully if configure is hacked to delete that test 
case.

MacOS  14.0 Sonoma, Xcode 15.0.1, X86_64


reply via email to

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