[Lazarus] Package: Adding httpd.pas link error in linux

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
Hi, Lazarus team

If added httpd unit to one of package units then install it, it make errors when compiling Lazarus in linking.

I use linux OpenSuse 12.1, and same in ubuntu.
and last revision of Lazarus, FPC 2.6

In windows it works fine

Did i missed something?

Thanks in advance.

-----------------------------
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/mnt/dev/home/pascal/lib/freespider/lib/i386-linux/spidercgi.o: In function `TSPIDERCGI__DESTROY':
/mnt/dev/home/pascal/lib/freespider/spidercgi.pas:176: undefined reference to `ap_rputs'
/mnt/dev/home/pascal/lib/freespider/lib/i386-linux/spiderutils.o: In function `TSPIDERRESPONSE__SENDREDIRECT':
/mnt/dev/home/pascal/lib/freespider/spiderutils.pas:270: undefined reference to `ap_rputs'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
-----------------------------

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Mattias Gaertner
On Fri, 6 Jul 2012 23:13:51 +0300
Zaher Dirkey <[hidden email]> wrote:

> Hi, Lazarus team
>
> If added httpd unit to one of package units then install it, it make errors
> when compiling Lazarus in linking.
>
> I use linux OpenSuse 12.1, and same in ubuntu.
> and last revision of Lazarus, FPC 2.6
>
> In windows it works fine
>
> Did i missed something?
>
> Thanks in advance.
>
> -----------------------------
> /usr/bin/ld: warning: ../link.res contains output sections; did you forget
> -T?
> /mnt/dev/home/pascal/lib/freespider/lib/i386-linux/spidercgi.o: In function
> `TSPIDERCGI__DESTROY':
> /mnt/dev/home/pascal/lib/freespider/spidercgi.pas:176: undefined reference
> to `ap_rputs'

Have you installed the libapr on your system?
Have you installed the development package of libapr?

Mattias


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey


On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner <[hidden email]> wrote:
Have you installed the libapr on your system?
Have you installed the development package of libapr?

Mattias

It is already installed
The problem not happned if i used httpd.pas in the project directly, but in package it give me that error when linking Lazarus.

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Mattias Gaertner
On Sat, 7 Jul 2012 02:34:16 +0300
Zaher Dirkey <[hidden email]> wrote:

> On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
> <[hidden email]>wrote:
>
> > Have you installed the libapr on your system?
> > Have you installed the development package of libapr?
> >
> > Mattias
> >
>
> It is already installed
> The problem not happned if i used httpd.pas in the project directly, but in
> package it give me that error when linking Lazarus.

Are you aware that fpc has a httpd.ppu?

Mattias

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

ABorka
I did not check this, but is it possible that - due to fpc.cfg or
directory ordering, etc. - on Linux it pulls httpd from the wrong directory?

There are multiple httpd directories in FPC packages for different
Apache versions. You should delete all but the one you actually need so
the compiler finds that one for sure (httpd13, httpd20, httpd22).

Also, if you have your own httpd.pas unit there can be conflict because
all above dirs have httpd.ppu

AB

On 7/6/2012 16:48, Mattias Gaertner wrote:

> On Sat, 7 Jul 2012 02:34:16 +0300
> Zaher Dirkey <[hidden email]> wrote:
>
>> On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
>> <[hidden email]>wrote:
>>
>>> Have you installed the libapr on your system?
>>> Have you installed the development package of libapr?
>>>
>>> Mattias
>>>
>>
>> It is already installed
>> The problem not happned if i used httpd.pas in the project directly, but in
>> package it give me that error when linking Lazarus.
>
> Are you aware that fpc has a httpd.ppu?
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> [hidden email]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>



--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey

On Sat, Jul 7, 2012 at 9:27 PM, ABorka <[hidden email]> wrote:
I did not check this, but is it possible that - due to fpc.cfg or directory ordering, etc. - on Linux it pulls httpd from the wrong directory?

There are multiple httpd directories in FPC packages for different Apache versions. You should delete all but the one you actually need so the compiler finds that one for sure (httpd13, httpd20, httpd22).

