Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16473 closed defect (invalid)

serf-0.2.0 build failure in libtool

Reported by: walter@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: walter@…
Port: serf

Description

Building serf-0.2.0 fails with this message:

$ sudo port install serf
--->  Building serf with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_serf/work/serf-0.2.0" && make all " returned error 2
Command output: /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I. -I/opt/local/include/apr-1 -I/opt/local/include/apr-1  -c -o buckets/aggregate_buckets.lo buckets/aggregate_buckets.c && touch buckets/aggregate_buckets.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [buckets/aggregate_buckets.lo] Error 1

Error: Status 1 encountered during processing.

Manual configure/build as follows makes it work:

$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_serf/work/serf-0.2.0
$ sudo ./configure --prefix=/opt/local --with-apr=/opt/local --with-apr-util=/opt/local
$ sudo make all
$ sudo port install serf

It seems the port is setting gcc wrong:

/opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I. -I/opt/local/include/apr-1 -I/opt/local/include/apr-1  -c -o buckets/aggregate_buckets.lo buckets/aggregate_buckets.c && touch buckets/aggregate_buckets.lo

vs.

/opt/local/share/apr-1/build/libtool --silent --mode=compile gcc  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I. -I/opt/local/include/apr-1 -I/opt/local/include/apr-1  -c -o buckets/aggregate_buckets.lo buckets/aggregate_buckets.c && touch buckets/aggregate_buckets.lo

Attachments (1)

serf.log (9.2 KB) - added by lars.eggert@… 15 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by walter@…

Cc: walter@… added

Cc Me!

comment:2 Changed 16 years ago by blb@…

What version of apr do you have installed? Use

port installed apr

to find out. You may need to upgrade it, see #13653.

comment:3 in reply to:  2 Changed 16 years ago by walter@…

Oho! I had apr 1.2.8_0. Upgrading to apr 1.3.2_0+darwin_9 fixed it.

Seems like there's a dependency missing here... I mean, port selfupdate shouldn't be able to get you into this situation, should it?

comment:4 Changed 16 years ago by raimue (Rainer Müller)

Resolution: invalid
Status: newclosed

Dependencies do not specify versions. You are responsible to upgrade outdated packages yourself.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Changed 15 years ago by lars.eggert@…

Attachment: serf.log added
Note: See TracTickets for help on using tickets.