Ticket #30566 (closed defect: fixed)
apache2: libtool: compile: unable to infer tagged configuration
| Reported by: | pavelc@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.1 |
| Keywords: | Cc: | vladimir.popov@…, xeno_ngc@…, hatfieldje@…, oskari.kokko@…, hoyomi@…, jendave@…, jeff@…, conradwt@… | |
| Port: | apache2 |
Description
This is first time Apache2 install. See the attached log file
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 22 months ago by ryandesign@…
- Keywords apache apache2 removed
- Owner changed from macports-tickets@… to ryandesign@…
- Milestone MacPorts 2.0.2 deleted
The log is not complete (contains lines "Skipping completed"). Please clean and try again, and if it fails again, attach the new complete main.log.
comment:2 in reply to: ↑ 1 Changed 22 months ago by pavelc@…
Replying to ryandesign@…:
The log is not complete (contains lines "Skipping completed"). Please clean and try again, and if it fails again, attach the new complete main.log.
Okay I've done it, but still can't install.
comment:3 follow-up: ↓ 4 Changed 22 months ago by ryandesign@…
- Summary changed from Apache 2 install fails to apache2: libtool: compile: unable to infer tagged configuration
Ok, so the error is still:
libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag'
This sounds like the problem I described on the mailing list last month. Please rebuild libtool.
sudo port -n upgrade --force libtool
comment:4 in reply to: ↑ 3 Changed 22 months ago by pavelc@…
I tried this without any success. I realize that the port command installs the binary version of libtool. Then I added -s switch to build source version, but apache install still fails. See output.log attached file. The main.log file is the same.
comment:5 Changed 22 months ago by ryandesign@…
Ok, then please try also rebuilding apr and apr-util.
comment:7 follow-up: ↓ 8 Changed 22 months ago by vladimir.popov@…
got same problem today tried
sudo port -n upgrade --force libtool apr apr-util sudo port clean apache2 sudo port install apache2
and still getting
:info:build libtool: compile: unable to infer tagged configuration :info:build libtool: compile: specify a tag with `--tag'
comment:8 in reply to: ↑ 7 ; follow-up: ↓ 9 Changed 22 months ago by vladimir.popov@…
compiled at last, but before I had to change CC and GCC manually to point to i686-apple-darwin10-llvm-gcc-4.2
Replying to vladimir.popov@…:
got same problem today tried
sudo port -n upgrade --force libtool apr apr-util sudo port clean apache2 sudo port install apache2and still getting
:info:build libtool: compile: unable to infer tagged configuration :info:build libtool: compile: specify a tag with `--tag'
comment:9 in reply to: ↑ 8 Changed 22 months ago by ryandesign@…
Replying to vladimir.popov@…:
compiled at last, but before I had to change CC and GCC manually to point to i686-apple-darwin10-llvm-gcc-4.2
Where? How?
comment:10 follow-up: ↓ 12 Changed 22 months ago by vladimir.popov@…
sudo su - gcc --version
I have i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.9) if not,
cd /usr/bin/ ls -l|grep llvm-gcc
you supposed to find path to llvm-gcc-4.2 i have line like
lrwxr-xr-x 1 root admin 32 Aug 3 15:12 llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
then
rm gcc ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc
and maybe
rm cc ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 cc
That's it. Now rebuild ports
port -n uninstall libtool apr-util apr port -s install libtool apr apr-util apache2
this worked for me, good luck)
comment:11 Changed 20 months ago by xeno_ngc@…
Relinking gcc and cc, reinstalling libtool, apr, apr-util and apache2 did the trick. Thanks!
comment:12 in reply to: ↑ 10 Changed 20 months ago by hatfieldje@…
comment:13 Changed 19 months ago by ryandesign@…
- Cc vladimir.popov@…, xeno_ngc@…, hatfieldje@…, oskari.kokko@…, hoyomi@…, jendave@…, jeff@…, conradwt@… added
Has duplicate #30744 which contains a link to the upstream bug report and the proper fix, which is to use --tag arguments on each invocation of libtool.
comment:14 Changed 19 months ago by ryandesign@…
- Status changed from new to closed
- Resolution set to fixed
Fixed in r86196.


Install log