Martchus / PKGBUILDs

PKGBUILDs for creating various Arch Linux packages (including lots of mingw-w64 cross compiler packages)
https://martchus.dyn.f3l.de/repo/arch/ownstuff
GNU General Public License v2.0
118 stars 46 forks source link

mingw-w64-gettext currently failing #177

Closed higaski closed 5 months ago

higaski commented 7 months ago

I currently can't build the gettext package. Well, to be more specific, I can't seem to link it. It fails with

cannot export iconv_ostream_create: symbol not defined

Here's the entire wall of text which gets thrown at me

libtool: link: /usr/bin/i686-w64-mingw32-nm -B  .libs/libtextstyle_la-gl_array_list.o .libs/libtextstyle_la-basename-lgpl.o .libs/libtextstyle_la-binary-io.o .libs/libtextstyle_la-c-ctype.o .libs/libtextstyle_la-c-strcasecmp.o .libs/libtextstyle_la-c-strncasecmp.o .libs/libtextstyle_la-cloexec.o .libs/libtextstyle_la-close.o .libs/libtextstyle_la-concat-filename.o .libs/libtextstyle_la-dup2.o .libs/libtextstyle_la-error.o .libs/libtextstyle_la-exitfail.o .libs/libtextstyle_la-fatal-signal.o .libs/libtextstyle_la-fcntl.o .libs/libtextstyle_la-fd-hook.o .libs/libtextstyle_la-fd-ostream.o .libs/libtextstyle_la-file-ostream.o .libs/libtextstyle_la-free.o .libs/libtextstyle_la-fstat.o .libs/libtextstyle_la-fsync.o .libs/libtextstyle_la-full-write.o .libs/libtextstyle_la-get_ppid_of.o .libs/libtextstyle_la-get_progname_of.o .libs/libtextstyle_la-getdtablesize.o .libs/libtextstyle_la-gethostname.o .libs/libtextstyle_la-getprogname.o .libs/libtextstyle_la-gettimeofday.o .libs/libtextstyle_la-html-ostream.o .libs/libtextstyle_la-html-styled-ostream.o .libs/libtextstyle_la-ialloc.o .libs/libtextstyle_la-iconv-ostream.o .libs/libtextstyle_la-isatty.o .libs/libtextstyle_la-gl_list.o glthread/.libs/libtextstyle_la-lock.o .libs/libtextstyle_la-malloca.o .libs/libtextstyle_la-math.o .libs/libtextstyle_la-mem-hash-map.o .libs/libtextstyle_la-memory-ostream.o .libs/libtextstyle_la-msvc-inval.o .libs/libtextstyle_la-msvc-nothrow.o .libs/libtextstyle_la-noop-styled-ostream.o .libs/libtextstyle_la-obstack.o .libs/libtextstyle_la-open.o .libs/libtextstyle_la-ostream.o .libs/libtextstyle_la-printf-frexp.o .libs/libtextstyle_la-printf-frexpl.o .libs/libtextstyle_la-raise.o .libs/libtextstyle_la-read.o .libs/libtextstyle_la-reallocarray.o .libs/libtextstyle_la-safe-read.o .libs/libtextstyle_la-safe-write.o .libs/libtextstyle_la-sigaction.o .libs/libtextstyle_la-sig-handler.o .libs/libtextstyle_la-sigprocmask.o .libs/libtextstyle_la-sockets.o .libs/libtextstyle_la-stat.o .libs/libtextstyle_la-stat-time.o .libs/libtextstyle_la-stpcpy.o .libs/libtextstyle_la-strerror.o .libs/libtextstyle_la-strerror-override.o .libs/libtextstyle_la-styled-ostream.o .libs/libtextstyle_la-sys_socket.o .libs/libtextstyle_la-term-ostream.o .libs/libtextstyle_la-term-style-control.o .libs/libtextstyle_la-term-styled-ostream.o glthread/.libs/libtextstyle_la-threadlib.o .libs/libtextstyle_la-unistd.o unistr/.libs/libtextstyle_la-u8-mbtouc.o unistr/.libs/libtextstyle_la-u8-mbtouc-aux.o .libs/libtextstyle_la-windows-mutex.o .libs/libtextstyle_la-windows-once.o .libs/libtextstyle_la-windows-recmutex.o .libs/libtextstyle_la-windows-rwlock.o .libs/libtextstyle_la-write.o .libs/libtextstyle_la-xmalloc.o .libs/libtextstyle_la-xalloc-die.o .libs/libtextstyle_la-xconcat-filename.o .libs/libtextstyle_la-xgethostname.o .libs/libtextstyle_la-gl_xlist.o .libs/libtextstyle_la-xsize.o .libs/libtextstyle_la-xvasprintf.o .libs/libtextstyle_la-xasprintf.o .libs/libtextstyle_la-color.o .libs/libtextstyle_la-misc.o .libs/libtextstyle_la-version.o .libs/asnprintf.o .libs/asprintf.o .libs/calloc.o .libs/malloc.o .libs/printf-args.o .libs/printf-parse.o .libs/realloc.o .libs/snprintf.o .libs/stat-w32.o .libs/vasnprintf.o .libs/vasprintf.o .libs/vsnprintf.o .libs/libtextstyle.res.o   ./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a ./.libs/libxml_rpl.a | /usr/bin/sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][  ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq > .libs/libtextstyle.exp
libtool: link: if test DEF = "`/usr/bin/sed -n -e 's/^[  ]*//' -e '/^\(;.*\)*$/d' -e 's/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p' -e q .libs/libtextstyle.def`" ; then cp .libs/libtextstyle.def .libs/libtextstyle-0.dll.def; else echo EXPORTS > .libs/libtextstyle-0.dll.def; cat .libs/libtextstyle.def >> .libs/libtextstyle-0.dll.def; fi
libtool: link:  i686-w64-mingw32-gcc -shared .libs/libtextstyle-0.dll.def  .libs/libtextstyle_la-gl_array_list.o .libs/libtextstyle_la-basename-lgpl.o .libs/libtextstyle_la-binary-io.o .libs/libtextstyle_la-c-ctype.o .libs/libtextstyle_la-c-strcasecmp.o .libs/libtextstyle_la-c-strncasecmp.o .libs/libtextstyle_la-cloexec.o .libs/libtextstyle_la-close.o .libs/libtextstyle_la-concat-filename.o .libs/libtextstyle_la-dup2.o .libs/libtextstyle_la-error.o .libs/libtextstyle_la-exitfail.o .libs/libtextstyle_la-fatal-signal.o .libs/libtextstyle_la-fcntl.o .libs/libtextstyle_la-fd-hook.o .libs/libtextstyle_la-fd-ostream.o .libs/libtextstyle_la-file-ostream.o .libs/libtextstyle_la-free.o .libs/libtextstyle_la-fstat.o .libs/libtextstyle_la-fsync.o .libs/libtextstyle_la-full-write.o .libs/libtextstyle_la-get_ppid_of.o .libs/libtextstyle_la-get_progname_of.o .libs/libtextstyle_la-getdtablesize.o .libs/libtextstyle_la-gethostname.o .libs/libtextstyle_la-getprogname.o .libs/libtextstyle_la-gettimeofday.o .libs/libtextstyle_la-html-ostream.o .libs/libtextstyle_la-html-styled-ostream.o .libs/libtextstyle_la-ialloc.o .libs/libtextstyle_la-iconv-ostream.o .libs/libtextstyle_la-isatty.o .libs/libtextstyle_la-gl_list.o glthread/.libs/libtextstyle_la-lock.o .libs/libtextstyle_la-malloca.o .libs/libtextstyle_la-math.o .libs/libtextstyle_la-mem-hash-map.o .libs/libtextstyle_la-memory-ostream.o .libs/libtextstyle_la-msvc-inval.o .libs/libtextstyle_la-msvc-nothrow.o .libs/libtextstyle_la-noop-styled-ostream.o .libs/libtextstyle_la-obstack.o .libs/libtextstyle_la-open.o .libs/libtextstyle_la-ostream.o .libs/libtextstyle_la-printf-frexp.o .libs/libtextstyle_la-printf-frexpl.o .libs/libtextstyle_la-raise.o .libs/libtextstyle_la-read.o .libs/libtextstyle_la-reallocarray.o .libs/libtextstyle_la-safe-read.o .libs/libtextstyle_la-safe-write.o .libs/libtextstyle_la-sigaction.o .libs/libtextstyle_la-sig-handler.o .libs/libtextstyle_la-sigprocmask.o .libs/libtextstyle_la-sockets.o .libs/libtextstyle_la-stat.o .libs/libtextstyle_la-stat-time.o .libs/libtextstyle_la-stpcpy.o .libs/libtextstyle_la-strerror.o .libs/libtextstyle_la-strerror-override.o .libs/libtextstyle_la-styled-ostream.o .libs/libtextstyle_la-sys_socket.o .libs/libtextstyle_la-term-ostream.o .libs/libtextstyle_la-term-style-control.o .libs/libtextstyle_la-term-styled-ostream.o glthread/.libs/libtextstyle_la-threadlib.o .libs/libtextstyle_la-unistd.o unistr/.libs/libtextstyle_la-u8-mbtouc.o unistr/.libs/libtextstyle_la-u8-mbtouc-aux.o .libs/libtextstyle_la-windows-mutex.o .libs/libtextstyle_la-windows-once.o .libs/libtextstyle_la-windows-recmutex.o .libs/libtextstyle_la-windows-rwlock.o .libs/libtextstyle_la-write.o .libs/libtextstyle_la-xmalloc.o .libs/libtextstyle_la-xalloc-die.o .libs/libtextstyle_la-xconcat-filename.o .libs/libtextstyle_la-xgethostname.o .libs/libtextstyle_la-gl_xlist.o .libs/libtextstyle_la-xsize.o .libs/libtextstyle_la-xvasprintf.o .libs/libtextstyle_la-xasprintf.o .libs/libtextstyle_la-color.o .libs/libtextstyle_la-misc.o .libs/libtextstyle_la-version.o .libs/asnprintf.o .libs/asprintf.o .libs/calloc.o .libs/malloc.o .libs/printf-args.o .libs/printf-parse.o .libs/realloc.o .libs/snprintf.o .libs/stat-w32.o .libs/vasnprintf.o .libs/vasprintf.o .libs/vsnprintf.o .libs/libtextstyle.res.o  -Wl,--whole-archive ./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a ./.libs/libxml_rpl.a -Wl,--no-whole-archive  -lws2_32 -L/usr/i686-w64-mingw32/lib -ltermcap -lssp  -O2 -Wl,--enable-auto-import   -o .libs/libtextstyle-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libtextstyle.dll.a
/usr/lib/gcc/i686-w64-mingw32/13.1.0/../../../../i686-w64-mingw32/bin/ld: cannot export iconv_ostream_create: symbol not defined
collect2: error: ld returned 1 exit status

Any ideas?

╰─λ uname -a
Linux archlinux 6.8.1-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 16 Mar 2024 17:15:23 +0000 x86_64 GNU/Linux
Martchus commented 7 months ago

It built for me on 2023-08-29T12:27:30. You could download the version from my binary repo and check the .BUILDINFO file to see what has changed since then in the build environment.

Considering the package needs to be updated anyway I'll try that when I have time. Maybe this just fixes the issue.

Martchus commented 7 months ago

I've just updated the package but couldn't reproduce any build error with the latest version. If it still doesn't build for you, you can compare the .BUILDINFO file of the package in my binary repo with your build environment.

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.