Sign in Join

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

Mailing lists / fpc-devel / 2007-07

apr.ppu and apr.ppu

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

FPC installs these ppu in two flavors:
apr, apriconv, aprutil, unzip
And httpd comes even in 3 flavors.

Most fpc.cfg only contain the line:
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
So it depends on the file system which one is used.

Is this a feature or a bug?

Lazarus found this with its new tests for common
misconfigurations (Compiler Options > Test).

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Wed, 18 Jul 2007 01:11:25 +0200 Mattias Gaertner wrote: > FPC installs these ppu in two flavors: > apr, apriconv, aprutil, unzip > And httpd comes even in 3 flavors. > > Most fpc.cfg only contain the line: > -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* > So it depends on the file system which one is used. > > Is this a feature or a bug? I reported a bug: http://www.freepascal.org/mantis/view.php?id=9332

I assigned the bug to myself.

First off, the headers were provided by Felipe, who insisted that they are treated on an equal basis. My personal preference was to use the MySQL system: unitname-version.pp. Since that is out, we have little possibility to force use of one or another.

So, how do you propose to solve this ?

One thing would be to add
#IFDEF HTTPD1_3
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/apache-1.3 #endif

(similar for others) to the FPC config file. Is this acceptable ?

Michael.

Reply by email

Marco van de Voort
to Michael Van Canneyt
Show quoted text 9 lines
On Sat, 28 Jul 2007, Mattias Gaertner wrote: So, how do you propose to solve this ? One thing would be to add #IFDEF HTTPD1_3 -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/apache-1.3 #endif (similar for others) to the FPC config file. Is this acceptable ?

No. Since that kills the possibility for recursion. All dirs are automatically already included by the *

Reply by email

Jonas Maebe
to Marco van de Voort
Marco van de Voort wrote 12 lines
> On Sat, 28 Jul 2007, Mattias Gaertner wrote: > So, how do you propose to solve this ? > > One thing would be to add > #IFDEF HTTPD1_3 > -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/apache-1.3 > #endif > > (similar for others) to the FPC config file. Is this acceptable ? No. Since that kills the possibility for recursion. All dirs are automatically already included by the *

It should work since adding a particular directory again at the end will let it override the previously added ones. Still dirty, though.

Jonas

Reply by email

Felipe Monteiro de Carvalho
to Michael Van Canneyt: I assigned the bug to myself. First off, the headers were provided by Felipe, who insisted
Michael Van Canneyt wrote
First off, the headers were provided by Felipe, who insisted that they are treated on an equal basis.

For me this is better for people using the bindings, but I didn't think at the time that fpc would put all object files on the same directory.

In that case I think that we can be more flexible and rename the units, if necessary.

thanks,

Felipe Monteiro de Carvalho

Reply by email