New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30566 (closed defect: fixed)

Opened 22 months ago

Last modified 19 months ago

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

main.log (23.8 KB) - added by pavelc@… 22 months ago.
Install log
main.2.log (53.8 KB) - added by pavelc@… 22 months ago.
Full Install log
output.log (3.4 KB) - added by pavelc@… 22 months ago.
Shell Output Log

Change History

Changed 22 months ago by pavelc@…

Install log

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.

Changed 22 months ago by pavelc@…

Full Install 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

Changed 22 months ago by pavelc@…

Shell Output Log

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:6 Changed 22 months ago by pavelc@…

It works now! Thanks!

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 apache2

and 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@…

Replying to vladimir.popov@…:

this worked for me, good luck)

This also worked for me.

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.

Note: See TracTickets for help on using tickets.