Also, if you have your own httpd.pas unit there can be conflict because all above dirs have httpd.ppu

AB


On 7/6/2012 16:48, Mattias Gaertner wrote:
On Sat, 7 Jul 2012 02:34:16 +0300
Zaher Dirkey <[hidden email]> wrote:

On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
<[hidden email]>wrote:

Have you installed the libapr on your system?
Have you installed the development package of libapr?

Mattias


It is already installed
The problem not happned if i used httpd.pas in the project directly, but in
package it give me that error when linking Lazarus.

Are you aware that fpc has a httpd.ppu?

Mattias
Best Regards

I have one httpd, only httpd22
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22
and there is httpd.ppu

maybe i need reproduce it in simple package?.

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

leledumbo
Administrator
> I have one httpd, only httpd22
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22
and there is httpd.ppu

What if you remove it from the package? Since httpd is already in compiler' search path, there should be no need to add it as part of a package.
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey

On Sun, Jul 8, 2012 at 6:17 AM, leledumbo <[hidden email]> wrote:
> I have one httpd, only httpd22
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22
and there is httpd.ppu

What if you remove it from the package? Since httpd is already in compiler'
search path, there should be no need to add it as part of a package.


No, i added it to "uses" in one of mine unites in this package.

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
In reply to this post by Mattias Gaertner

On Sat, Jul 7, 2012 at 2:48 AM, Mattias Gaertner <[hidden email]> wrote:
On Sat, 7 Jul 2012 02:34:16 +0300
Zaher Dirkey <[hidden email]> wrote:

> On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
> <[hidden email]>wrote:
>
> > Have you installed the libapr on your system?
> > Have you installed the development package of libapr?
> >
> > Mattias
> >
>
> It is already installed
> The problem not happned if i used httpd.pas in the project directly, but in
> package it give me that error when linking Lazarus.

Are you aware that fpc has a httpd.ppu?

Mattias


I attached simple example about my problem, it is small package with empty units have httpd in uses.
If it is a bug i will report it?

Thanks

And this the error messages with hidden.

