Opened 8 years ago

Closed 8 years ago

#30566 closed defect (fixed)

apache2: libtool: compile: unable to infer tagged configuration

Reported by: pavelc@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: vladimir.popov@…, xeno_ngc@…, hatfieldje@…, oskari.kokko@…, hoyomi@…, jendave@…, jeffszuhay (Jeff Szuhay), conradwt (Conrad Taylor)
Port: apache2

Description

This is first time Apache2 install. See the attached log file

Attachments (3)

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

Download all attachments as: .zip

Change History (17)

Changed 8 years ago by pavelc@…

Attachment: main.log added

Install log

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Keywords: apache apache2 removed
Milestone: MacPorts 2.0.2
Owner: changed from macports-tickets@… 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.

Changed 8 years ago by pavelc@…

Attachment: main.2.log added

Full Install log

comment:2 in reply to:  1 Changed 8 years 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 Changed 8 years ago by ryandesign (Ryan Schmidt)

Summary: Apache 2 install failsapache2: 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 8 years ago by pavelc@…

Attachment: output.log added

Shell Output Log

comment:4 in reply to:  3 Changed 8 years 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 8 years ago by ryandesign (Ryan Schmidt)

Ok, then please try also rebuilding apr and apr-util.

comment:6 Changed 8 years ago by pavelc@…

It works now! Thanks!

comment:7 Changed 8 years 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 ; Changed 8 years 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 8 years ago by ryandesign (Ryan Schmidt)

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 Changed 8 years 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 8 years 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 8 years ago by hatfieldje@…

Replying to vladimir.popov@…:

this worked for me, good luck)

This also worked for me.

comment:13 Changed 8 years ago by ryandesign (Ryan Schmidt)

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 8 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

Fixed in r86196.

Note: See TracTickets for help on using tickets.