[fpc-devel] Apache 2.2 modules for FreeBSD
Hi, I'm trying to run the examples of http22 units in a FreeBSD 7.2 for i386, with Apache 2.2.11. The examples compiles with FPC 2.2.4, but when I try to run "apachectl start", it crashes with this message: httpd: Syntax error on line 104 of /usr/local/etc/apache22/httpd.conf: API module structure 'hello_module' in file /usr/local/libexec/apache22/mod_hello.so is garbled - expected signature 41503232 but saw - perhaps this is not an Apache module DSO, or was compiled for a different Apache version? I downloaded the units to test this from http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/httpd22 To compile them I used: fpc -WR -XX -Xs -B -Fuhttpd22/src -Fuhttpd22/src/apr -Fuhttpd22/src/apriconv mod_hello.pp Any help will be appreciated!. Leonardo. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Apache 2.2 modules for FreeBSD
On 24 Jul 2009, at 02:59, Leonardo M. Ramé wrote: Hi, I'm trying to run the examples of http22 units in a FreeBSD 7.2 for i386, with Apache 2.2.11. The examples compiles with FPC 2.2.4, but when I try to run "apachectl start", it crashes with this message: httpd: Syntax error on line 104 of /usr/local/etc/apache22/ httpd.conf: API module structure 'hello_module' in file /usr/local/ libexec/apache22/mod_hello.so is garbled - expected signature 41503232 but saw - perhaps this is not an Apache module DSO, or was compiled for a different Apache version? Creating dynamic libraries with FPC does not work under FreeBSD at this time. Jonas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel