Problem Upgrade Apache2 on MacPorts

I was trying to upgrade apache2 on my Macports but keep on getting these error messages which really annoy me;

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)

There are bug reports on MacPorts trac but it seem non of it giving the solution to solve the problem, so I have to do some workaround to make the upgrade works.

Try your luck to uninstall ncurses and ncursesw, re-install again, and also uninstall gawk from your macports. After that all have been done, do these

sudo port -v clean apache2 # clean apache2 port
sudo port -v install apache2 +darwin_9 # compile with darwin_9 variants

Post the comment and see what’s your outcome.

Related posts:

  1. postgresql82-server compile error on Apple Leopard with Macports 1.5 I wasn’t able to compile postgresql82-server on my machine, it’s...
  2. OS X Lion Macports OS X Lion Macports, Can I upgrade from Snow Leopard?...
  3. Install MySQL5 Server on Apple Mac Leopard with MacPorts Previously I wrote a post on “installing postgresql 8.2 on...
  4. installing postgresql 8.2 on Leopard with macports postgresql! one of my favorite high performance open source db,...
  5. Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
  6. How do I Start Application Services with launchctl When Apple Mac Leopard Boot Up If you have MySQL, PostgreSQL, Apache2 or other application installed...
  7. Upgrade to php52 on FreeBSD By default, after portsnap to latest FreeBSD port tree, it...
  8. MySQL Cannot Connect with PHP in OSX I think some of you might have problem connecting to...
  9. TextMate: Creating New Project in Shell Instantly Been using TextMate recently, really loving it like hell. There...
  10. Cacti Spine Source Installation Error on FreeBSD Just noticed FreeBSD’s port still using old version of spine,...

Tags: , ,

2 Responses to “Problem Upgrade Apache2 on MacPorts”

  1. depi Says:

    the same here :(

  2. Karloz Says:

    SUCCESS !!!!

    I just skipped the ncurses/ncursesw, and just cleaned and recompiled with +darwin_9

    thanks !!!!

Leave a Reply