clasp-developers / clasp

clasp Common Lisp environment
https://clasp-developers.github.io/
2.58k stars 145 forks source link

pkgconfig branch | Order of statements in config.sexp changes behaviour, making extensions not found #1646

Open dg1sbg opened 4 weeks ago

dg1sbg commented 4 weeks ago

Describe the bug

When using the pkgconfig branch, changing the order of the statements for specifying extensions and the new :libraries statement causes different behaviour of clasp: It either does not find the stated extensions or errors out with not finding the specified library.

Expected behavior The order of the statements in config.sexp should be irrelevant.

Actual behavior See above.

Code at issue

contents of file config.sexp:

(:extensions (:clasp-ext-rti-connext-dds))
(:libraries (("nddscpp2d" :ldlibs "-lnddscpp2d" :ldflags "-L/Applications/rti_connext_dds-7.3.0/lib/arm64Darwin20clang12.0")))

Context

dg1sbg commented 4 weeks ago

Additional info:

With the following content of config.sexp:

(:extensions (:clasp-ext-rti-connext-dds))
(:libraries (("nddscpp2d" :ldlibs "-lnddscpp2d" :ldflags "-L/Applications/rti_connext_dds-7.3.0/lib/arm64Darwin20clang12.0")))

and a slightly modified configure.lisp in koga I get the following output:

Found repo definition for extension CLASP-EXT-RTI-CONNEXT-DDS. Using that to locate extension directory.
Looking for configure scripts in extensions/clasp-ext-rti-connext-dds/
Found script extensions/clasp-ext-rti-connext-dds/cscript.lisp
Loading script extensions/clasp-ext-rti-connext-dds/cscript.lisp
Configuring library nddscpp2d
CONFIGURE-LIBRARY: nddscpp2d => PAIR: NIL
Module nddscpp2d not found.

This seems to suggest that the second sexp doesn't get read.