Not only can I not restart apache, but I cannot compile from source. First it complains about not being able to find apr_strings.h. When I add an include so that it finds the header, the compilation still fails...
[EMAIL PROTECTED]:/home/elsigh/src/mod_geoip2_1.1.8# apxs -i -a -L/usr/local/lib -I/usr/local/include -I/usr/include/apr-1.0 -lGeoIP -c mod_geoip.c gcc -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1 -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_MODULE -I/usr/include/apache-1.3 -I/usr/local/include -I/usr/include/apr-1.0 -c mod_geoip.c In file included from /usr/include/apr-1.0/apr_strings.h:48, from mod_geoip.c:70: /usr/include/apr-1.0/apr.h:270: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t' In file included from mod_geoip.c:70: /usr/include/apr-1.0/apr_strings.h:297: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1.0/apr_strings.h:313: error: expected ')' before '*' token /usr/include/apr-1.0/apr_strings.h:349: error: expected ')' before 'size' mod_geoip.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_module' mod_geoip.c: In function 'geoip_child_init': mod_geoip.c:136: error: 'geoip_module' undeclared (first use in this function) mod_geoip.c:136: error: (Each undeclared identifier is reported only once mod_geoip.c:136: error: for each function it appears in.) mod_geoip.c:144: warning: passing argument 5 of 'ap_log_error' from incompatible pointer type mod_geoip.c:153: warning: passing argument 5 of 'ap_log_error' from incompatible pointer type mod_geoip.c: In function 'geoip_post_read_request': mod_geoip.c:184: error: 'geoip_module' undeclared (first use in this function) mod_geoip.c:200: warning: passing argument 5 of 'ap_log_error' from incompatible pointer type mod_geoip.c:209: warning: passing argument 5 of 'ap_log_error' from incompatible pointer type mod_geoip.c:233: warning: implicit declaration of function 'apr_table_setn' mod_geoip.c:264: warning: implicit declaration of function 'apr_table_set' mod_geoip.c:172: warning: unused variable 'gip' mod_geoip.c: In function 'set_geoip_enable': mod_geoip.c:361: error: 'geoip_module' undeclared (first use in this function) mod_geoip.c: In function 'set_geoip_filename': mod_geoip.c:376: error: 'geoip_module' undeclared (first use in this function) mod_geoip.c:384: warning: passing argument 1 of 'apr_pstrdup' from incompatible pointer type mod_geoip.c: In function 'set_geoip_output': mod_geoip.c:401: error: 'geoip_module' undeclared (first use in this function) mod_geoip.c: At top level: mod_geoip.c:434: warning: implicit declaration of function 'AP_INIT_FLAG' mod_geoip.c:434: warning: missing braces around initializer mod_geoip.c:434: warning: (near initialization for 'geoip_cmds[0]') mod_geoip.c:434: error: initializer element is not constant mod_geoip.c:434: error: (near initialization for 'geoip_cmds[0].name') mod_geoip.c:435: warning: implicit declaration of function 'AP_INIT_TAKE12' mod_geoip.c:435: error: initializer element is not constant mod_geoip.c:435: error: (near initialization for 'geoip_cmds[0].func') mod_geoip.c:436: warning: implicit declaration of function 'AP_INIT_ITERATE' mod_geoip.c:436: error: initializer element is not constant mod_geoip.c:436: error: (near initialization for 'geoip_cmds[0].cmd_data') mod_geoip.c:437: warning: braces around scalar initializer mod_geoip.c:437: warning: (near initialization for 'geoip_cmds[0].req_override') mod_geoip.c:437: warning: initialization makes integer from pointer without a cast mod_geoip.c: In function 'geoip_register_hooks': mod_geoip.c:443: warning: implicit declaration of function 'ap_hook_post_read_request' mod_geoip.c:443: error: 'APR_HOOK_MIDDLE' undeclared (first use in this function) mod_geoip.c:444: warning: implicit declaration of function 'ap_hook_child_init' mod_geoip.c: At top level: mod_geoip.c:449: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'geoip_module' apxs:Break: Command failed with rc=1 -- libapache2-mod-geoip cannot be loaded because "API module structure `geoip_module' in file /usr/lib/apache2/modules/mod_geoip.so is garbled" https://bugs.launchpad.net/bugs/103992 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs