bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] The configure script is using wrong parameter -Wl


From: Fx Ne
Subject: Re: [bug-gnu-libiconv] The configure script is using wrong parameter -Wl for msvc complier
Date: Sat, 22 Jun 2024 10:40:45 +0800

I find it is caused by "ar"
on the file /libcharset/libtool, it don't use ar, but run "false"
# The archiver.
AR="echo ####don\'t use ar, nono false!!####"

# Flags to create an archive (by configure).
lt_ar_flags=cr

That's why it return the false cr ... (e.g. libtool: link: false cr .libs/charset.lib  localcharset.obj relocatable-stub.obj )
then command fails. Because False program will return false code.
I commented out the false then it succeed, but does ar is necessary? I see there is a ar wrapper  "ar-lib"
Should I change AR="build-aux/ar-lib" !??
Whatever it's not the big problem. Because the dll already created!!! just "ar=false" failed the build.

build again but get different error
usr/bin/install: cannot stat '.libs/charset.lib': No such file or directory
make[2]: *** [Makefile:67: install-lib] Error 1 //$(LIBTOOL_INSTALL) $(INSTALL) libcharset.la $(libdir)/libcharset.la
make[2]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
make[1]: *** [Makefile:39: install-lib] Error 2
make[1]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
make: *** [Makefile:41: lib/localcharset.h] Error 2

It is caused by charset.lib don't exist but the libtool is using charset.dll.lib,
It's surely a bug!!!! The name don't correspond.

The file libcharset.la seems wrong?
I'm not sure but didn't .lib file is statistic lib for win!??
# The name that we can dlopen(3).
dlname='charset-1.dll'

# Names of this library.
library_names='charset.dll.lib'

# The name of the static archive.
old_library='charset.lib'

I changed old_library='charset.lib' to old_library='charset.dll.lib'

build continues but stop again.
# make
builddir="`pwd`"; cd libcharset && make all && make install-lib libdir="$builddir/lib" includedir="$builddir/lib"
make[1]: Entering directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
cd lib && make all
make[2]: Entering directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
make[1]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
make[1]: Entering directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
cd lib && make all
make[2]: Entering directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
cd lib && make install-lib libdir='/f/Software/Application/lib/libiconv-1.17/lib' includedir='/f/Software/Application/lib/libiconv-1.17/lib'
make[2]: Entering directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
/bin/sh ../build-aux/mkinstalldirs /f/Software/Application/lib/libiconv-1.17/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libcharset.la /f/Software/Application/lib/libiconv-1.17/lib/libcharset.la
libtool: install: /usr/bin/install -c .libs/charset.dll.lib /f/Software/Application/lib/libiconv-1.17/lib/charset.dll.lib
libtool: install: base_file=`basename libcharset.la`
libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'libcharset.la'i; echo charset-1.dll'`
libtool: install:  dldir=/f/Software/Application/lib/libiconv-1.17/lib/`dirname ../bin/charset-1.dll`
libtool: install:  test -d /f/Software/Application/lib/libiconv-1.17/lib/../bin || mkdir -p /f/Software/Application/lib/libiconv-1.17/lib/../bin
libtool: install:  /usr/bin/install -c .libs/charset-1.dll /f/Software/Application/lib/libiconv-1.17/lib/../bin/charset-1.dll
libtool: install: /usr/bin/install -c .libs/libcharset.lai /f/Software/Application/lib/libiconv-1.17/lib/libcharset.la
libtool: install: /usr/bin/install -c .libs/charset.dll.lib /f/Software/Application/lib/libiconv-1.17/lib/charset.dll.lib
libtool: install: chmod 644 /f/Software/Application/lib/libiconv-1.17/lib/charset.dll.lib
libtool: warning: remember to run 'libtool --finish /f/Software/Application/lib/libiconv/lib'
make[2]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset/lib'
/bin/sh ./build-aux/mkinstalldirs /f/Software/Application/lib/libiconv-1.17/lib
/usr/bin/install -c -m 644 include/libcharset.h.inst /f/Software/Application/lib/libiconv-1.17/lib/libcharset.h
/usr/bin/install -c -m 644 include/localcharset.h /f/Software/Application/lib/libiconv-1.17/lib/localcharset.h
make[1]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/libcharset'
cd lib && make all
make[1]: Entering directory '/f/Software/Application/lib/libiconv-1.17/lib'
/bin/sh ../libtool --mode=compile --tag=RC  `/bin/sh ./../windows/windres-options --escape 1.17` -i ./../windows/libiconv.rc -o libiconv.res.lo --output-format=coff
Usage: /f/Software/Application/lib/libiconv-1.17/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-DPACKAGE_VERSION_STRING=\"1.17\"'
make[1]: *** [Makefile:99: libiconv.res.lo] Error 1
make[1]: Leaving directory '/f/Software/Application/lib/libiconv-1.17/lib'
make: *** [Makefile:33: all] Error 2

again libtool script failed....

Bruno Haible <bruno@clisp.org> 于2024年6月21日周五 23:27写道:
Please keep the mailing list <bug-gnu-libiconv@gnu.org> in CC. I am not going
to reply to private email.

The reason is that when a question and answer is found in a mail archive,
10 or 100 people can read it and learn from it. So, it is 10 or 100 times
more efficient than private email. If all questions I would get would be
through private email, 100 hours per day would not be sufficient time for
me to answer.

Thank you for your understanding.




reply via email to

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