[PPL-devel] Re: [SWIPL] Problem with plld?
Roberto Bagnara
bagnara at cs.unipr.it
Fri Nov 4 22:10:38 CET 2005
Jan Wielemaker wrote:
> On Friday 04 November 2005 21:04, Roberto Bagnara wrote:
>
>>I have no idea why we have "/usr/lib/libreadline.a" instead of "-lreadline"
>>in `PLLIBS'. In fact we get:
>
>
> Because the RPM is built using the static version of libreadline to
> avoid compatibility problems that were involved with this library for a
> long time. Maybe these are sufficiently resolved to use the shared
> object again these days. I'm not sure. If you build Prolog yourself
> from the sources there should be no problem.
>
>
>>So, either "-lreadline" should be used instead of "/usr/lib/libreadline.a",
>>or "/usr/lib/libreadline.a" should be put after "-lpl" in the link command.
>>In both cases, this would seem to be a bug in SWI-Prolog 5.4.7.
>
>
> I modified plld to order .a files under the libraries rather than with the
> object files. This is only for the 5.5.x series. For the 5.4.x series
> I suggest adding -lreadline to the options.
Thanks for the diagnosis and for the suggestion, Jan.
> P.s. It may be wise to consider turning the ppl extension into a
> library that is dynamically loaded in SWI-Prolog. No more need
> to recompile it for each new version of SWI-Prolog, easier to
> combine with other packages.
It sounds very interesting: how can we do that?
Cheers,
Roberto
--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it
More information about the PPL-devel
mailing list