Recent

Author Topic: Cant' uses unit "httpd"  (Read 1783 times)

bonmario

  • Sr. Member
  • ****
  • Posts: 346
Cant' uses unit "httpd"
« on: February 15, 2015, 06:04:27 pm »
Hi at all !!
Initially i have opened a bug in mantis: http://bugs.freepascal.org/view.php?id=27470
I thinked that this was a bug, but probably it's a configuration problem.
I have Ubuntu 64 bit 14.10 with installed Apache 2.4 and Apache development libs.

To reproduce:
- Open a new project
- add "httpd24" to uses
- compile the project


This is the error:
Code: [Select]
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.6.4 [2014/04/20] for x86_64
Copyright (c) 1993-2014 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling /tmp/project1.lpr
(3104) Compiling unit1.pas
/tmp/unit1.pas(8,68) Hint: (5023) Unit "httpd24" not used in Unit1
(9022) Compiling resource lib/x86_64-linux/project1.or
(9015) Linking /tmp/project1
/usr/bin/ld: attenzione: link.res contiene sezioni di output; forse è stata dimenticata -T
/usr/lib/fpc/2.6.4/units/x86_64-linux/httpd24/httpd24.o: nella funzione "HTTPD24_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR":
httpd24.pas:(.text+0x1a2): riferimento non definito a "ap_os_escape_path"
/usr/lib/fpc/2.6.4/units/x86_64-linux/httpd24/httpd24.o: nella funzione "HTTPD24_AP_ESCAPE_HTML$PAPR_POOL_T$PCHAR$$PCHAR":
httpd24.pas:(.text+0x1ba): riferimento non definito a "ap_escape_html2"
/tmp/project1.lpr(20,1) Error: (9013) Error while linking
/tmp/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)

Thanks in advance, Mario

 

TinyPortal © 2005-2018