This unit comes with fpc-src package. It is in /usr/share/fpcsrc/packages/fcl-web/src (well there it is on Mandriva, but I don't thin it is much different on Ubuntu). ...
Tomaž, as you said ubuntu it's not different: "/usr/share/fpcsrc/2.2.4/packages/fcl-web/src/fpapache.pp".
.... You need to add this path to Other units paths in Project options /Compiler options/ Paths. You must have write permissions on this directory.
Yes, I've tried that because I don't like the idea of copying source files and then I had a different error:
/usr/share/fpcsrc/2.2.4/packages/fcl-web/src/fpapache.pp(143,40) Error: Identifier not found "ap_hook_handler_t"
now I do Ctrl+Click "ap_hook_handler_t" and the editor goes to "/usr/share/fpcsrc/2.2.4/packages/httpd20/src/http_config.inc" at line 1131 where is the following code:
type
ap_HOOK_handler_t = function(r: Prequest_rec): Integer; cdecl; // Line 1131 ***
This file is included in "/usr/share/fpcsrc/2.2.4/packages/httpd20/src/httpd.pas" in line 84 as shown here:
{$include ap_provider.inc}
{$include util_cfgtree.inc}
{$include httpd.inc}
{$include http_config.inc} // line 84 ****
{$include http_core.inc}
{$include http_log.inc}
{$include http_main.inc}
{$include http_protocol.inc}
{$include http_request.inc}
{$include http_connection.inc}
{$include http_vhost.inc}
{$include util_script.inc}
{$include util_time.inc}
{$include util_md5.inc}
{$include ap_mpm.inc}
implementation
And "httpd.pas" is used by "fpapache.pp".
Changing permissions haven't done any difference.
PS: This thread might fit better in Networkin section ...
I thought the same but I posted here because I think that part of my problem is in package install or any other LCL issue (I'm getting compile errors of a simple example that should at least compile without problem).