Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15667 closed defect (duplicate)

apache2 2.2.9 fails to build

Reported by: nm.photog@… Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: face@…
Port:

Description

I entered: sudo port upgrade outdated and I received the error output below. Does anyone know what to do?

---> Building apache2 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_apache2/work/httpd-2.2.9" && make all " returned error 2 Command output: Making all in metadata Making all in proxy Making all in ssl Making all in http make[3]: Nothing to be done for `local-all'. Making all in dav/main Making all in generators Making all in dav/fs Making all in mappers make[3]: Nothing to be done for `local-all'. Making all in support make[2]: Nothing to be done for `local-all'. /usr/bin/gcc-4.0 -I/opt/local/include -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt/local/include -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/os/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/server/mpm/prefork -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/http -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/filters -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/proxy -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/generators -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/mappers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/database -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/server -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/proxy/../generators -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/ssl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/modules/dav/main -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.9/server/buildmark.c /opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/lib/db46 -L/opt/local/lib -o httpd modules.lo buildmark.o -export-dynamic server/libmain.la modules/http/libmod_http.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread Undefined symbols:

"_ap_ugly_hack", referenced from:

_ap_ugly_hack$non_lazy_ptr in libmain.a(main.o)

"_ap_prelinked_module_symbols", referenced from:

_ap_prelinked_module_symbols$non_lazy_ptr in libmain.a(core.o)

"_ap_prelinked_modules", referenced from:

_ap_prelinked_modules$non_lazy_ptr in libmain.a(main.o) _ap_prelinked_modules$non_lazy_ptr in libmain.a(config.o)

"_ap_http_input_filter_handle", referenced from:

_ap_http_input_filter_handle$non_lazy_ptr in libmain.a(protocol.o)

"_ap_preloaded_modules", referenced from:

_ap_preloaded_modules$non_lazy_ptr in libmain.a(config.o)

ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [httpd] Error 1 make: * [all-recursive] Error 1

Error: Unable to upgrade port: 1

Change History (7)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port UpdatesPort Bugs
Owner: changed from macports-tickets@… to imajes@…
Summary: Apache 2.2.9 fails to buildapache2 2.2.9 fails to build

Assigning to maintainer.

comment:2 Changed 16 years ago by face@…

Cc: face@… added

Cc Me!

comment:3 Changed 16 years ago by synfinatic@…

ditto. I'm seeing this issue as well.

comment:4 Changed 16 years ago by danielluke (Daniel J. Luke)

This looks like it could be an apr or apr-util version mismatch.

Can you tell what version of apr is installed and active (port installed apr) and the same with apr-util (port installed apr-util).

If they're not at 1.3.0, please test this theory by upgrading them both first and then clean and rebuild apache (port clean --all apache2 && port install apache2)

comment:5 Changed 16 years ago by nm.photog@…

OK the apr ports that are installed on my machine are:

apr @1.3.0_0+darwin_9 (active)

apr-util @1.3.0_0 (active)

I received an email response to this issue from Chris Janton that didn't show up on this post. He suggested using these 2 commands:

sudo port clean --work apache2

sudo port upgrade apache2

He said that this combinatin of commands worked for him so I tried it and it worked to me as well.

comment:6 Changed 16 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #13066.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.