--------------------------------------------------
/usr/bin/env: bash
: No such file or directory
make: Entering directory `/mnt/dev/programs/lazarus'
/usr/bin/make -C ide ide
make[1]: Entering directory `/mnt/dev/programs/lazarus/ide'
../tools/svn2revisioninc .. revision.inc
Created /mnt/dev/programs/lazarus/ide/revision.inc for revision: 37853M
/usr/bin/make --assume-new=lazarus.pp lazarus
make[2]: Entering directory `/mnt/dev/programs/lazarus/ide'
/usr/bin/fpc -gl -Sci -dlclgtk2 -Fu../lcl/units/i386-linux -Fu../lcl/units/i386-linux/gtk2 -Fu../components/codetools/units/i386-linux -Fu../components/lazutils/lib/i386-linux -Fu../components/synedit/units/i386-linux/gtk2 -Fu../components/lazcontrols/lib/i386-linux/gtk2 -Fu../components/custom -Fu../ideintf/units/i386-linux/gtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../packager/units/i386-linux -Fu../units/i386-linux/gtk2 -Fuframes -Fu. -Fu/usr/lib/fpc/2.6.0/units/i386-linux/rtl -Fu/usr/lib/fpc/2.6.0/units/i386-linux/paszlib -Fu/usr/lib/fpc/2.6.0/units/i386-linux/fcl-process -Fu/usr/lib/fpc/2.6.0/units/i386-linux/hash -Fu/usr/lib/fpc/2.6.0/units/i386-linux/fpmkunit -Fu/usr/lib/fpc/2.6.0/units/i386-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/i386-linux/gtk2 -Fl/usr/lib/gcc/i586-suse-linux/4.6 -Fl/usr/local/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O2 -g- -Xs @/mnt/dev/workspace/lazarus/linux/idemake.cfg -di386 lazarus.pp
Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling lazarus.pp
Compiling resource ../units/i386-linux/gtk2/lazarus.or
Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
lazarus.pp(133,1) Error: Error while linking
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
--------------------------------------------------

 
Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

myhttpd.zip (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Michael Van Canneyt


On Sun, 8 Jul 2012, Zaher Dirkey wrote:

>
> On Sat, Jul 7, 2012 at 2:48 AM, Mattias Gaertner <[hidden email]> wrote:
>       On Sat, 7 Jul 2012 02:34:16 +0300
>       Zaher Dirkey <[hidden email]> wrote:
>
>       > On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
>       > <[hidden email]>wrote:
>       >
>       > > Have you installed the libapr on your system?
>       > > Have you installed the development package of libapr?
>       > >
>       > > Mattias
>       > >
>       >
>       > It is already installed
>       > The problem not happned if i used httpd.pas in the project directly, but in
>       > package it give me that error when linking Lazarus.
>
> Are you aware that fpc has a httpd.ppu?
>
> Mattias
>
>
> I attached simple example about my problem, it is small package with empty units have httpd in uses.
> If it is a bug i will report it?
>
> Thanks
>
> And this the error messages with hidden.
>
> --------------------------------------------------
> /usr/bin/env: bash
> : No such file or directory
> make: Entering directory `/mnt/dev/programs/lazarus'
> /usr/bin/make -C ide ide
> make[1]: Entering directory `/mnt/dev/programs/lazarus/ide'
> ../tools/svn2revisioninc .. revision.inc
> Created /mnt/dev/programs/lazarus/ide/revision.inc for revision: 37853M
> /usr/bin/make --assume-new=lazarus.pp lazarus
> make[2]: Entering directory `/mnt/dev/programs/lazarus/ide'
> /usr/bin/fpc -gl -Sci -dlclgtk2 -Fu../lcl/units/i386-linux -Fu../lcl/units/i386-linux/gtk2 -Fu../components/codetools/units/i386-linux
> -Fu../components/lazutils/lib/i386-linux -Fu../components/synedit/units/i386-linux/gtk2 -Fu../components/lazcontrols/lib/i386-linux/gtk2
> -Fu../components/custom -Fu../ideintf/units/i386-linux/gtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager
> -Fu../packager/frames -Fu../packager/units/i386-linux -Fu../units/i386-linux/gtk2 -Fuframes -Fu. -Fu/usr/lib/fpc/2.6.0/units/i386-linux/rtl
> -Fu/usr/lib/fpc/2.6.0/units/i386-linux/paszlib -Fu/usr/lib/fpc/2.6.0/units/i386-linux/fcl-process -Fu/usr/lib/fpc/2.6.0/units/i386-linux/hash
> -Fu/usr/lib/fpc/2.6.0/units/i386-linux/fpmkunit -Fu/usr/lib/fpc/2.6.0/units/i386-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE..
> -FU../units/i386-linux/gtk2 -Fl/usr/lib/gcc/i586-suse-linux/4.6 -Fl/usr/local/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O2 -g- -Xs
> @/mnt/dev/workspace/lazarus/linux/idemake.cfg -di386 lazarus.pp
> Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
> Copyright (c) 1993-2011 by Florian Klaempfl and others
> Target OS: Linux for i386
> Compiling lazarus.pp
> Compiling resource ../units/i386-linux/gtk2/lazarus.or
> Linking ../lazarus
> /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
> httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
> apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
> apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
> lazarus.pp(133,1) Error: Error while linking
> /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
> httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
> apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
> /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
> apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'

That looks like you have an incompatible version of libapr installed.

Michael.

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
On Mon, Jul 9, 2012 at 10:52 AM, Michael Van Canneyt <[hidden email]> wrote:


On Sun, 8 Jul 2012, Zaher Dirkey wrote:


