Trying to debug an apache 2.4 crash, I wanted to install mod_backtrace. No dice : portmaster www/mod_backtrace ===>>> Port directory: /usr/ports/www/mod_backtrace ===>>> Gathering distinfo list for installed ports ===>>> Launching 'make checksum' for www/mod_backtrace in background ===>>> Gathering dependency list for www/mod_backtrace from ports ===>>> Initial dependency check complete for www/mod_backtrace ===>>> Starting build for www/mod_backtrace <<<=== ===>>> All dependencies are up to date ===> Cleaning for ap24-mod_backtrace-1.0_2 *********************** PLEASE NOTE! *********************** Apache httpd must be built with the --enable-exception-hook configure option and mod_so enabled. *********************** PLEASE NOTE! *********************** ===> License APACHE20 accepted by the user ===> ap24-mod_backtrace-1.0_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by ap24-mod_backtrace-1.0_2 for building ===> Extracting for ap24-mod_backtrace-1.0_2 => SHA256 Checksum OK for mod_backtrace.c. cp -f /usr/ports/distfiles//mod_backtrace.c /usr/ports/www/mod_backtrace/work ===> Patching for ap24-mod_backtrace-1.0_2 ===> ap24-mod_backtrace-1.0_2 depends on file: /usr/local/sbin/apxs - found ===> Configuring for ap24-mod_backtrace-1.0_2 ===> Building for ap24-mod_backtrace-1.0_2 ===> Generating apache plist (cd /usr/ports/www/mod_backtrace/work && /usr/local/sbin/apxs -c -lexecinfo -L /usr/local/lib -o mod_backtrace.la mod_backtrace.c) /usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -I/usr/local/include/apache24 -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -c -o mod_backtrace.lo mod_backtrace.c && touch mod_backtrace.slo mod_backtrace.c:82:30: error: unknown type name 'ap_exception_info_t' static int bt_exception_hook(ap_exception_info_t *ei) ^ mod_backtrace.c:159:5: warning: implicit declaration of function 'ap_hook_fatal_exception' is invalid in C99 [-Wimplicit-function-declaration] ap_hook_fatal_exception(bt_exception_hook, NULL, NULL, ^ 1 warning and 1 error generated. apxs:Error: Command failed with rc=65536 . *** Error code 1 Stop. make: stopped in /usr/ports/www/mod_backtrace ===>>> make build failed for www/mod_backtrace ===>>> Aborting update ===>>> You can restart from the point of failure with this command line: portmaster <flags> www/mod_backtrace This command has been saved to /tmp/portmasterfail.txt
Duh. I should have read the note more carefully. It builds once apache has been rebuilt WITH_DEBUG="YES" Closing.