Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-07

Apache 2.2 modules for FreeBSD

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

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 00000000 - 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.

Reply by email

Jonas Maebe
to Leonardo M. Ramé
Leonardo M. Ramé wrote 11 lines
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 00000000 - 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

Reply by email