Mailing List Archive

[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org




--- Comment #1 from Damien Miller <djm@mindrot.org> 2009-02-21 14:41:41 ---
It works for me:

$ env LD=/tmp/xxld AR=/tmp/har ./configure
...
$ egrep "^(LD|AR)=" Makefile
LD=/tmp/xxld
AR=/tmp/har

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #2 from Brice Lin <Brice.Lin@gmail.com> 2009-02-21 18:28:26 ---
I pulled the tarball from
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.1p1.tar.gz
to generate the error. Did you use that as well?

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #3 from Brice Lin <Brice.Lin@gmail.com> 2009-02-21 19:51:22 ---
$ env LD=/tmp/xxld AR=/tmp/har ./configure
$ egrep "^(LD|AR)=" Makefile
LD=/tmp/xxld
AR=/tmp/har

$ env LD="ld" AR="foo" ./configure
$ egrep "^(LD|AR)=" Makefile
LD=ld
AR=/usr/bin/ar

For some reason, the command on top works differently than the one on
bottom.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #4 from Damien Miller <djm@mindrot.org> 2009-02-22 08:50:17 ---
do you really have a semi-functional ar-replacement called "foo" in
your path? autoconf checks that the selected linker at least exists and
is executable. Furthermore if the linker exists, but is not functional,
then it will cause configure test failures.

Try copying your /usr/bin/ar to a different path (e.g. /tmp/har) and
trying it.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #5 from Brice Lin <Brice.Lin@gmail.com> 2009-02-22 09:39:10 ---
I need to compile with LLVM, which requires pointing AR to llvm-ar
(which exists). That's how I encountered the bug in the first place.
What I posted just serves as an example test case of the issue.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #6 from Damien Miller <djm@mindrot.org> 2009-02-22 10:10:51 ---
It is an invalid testcase for the reasons that I just described.

If you are trying to use llvm-ar then why not show an example with
llvm-ar? You can look at the details of what searches are being
performed in config.log.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #7 from Brice Lin <Brice.Lin@gmail.com> 2009-02-22 11:45:53 ---
$ env CC="llvm-gcc" LD="llvm-ld" AR="llvm-ar" RANLIB="llvm-ranlib"
./configure
$ egrep "^(CC|LD|AR|RANLIB)=" Makefile
CC=llvm-gcc
LD=llvm-ld
AR=/usr/bin/ar
RANLIB=llvm-ranlib
$ llvm-ar
llvm-ar: Not enough positional command line arguments specified!
Must specify at least 2 positional arguments: See: llvm-ar --help

After running the above commands, I combed through config.log for
llvm-ar, but nothing shows up. I've included what seems like the
relevant lines from config.log. What else should I look for to debug
this?

$ egrep "( |\W)(ar|ranlib)\W*$" config.log
configure:4038: checking for ranlib
configure:4065: result: llvm-ranlib
configure:4256: checking for ar
configure:4274: found /usr/bin/ar
configure:4286: result: /usr/bin/ar
ac_cv_path_AR=/usr/bin/ar
ac_cv_prog_ac_ct_RANLIB=llvm-ranlib
AR='/usr/bin/ar'
RANLIB='llvm-ranlib'

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #8 from Damien Miller <djm@mindrot.org> 2009-02-22 19:39:22 ---
Try an absolute path for AR (I have no idea why autoconf demands this)

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #9 from Brice Lin <Brice.Lin@gmail.com> 2009-02-22 21:56:14 ---
Thanks, setting AR to the absolute path of llvm-ar works. It still
seems like a bug with Autoconf though. There's no reason for it to
require absolute paths, especially because it perfectly detects them
for the other environment variables (like RANLIB). Can you do anything
about it?

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1559] Autoconf overrides AR environment variable [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1559





--- Comment #10 from Damien Miller <djm@mindrot.org> 2009-02-23 08:07:37 ---
Probably not - it is buried deep in the guts of autoconf (... and you
thought this thing smelt bad on the outside). I'd suggest filing a but
on them.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs