Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Fred van Stappen
>> You have a opinion that every respect, me first.

> It's simply how it is and has been for the past 60 years or so.

Ha, ok, with this argument, I stop to try to change things.

Sorry for the noise.

Fre;D
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Marco van de Voort
In our previous episode, Fred van Stappen said:
> But maybe it could be interesting to listen to other, even if you think
> that those people are stupid.

You are talking to the wrong people. If you think this behaviour is
incorrect, talk to the powers that be in charge of changing this (read:
Linux kernel and distribution maintenance)

Venting frustrations with *nix design on this list is futile.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Jonas Maebe

On 13/08/17 20:50, Fred van Stappen wrote:


You have a opinion that every respect, me first.


He gave a description of how linking against libraries from any language 
(C, Pascal, Go, Ada, ...) works on Unix-like systems. It is not related 
to opinions. It's simply how it is and has been for the past 60 years or so.


IMHO, like explained in package, the package contain symbolic link to 
the "developer" library.


A developer in this context is anyone to compiles/links programs that 
use this library (i.e., program developers). It's not about people who 
work on the library itself. They don't use the devel package, but the 
source.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Food for thought - language string improvement

2017-08-13 Thread Florian Klaempfl
Am 10.07.2017 um 15:00 schrieb Sven Barth via fpc-pascal:
> Am 10.07.2017 13:19 schrieb "Michael Van Canneyt"
> >:
>>
>>
>>
>> On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote:
>>
>>> On Mon, Jul 10, 2017 at 1:08 PM, Michael Van Canneyt
>>> > wrote:

 The code is definitely not the same. In each case, it was measured.
> There is
 a 10% performance loss.
>>>
>>>
>>> I'd love a source on this one. I guess you mean in Free Pascal?
>>
>>
>> Obviously.
>>
>> The classes unit can be recompiled to use the fgl (well, that used to
> be so)
>> as a basis. When using the resulting list and stringlist, there was a 10%
>> performance loss. The main reason - If I recall correctly - was that
> the fgl needs to resort to move() operations instead of direct assignments.
> 
> The fgl classes don't use Move(), but they have a virtual method that
> does the assignment between the specialized parameters that's inherited
> from the non-generic parent list type.

... which is done to avoid bloat. fgl specialized only a wrapper around
an internal list. So the slightly slower code in some cases reduced
executable size.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Fred van Stappen
Please Sven, keep cool.


You have a opinion that every respect, me first.


But maybe it could be interesting to listen to other, even if you think that 
those people are stupid.


> The *-dev packages also contain the symbolic link from the library without 
> version to the versioned one.


IMHO, like explained in package, the package contain symbolic link to the 
"developer" library.

This library could not be the actual installed on the system (that is a link 
from libX11.so.6).


FPC acts like a "normal" user of libX11.so library, not as a developer (this is 
for C programmers who needs the C headers and work on the developer ibX11.so 
library.)


>  as the names of the library will change with every version.


Exactly, and it is why, for each fpc version, the appropriate symlink should be 
assigned ( at the moment libX11.so.6  )


> This *is* the way to do this


 This *is* your way to see this.


Fre;D


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Sven Barth via fpc-pascal
Am 13.08.2017 17:42 schrieb "Fred van Stappen" :
>
> Hello Martin.
>
> Description of libx11-dev package (in /DEBIAN/control).
>
> Package: libx11-dev
> ...
> Description:
>
> This package contains the development headers for the library found in
libx11-6.
> Non-developers likely have little use for this package.
> ...
>
> Afaik, fpc does not use the C headers (I did not find it) nor fpc does
not develop/change anything inside the libX11 code.
> Maybe, but I have lot of doubt, fpc could need the C headers to compile
himself.
> But the compiled fpc should not need it.
>
> So, imho, in the case of fpc, they should not use libX11.so but
libX11.so.6 when linking things with the binary fpc.

The *-dev packages also contain the symbolic link from the library without
version to the versioned one. This *is* the way to do this as the names of
the library will change with every version.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Benito van der Zander

Hi,

 that reminds me of Synapse.


It is always very confusing to people that they need to install 
libssl-dev to use https, and libssl does not work.
Because libssl-dev contains libssl.so or so, while libssl only has 
libssl.so.1.0.0, which is not found...


And then you tell people to install libssl-dev, and they are even more 
confused, because they cannot find it, because they are on a 
distribution where they call it devel-openssl instead.



Cheers,
Benito



On 08/12/2017 04:54 PM, Fred van Stappen wrote:

Hello Martin.

Description of libx11-dev package (in /DEBIAN/control).

Package: libx11-dev
...
Description:
This package contains the development headers for the library found in 
libx11-6.

Non-developers likely have little use for this package.
...

Afaik, fpc does not use the C headers (I did not find it) nor fpc does 
not develop/change anything inside the libX11 code.
Maybe, but I have lot of doubt, fpc could need the C headers to 
compile himself.

But the compiled fpc should not need it.

So, imho, in the case of fpc, they should not use libX11.so but 
libX11.so.6 when linking things with the binary fpc.


My 0,001 cent.


Fre;D




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Defining sonames?

2017-08-13 Thread Fred van Stappen
Hello Martin.

Description of libx11-dev package (in /DEBIAN/control).

Package: libx11-dev
...
Description:

This package contains the development headers for the library found in libx11-6.
Non-developers likely have little use for this package.
...

Afaik, fpc does not use the C headers (I did not find it) nor fpc does not 
develop/change anything inside the libX11 code.
Maybe, but I have lot of doubt, fpc could need the C headers to compile himself.
But the compiled fpc should not need it.

So, imho, in the case of fpc, they should not use libX11.so but libX11.so.6 
when linking things with the binary fpc.

My 0,001 cent.


Fre;D


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal