[SM-Grimoire-Bugs] [Bug 16126] New: recode fails to build against musl

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Wed Aug 14 09:34:59 EDT 2019


            Bug ID: 16126
           Summary: recode fails to build against musl
           Product: Codex
           Version: test grimoire
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: devel
          Assignee: sm-grimoire-bugs at lists.ibiblio.org
          Reporter: ismael at iodev.co.uk
    Classification: Unclassified

libtool: link: ranlib .libs/librecode.a
libtool: link: rm -fr .libs/librecode.lax
libtool: link: ( cd ".libs" && rm -f "librecode.la" && ln -s "../librecode.la"
"librecode.la" )
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -march=native -mtune=native
-m64 -pipe -DPIC -fPIC -ffast-math -funroll-loops -Os  -s -Wl,--as-needed -o
recode main.o mixed.o librecode.la /usr/lib/libiconv.so
libtool: link: gcc -march=native -mtune=native -m64 -pipe -DPIC -fPIC
-ffast-math -funroll-loops -Os -s -Wl,--as-needed -o .libs/recode main.o
mixed.o /usr/lib/libiconv.so  ./.libs/librecode.so
/usr/bin/ld: ./.libs/librecode.so: undefined reference to `libiconv_open'
/usr/bin/ld: ./.libs/librecode.so: undefined reference to `libiconv_close'
/usr/bin/ld: ./.libs/librecode.so: undefined reference to `libiconv'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1647: recode] Error 1
make[2]: Leaving directory '/usr/src/recode-3.7.1/src'
make[1]: *** [Makefile:1503: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/recode-3.7.1'
make: *** [Makefile:1435: all] Error 2

The linking order is incorrect; not a problem with glibc because it's inside it
and -lc is always last.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ibiblio.org/pipermail/sm-grimoire-bugs/attachments/20190814/c9aede78/attachment.html>

More information about the SM-Grimoire-Bugs mailing list