Gregory Boyce
Thu, 08 May 2008 14:13:42 -0700
It appears that Apache on SuSE sets AP_DEBUG as part of the EXTRA_CPPFLAGS variable in config_vars.mk while Debian does not. Manually removing AP_DEBUG on a SuSE box causes the module to compile and adding it to Debian causes the compile to fail.
Currently I can create the correct binaries, but I'm hoping to build an RPM which would be easier if I didn't have to modify the contents of another package or hack the makefile after it was generated.
Since the rewrite of strchr to ap_strchr is happening in the included httpd.h file, its not clear to me what changes I should make to the module source in order to get it to compile correctly with -DAP_DEBUG set.
Any recommendations? On Wed, 7 May 2008, Gregory Boyce wrote:
Hello,I'm currently looking to deploy mod_mbox on a SuSE 10 server, and I'm having some issues getting the package to compile. I'm hoping that someone might be able to shed some light on the issue.mod_mbox_util-mod-mbox-util.o: In function `scan_dir':/root/mod_mbox/module-2.0/mod-mbox-util.c:162: undefined reference to `ap_strstr' /root/mod_mbox/module-2.0/mod-mbox-util.c:207: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mod-mbox-util.c:217: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mod-mbox-util.c:226: undefined reference to `ap_strrchr' ./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o): In function `mbox_parse_cte_header': /root/mod_mbox/module-2.0/mbox_parse.c:1190: undefined reference to `ap_strstr' /root/mod_mbox/module-2.0/mbox_parse.c:1201: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:1204: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:1207: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:1191: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:1194: undefined reference to `ap_strchr' ./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o):/root/mod_mbox/module-2.0/mbox_parse.c:1197: more undefined references to `ap_strchr' follow ./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o): In function `parse_from':/root/mod_mbox/module-2.0/mbox_parse.c:470: undefined reference to `ap_strrchr' /root/mod_mbox/module-2.0/mbox_parse.c:462: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:477: undefined reference to `ap_strchr' /root/mod_mbox/module-2.0/mbox_parse.c:481: undefined reference to `ap_strchr' ./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o): In function `mbox_fillbuf': /root/mod_mbox/module-2.0/mbox_parse.c:103: undefined reference to `ap_strchr'./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o): In function `mbox_bgets':/root/mod_mbox/module-2.0/mbox_parse.c:144: undefined reference to `ap_strchr' ./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o):/root/mod_mbox/module-2.0/mbox_parse.c:152: more undefined references to `ap_strchr' follow./.libs/libmboxutil.a(libmboxutil_la-mbox_parse.o): In function `mbox_generate_index': /root/mod_mbox/module-2.0/mbox_parse.c:855: undefined reference to `ap_strstr' /root/mod_mbox/module-2.0/mbox_parse.c:860: undefined reference to `ap_strstr' /root/mod_mbox/module-2.0/mbox_parse.c:850: undefined reference to `ap_strstr'collect2: ld returned 1 exit status make[2]: *** [mod-mbox-util] Error 1 make[2]: Leaving directory `/root/mod_mbox/module-2.0' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/mod_mbox/module-2.0' make: *** [all-recursive] Error 1Those functions appear to be defined within httpd.h of the apache2-devel package, which is installed.The system is running the suse version of Apache 2.2.3. I previously compiled mod_mbox on a Debian Etch system with the same apache version with no issues.Do you have any suggestions for things to check for? -- Greg