Opened 15 years ago

Closed 15 years ago

#20323 closed defect (fixed)

serf 0.3.0 : build error

Reported by: contact@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: apr Cc:
Port: serf

Description (last modified by mf2k (Frank Schima))

$ sudo port install serf
--->  Building serf
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.3.0" && make all " returned error 2
Command output: /opt/local/share/apr-0/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -L/opt/local/lib -L/opt/local/lib/db44 -static -o test/serf_get libserf-0.la test/serf_get.lo /opt/local/lib/libaprutil-1.la -ldb-4.4 -lsqlite3 -lexpat -liconv  /opt/local/lib/libapr-0.la -lresolv  -lpthread  -lz -lssl -lcrypto
make: /opt/local/share/apr-0/build/libtool: Command not found
make: *** [test/serf_get] Error 127

Error: Status 1 encountered during processing.

So I install apr0 : sudo port install apr0

No problem for installing apr0.

Then I retry to install serf-0.3.0

sudo port install serf
--->  Building serf
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.3.0" && make all " returned error 2
Command output: /opt/local/share/apr-0/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -L/opt/local/lib -L/opt/local/lib/db44 -static -o test/serf_get libserf-0.la test/serf_get.lo /opt/local/lib/libaprutil-1.la -ldb-4.4 -lsqlite3 -lexpat -liconv  /opt/local/lib/libapr-0.la -lresolv  -lpthread  -lz -lssl -lcrypto
ld: duplicate symbol _apr_atomic_init in /opt/local/lib/libapr-0.a(apr_atomic.o) and /opt/local/lib/libapr-1.a(ia32.o)
collect2: ld returned 1 exit status
make: *** [test/serf_get] Error 1

Error: Status 1 encountered during processing.

I don't know if the bug is in apr itself... (apr-config ?)

I mark this ticket as priority "High" because a lot of ports depends on it (git-core +svn in my case).

Change History (5)

comment:1 Changed 15 years ago by contact@…

Cc: contact@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: contact@… removed
Description: modified (diff)
Keywords: serf removed
Owner: changed from macports-tickets@… to blair@…
Priority: HighNormal

comment:3 Changed 15 years ago by blair (Blair Zajac)

Why are you installing apr-0? It doesn't depend upon that version, it depend upon apr which is 1.x.

It looks like it's picking up the APR 0.x install and not the APR 1.x install. Look at the path it's looking for:

    /opt/local/share/apr-0/build/libtool

Try replacing this line in serf's Portfile with

    configure.args  --with-apr=${prefix} --with-apr-util=${prefix}

with

    configure.args  --with-apr=${prefix}/bin/apr-1-config --with-apr-util=${prefix}/bin/apu-1-config

If that works, I'll update the Portfile.

Blair

comment:4 Changed 15 years ago by contact@…

I've updated /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/serf/Portfile with your fix, and the port install worked. Thanks !

comment:5 Changed 15 years ago by blair (Blair Zajac)

Resolution: fixed
Status: newclosed

Great, the change is committed in r53911.

Note: See TracTickets for help on using tickets.