Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dg1sbg opened this issue Oct 24, 2024 · 1 comment
Labels

Comments

@dg1sbg
Copy link
Contributor

dg1sbg commented Oct 24, 2024

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

  • Branch: pkgconfig
  • Commit hash: 8faa65e
@dg1sbg dg1sbg added the bug label Oct 24, 2024
@dg1sbg
Copy link
Contributor Author

dg1sbg commented Oct 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant