bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 03:01 UTC
[Bug 1559] New: Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559
Summary: Autoconf overrides AR environment variable
Product: Portable OpenSSH
Version: 5.1p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: Brice.Lin at gmail.com
Reproduced on Linux (x86) and Mac OS X (PPC and x86):
$ LD="ld" AR="foo" ./configure
Running the above command results in Autoconf incorrectly setting the
AR variable in the generated Makefile. Setting CC instead of LD causes
the same issue, while only specifying AR works without 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 03:41 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 07:28 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #2 from Brice Lin <Brice.Lin at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 08:51 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #3 from Brice Lin <Brice.Lin at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 21:50 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #4 from Damien Miller <djm at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 22:39 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #5 from Brice Lin <Brice.Lin at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-21 23:10 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #6 from Damien Miller <djm at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-22 00:45 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #7 from Brice Lin <Brice.Lin at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-22 08:39 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #8 from Damien Miller <djm at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-22 10:56 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #9 from Brice Lin <Brice.Lin at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Feb-22 21:07 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559 --- Comment #10 from Damien Miller <djm at 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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-28 08:20 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #11 from Darren Tucker <dtucker at zip.com.au> 2009-08-28
18:20:45 EST ---
Since there's a workaround and the problem is in autoconf generated
file we're not going to try to bodge around it.
Thanks for the report, sorry we couldn't help. Closing.
--
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.
bugzilla-daemon at bugzilla.mindrot.org
2009-Oct-06 04:02 UTC
[Bug 1559] Autoconf overrides AR environment variable
https://bugzilla.mindrot.org/show_bug.cgi?id=1559
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #12 from Damien Miller <djm at mindrot.org> 2009-10-06
15:02:40 EST ---
Mass move of RESOLVED bugs to CLOSED now that 5.3 is out.
--
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.