On Sat, Jul 7, 2012 at 2:48 AM, Mattias Gaertner <[hidden email]> wrote:
      On Sat, 7 Jul 2012 02:34:16 +0300
      Zaher Dirkey <[hidden email]> wrote:

      > On Sat, Jul 7, 2012 at 1:03 AM, Mattias Gaertner
      > <[hidden email]>wrote:
      >
      > > Have you installed the libapr on your system?
      > > Have you installed the development package of libapr?
      > >
      > > Mattias
      > >
      >
      > It is already installed
      > The problem not happned if i used httpd.pas in the project directly, but in
      > package it give me that error when linking Lazarus.

Are you aware that fpc has a httpd.ppu?

Mattias


I attached simple example about my problem, it is small package with empty units have httpd in uses.
If it is a bug i will report it?

Thanks

And this the error messages with hidden.

--------------------------------------------------
/usr/bin/env: bash
: No such file or directory
make: Entering directory `/mnt/dev/programs/lazarus'
/usr/bin/make -C ide ide
make[1]: Entering directory `/mnt/dev/programs/lazarus/ide'
../tools/svn2revisioninc .. revision.inc
Created /mnt/dev/programs/lazarus/ide/revision.inc for revision: 37853M
/usr/bin/make --assume-new=lazarus.pp lazarus
make[2]: Entering directory `/mnt/dev/programs/lazarus/ide'
/usr/bin/fpc -gl -Sci -dlclgtk2 -Fu../lcl/units/i386-linux -Fu../lcl/units/i386-linux/gtk2 -Fu../components/codetools/units/i386-linux
-Fu../components/lazutils/lib/i386-linux -Fu../components/synedit/units/i386-linux/gtk2 -Fu../components/lazcontrols/lib/i386-linux/gtk2
-Fu../components/custom -Fu../ideintf/units/i386-linux/gtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager
-Fu../packager/frames -Fu../packager/units/i386-linux -Fu../units/i386-linux/gtk2 -Fuframes -Fu. -Fu/usr/lib/fpc/2.6.0/units/i386-linux/rtl
-Fu/usr/lib/fpc/2.6.0/units/i386-linux/paszlib -Fu/usr/lib/fpc/2.6.0/units/i386-linux/fcl-process -Fu/usr/lib/fpc/2.6.0/units/i386-linux/hash
-Fu/usr/lib/fpc/2.6.0/units/i386-linux/fpmkunit -Fu/usr/lib/fpc/2.6.0/units/i386-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE..
-FU../units/i386-linux/gtk2 -Fl/usr/lib/gcc/i586-suse-linux/4.6 -Fl/usr/local/lib -Flinclude -Fl/etc/ld.so.conf.d/*.conf -O2 -g- -Xs
@/mnt/dev/workspace/lazarus/linux/idemake.cfg -di386 lazarus.pp
Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling lazarus.pp
Compiling resource ../units/i386-linux/gtk2/lazarus.or
Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
lazarus.pp(133,1) Error: Error while linking
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'

That looks like you have an incompatible version of libapr installed.

Michael.


I upgraded it with Apache from Apache repo
http://download.opensuse.org/repositories/Apache/

But same error, my friend have the same problem also in ubuntu.

Is that possible httpd.pas not dynamic link to the library?
 
Best Regards
Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Michael Van Canneyt


On Mon, 9 Jul 2012, Zaher Dirkey wrote:

> On Mon, Jul 9, 2012 at 10:52 AM, Michael Van Canneyt <[hidden email]> wrote:
>
>
>       On Sun, 8 Jul 2012, Zaher Dirkey wrote:
>
> That looks like you have an incompatible version of libapr installed.
>
> Michael.
>
>
> I upgraded it with Apache from Apache repo
> http://download.opensuse.org/repositories/Apache/
>
> But same error, my friend have the same problem also in ubuntu.
>
> Is that possible httpd.pas not dynamic link to the library?

It links statically. That is why the versions must match.

Michael.

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey

On Mon, Jul 9, 2012 at 9:26 PM, Michael Van Canneyt <[hidden email]> wrote:

It links statically. That is why the versions must match.


Is good idea to copy it "httpd.pas" and make it dynamic link in my package, i have another raison is to make it compatiple with Delphi/Windows also?

Best Regards
Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
In reply to this post by Michael Van Canneyt
On Mon, Jul 9, 2012 at 9:26 PM, Michael Van Canneyt <[hidden email]> wrote:


On Mon, 9 Jul 2012, Zaher Dirkey wrote:

On Mon, Jul 9, 2012 at 10:52 AM, Michael Van Canneyt <[hidden email]> wrote:


      On Sun, 8 Jul 2012, Zaher Dirkey wrote:

That looks like you have an incompatible version of libapr installed.

Michael.


I upgraded it with Apache from Apache repo
http://download.opensuse.org/repositories/Apache/

But same error, my friend have the same problem also in ubuntu.

Is that possible httpd.pas not dynamic link to the library?

It links statically. That is why the versions must match.



Hi again,

But i can compile it (httpd.pas)  in a project, why  it is not compiled with Lazarus IDE?

--
I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Mattias Gaertner
On Mon, 16 Jul 2012 20:16:53 +0300
Zaher Dirkey <[hidden email]> wrote:

> On Mon, Jul 9, 2012 at 9:26 PM, Michael Van Canneyt
> <[hidden email]>wrote:
>
> >
> >
> > On Mon, 9 Jul 2012, Zaher Dirkey wrote:
> >
> >  On Mon, Jul 9, 2012 at 10:52 AM, Michael Van Canneyt <
> >> [hidden email]> wrote:
> >>
> >>
> >>       On Sun, 8 Jul 2012, Zaher Dirkey wrote:
> >>
> >> That looks like you have an incompatible version of libapr installed.
> >>
> >> Michael.
> >>
> >>
> >> I upgraded it with Apache from Apache repo
> >> http://download.opensuse.org/**repositories/Apache/<http://download.opensuse.org/repositories/Apache/>
> >>
> >> But same error, my friend have the same problem also in ubuntu.
> >>
> >> Is that possible httpd.pas not dynamic link to the library?
> >>
> >
> > It links statically. That is why the versions must match.
> >
> >
> >
> Hi again,
>
> But i can compile it (httpd.pas)  in a project, why  it is not compiled
> with Lazarus IDE?

Compile the IDE with compiler flags -vut to see what httpd unit file is
used.
Is it the same as the project?

Mattias

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
On Mon, Jul 16, 2012 at 10:47 PM, Mattias Gaertner <[hidden email]> wrote:
On Mon, 16 Jul 2012 20:16:53 +0300
Zaher Dirkey <[hidden email]> wrote:

> On Mon, Jul 9, 2012 at 9:26 PM, Michael Van Canneyt
> <[hidden email]>wrote:
>
> >
> >
> > On Mon, 9 Jul 2012, Zaher Dirkey wrote:
> >
> >  On Mon, Jul 9, 2012 at 10:52 AM, Michael Van Canneyt <
> >> [hidden email]> wrote:
> >>
> >>
> >>       On Sun, 8 Jul 2012, Zaher Dirkey wrote:
> >>
> >> That looks like you have an incompatible version of libapr installed.
> >>
> >> Michael.
> >>
> >>
> >> I upgraded it with Apache from Apache repo
> >> http://download.opensuse.org/**repositories/Apache/<http://download.opensuse.org/repositories/Apache/>
> >>
> >> But same error, my friend have the same problem also in ubuntu.
> >>
> >> Is that possible httpd.pas not dynamic link to the library?
> >>
> >
> > It links statically. That is why the versions must match.
> >
> >
> >
> Hi again,
>
> But i can compile it (httpd.pas)  in a project, why  it is not compiled
> with Lazarus IDE?

Compile the IDE with compiler flags -vut to see what httpd unit file is
used.
Is it the same as the project?

Mattias



This the results when compiling both Lazarus IDE and simple project

-----------------------------------------
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/myhttpd.ppu
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/test_httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_c21.ppu
Searching file /lib/crti.o... not found
Searching file /lib/CRTI.O... not found
Searching file /usr/lib/crti.o... found
Searching file /lib/crtbegin.o... not found
Searching file /lib/CRTBEGIN.O... not found
Searching file /usr/lib/crtbegin.o... not found
Searching file /usr/lib/CRTBEGIN.O... not found
Searching file /usr/X11R6/lib/crtbegin.o... not found
Searching file /usr/X11R6/lib/CRTBEGIN.O... not found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtbegin.o... found
Searching file /lib/crtend.o... not found
Searching file /lib/CRTEND.O... not found
Searching file /usr/lib/crtend.o... not found
Searching file /usr/lib/CRTEND.O... not found
Searching file /usr/X11R6/lib/crtend.o... not found
Searching file /usr/X11R6/lib/CRTEND.O... not found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtend.o... found
Searching file /lib/crtn.o... not found
Searching file /lib/CRTN.O... not found
Searching file /usr/lib/crtn.o... found
Searching file /usr/lib/fpc/2.6.0/bin/i386-linux/ld... not found
Searching file /usr/lib/fpc/2.6.0/bin/i386-linux/LD... not found
Searching file /usr/lib/fpc/2.6.0/ld... not found
Searching file /usr/lib/fpc/2.6.0/LD... not found
Searching file /home/zaher/bin/ld... not found
Searching file /home/zaher/bin/LD... not found
Searching file /usr/local/bin/ld... not found
Searching file /usr/local/bin/LD... not found
Searching file /usr/bin/ld... found
Using util /usr/bin/ld
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
-----------------------------------------

the simple project uses httpd

----------------------------------------
Options changed, recompiling clean with -B
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/system.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/lineinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/exeinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/strings.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/fpintres.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/objpas.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysutils.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/baseunix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixtype.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/syscall.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/errors.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysconst.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/ctypes.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
mod_hello.lpr(45,3) Note: Local variable "Line" not used
mod_hello.lpr(46,3) Note: Local variable "Head" not used
mod_hello.lpr(47,3) Note: Local variable "Access" not used
mod_hello.lpr(141,25) Hint: Parameter "p" not used
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_dll.ppu
Project "project1" successfully built
----------------------------------------

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Mattias Gaertner


Zaher Dirkey <[hidden email]> hat am 17. Juli 2012 um 11:07 geschrieben:

[...]
This the results when compiling both Lazarus IDE and simple project

-----------------------------------------
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/myhttpd.ppu
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/test_httpd.ppu

 

What is myhttpd and test_httpd? 

 

Mattias 

 

PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_c21.ppu
Searching file /usr/lib/crti.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtbegin.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtend.o... found
Searching file /usr/lib/crtn.o... found
Searching file /usr/bin/ld... found
Using util /usr/bin/ld
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
-----------------------------------------

the simple project uses httpd

----------------------------------------
Options changed, recompiling clean with -B
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/system.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/lineinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/exeinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/strings.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/fpintres.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/objpas.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysutils.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/baseunix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixtype.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/syscall.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/errors.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysconst.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/ctypes.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
mod_hello.lpr(45,3) Note: Local variable "Line" not used
mod_hello.lpr(46,3) Note: Local variable "Head" not used
mod_hello.lpr(47,3) Note: Local variable "Access" not used
mod_hello.lpr(141,25) Hint: Parameter "p" not used
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_dll.ppu
Project "project1" successfully built
----------------------------------------

Zaher Dirkey

 

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
On Tue, Jul 17, 2012 at 4:02 PM, Mattias Gaertner <[hidden email]> wrote:


Zaher Dirkey <[hidden email]> hat am 17. Juli 2012 um 11:07 geschrieben:

[...]
This the results when compiling both Lazarus IDE and simple project

-----------------------------------------
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/myhttpd.ppu
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/test_httpd.ppu

 

What is myhttpd and test_httpd? 

 


It is a empty unit use httpd.pas in the "uses" section.
You can see the attachment in a previous message.

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey
In reply to this post by Mattias Gaertner
On Tue, Jul 17, 2012 at 4:02 PM, Mattias Gaertner <[hidden email]> wrote:


Zaher Dirkey <[hidden email]> hat am 17. Juli 2012 um 11:07 geschrieben:

[...]
This the results when compiling both Lazarus IDE and simple project

-----------------------------------------
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/myhttpd.ppu
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/test_httpd.ppu

 

What is myhttpd and test_httpd? 

 

Mattias 

 

PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_c21.ppu
Searching file /usr/lib/crti.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtbegin.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtend.o... found
Searching file /usr/lib/crtn.o... found
Searching file /usr/bin/ld... found
Using util /usr/bin/ld
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
-----------------------------------------

the simple project uses httpd

----------------------------------------
Options changed, recompiling clean with -B
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/system.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/lineinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/exeinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/strings.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/fpintres.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/objpas.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysutils.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/baseunix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixtype.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/syscall.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/errors.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysconst.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/ctypes.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
mod_hello.lpr(45,3) Note: Local variable "Line" not used
mod_hello.lpr(46,3) Note: Local variable "Head" not used
mod_hello.lpr(47,3) Note: Local variable "Access" not used
mod_hello.lpr(141,25) Hint: Parameter "p" not used
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_dll.ppu
Project "project1" successfully built
----------------------------------------

Zaher Dirkey

Hi, again.

Any chance to resolve this problem or understand it

Thanks

Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Package: Adding httpd.pas link error in linux

Zaher Dirkey

On Sun, Jul 22, 2012 at 3:38 AM, Zaher Dirkey <[hidden email]> wrote:
On Tue, Jul 17, 2012 at 4:02 PM, Mattias Gaertner <[hidden email]> wrote:


Zaher Dirkey <[hidden email]> hat am 17. Juli 2012 um 11:07 geschrieben:

[...]
This the results when compiling both Lazarus IDE and simple project

-----------------------------------------
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/myhttpd.ppu
PPU Loading /home/zaher/Desktop/httpd/lib/i386-linux/test_httpd.ppu

 

What is myhttpd and test_httpd? 

 

Mattias 

 

PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_c21.ppu
Searching file /usr/lib/crti.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtbegin.o... found
Searching file /usr/lib/gcc/i586-suse-linux/4.6/crtend.o... found
Searching file /usr/lib/crtn.o... found
Searching file /usr/bin/ld... found
Using util /usr/bin/ld
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.o: In function `HTTPD_AP_ESCAPE_URI$PAPR_POOL_T$PCHAR$$PCHAR':
httpd.pas:(.text+0x48): undefined reference to `ap_os_escape_path'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_CREATE$PPAPR_POOL_T$PAPR_POOL_T$$LONGINT':
apr.pas:(.text+0xa): undefined reference to `apr_pool_create_ex'
/usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.o: In function `APR_APR_POOL_SUB_MAKE$PPAPR_POOL_T$PAPR_POOL_T$APR_ABORTFUNC_T$$LONGINT':
apr.pas:(.text+0x29): undefined reference to `apr_pool_create_ex'
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Error: Error while linking
/mnt/dev/programs/lazarus/ide/lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
-----------------------------------------

the simple project uses httpd

----------------------------------------
Options changed, recompiling clean with -B
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/system.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/lineinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/exeinfo.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/strings.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/fpintres.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/objpas.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysutils.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/baseunix.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixtype.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/unixutil.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/syscall.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/errors.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/sysconst.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/httpd.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/apr.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/ctypes.ppu
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/httpd22/aprutil.ppu
mod_hello.lpr(45,3) Note: Local variable "Line" not used
mod_hello.lpr(46,3) Note: Local variable "Head" not used
mod_hello.lpr(47,3) Note: Local variable "Access" not used
mod_hello.lpr(141,25) Hint: Parameter "p" not used
PPU Loading /usr/lib/fpc/2.6.0/units/i386-linux/rtl/si_dll.ppu
Project "project1" successfully built
----------------------------------------

Zaher Dirkey

Hi, again.

Any chance to resolve this problem or understand it

Thanks

Zaher Dirkey


Reported as bug
http://bugs.freepascal.org/view.php?id=22779

Best Regards
Zaher Dirkey


--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus