Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Conversation

@zboszor
Copy link
Contributor

@zboszor zboszor commented Mar 6, 2024

Partial build fixes for #86

zboszor added 3 commits March 6, 2024 12:15
Move including amx.h after the long logic of #defines.
amx.h needs to know about at least AMX_JIT, otherwise a compiler
error occurs that complains about missing struct members.

Move the conditional block that #include <sys/mman.h> because
that also depends on the correct definition of AMX_JIT.

Move the conditional block with #undef AMX_XXXUSERDATA after
including amx.h because the former depends on the default
value of AMX_USERNUM which amx.h sets. Fixes another build issue.

Add #include <unistd.h> for UNIX-like machines so sysconf()
is available.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
These are marked as exported AMXAPI and already used outside pawn.

This partially reverts 44b1d71
("Fix for issue compuphase#50.")

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
When apps linked to -lpawnc, these undefined reference errors
occurred:

libpawnc.so: undefined reference to `pc_closebin'
libpawnc.so: undefined reference to `pc_readsrc'
libpawnc.so: undefined reference to `pc_readasm'
libpawnc.so: undefined reference to `pc_opensrc'
libpawnc.so: undefined reference to `pc_getpossrc'
libpawnc.so: undefined reference to `pc_createsrc'
libpawnc.so: undefined reference to `pc_resetsrc'
libpawnc.so: undefined reference to `pc_clearpossrc'
libpawnc.so: undefined reference to `pc_writebin'
libpawnc.so: undefined reference to `pc_closesrc'
libpawnc.so: undefined reference to `pc_resetasm'
libpawnc.so: undefined reference to `pc_lengthbin'
libpawnc.so: undefined reference to `pc_eofsrc'
libpawnc.so: undefined reference to `pc_writesrc'
libpawnc.so: undefined reference to `pc_error'
libpawnc.so: undefined reference to `pc_writeasm'
libpawnc.so: undefined reference to `pc_printf'
libpawnc.so: undefined reference to `pc_resetbin'
libpawnc.so: undefined reference to `pc_openasm'
libpawnc.so: undefined reference to `pc_openbin'
libpawnc.so: undefined reference to `pc_closeasm'

This partially reverts 44b1d71
("Fix for issue compuphase#50.")

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant