View Issue Details

IDProjectCategoryView StatusLast Update
0004551unrealmodule apipublic2026-01-19 10:23
Reporterblank Assigned Tosyzop  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Summary0004551: build module, specify libs?
Descriptionin unreal3 it could be done with

make custommodule MODULEFILE=mymod EXLIBS="$(mysql_config --libs) $(mysql_config --cflags)"

I've tried

make EXLIBS="-l sqlite3"

but still get the same error on IRC

*** /irc/unrealircd/conf/unrealircd.conf:9: loadmodule third/test: failed to load: /irc/unrealircd/tmp/228F77E4.third.test.so: undefined symbol: sqlite3_open
3rd party modules

Activities

k4be

2020-04-21 11:54

developer   ~0021516

This should work:
EXLIBS="-lsqlite3" make
You should manually remove the .so file generated earlier as it won't be rebuilt by default.

syzop

2026-01-19 10:23

administrator   ~0023590

For the reported issue, no change was necessary. But it didn't work very nice either, as k4be said correctly.

As of today you can now specify libs in the .c file in the modulemanager block. This should help 3rd party module authors. module::compile-flags.
https://github.com/unrealircd/unrealircd/commit/eea4cfa762a7c25b6607eb714573dd2a05fa7f16

Issue History

Date Modified Username Field Change
2016-01-14 16:26 blank New Issue
2017-01-06 15:48 syzop Category module => module api
2020-04-15 17:36 syzop Severity minor => feature
2020-04-21 11:54 k4be Note Added: 0021516
2026-01-19 10:23 syzop Assigned To => syzop
2026-01-19 10:23 syzop Status new => closed
2026-01-19 10:23 syzop Resolution open => fixed
2026-01-19 10:23 syzop Note Added: 0023590