POSTGRESQL - ERROR: could not load library pgafis.so : undefined symbol: lfsparms_V2

假装没事ソ 提交于 2019-12-12 03:25:55

问题


I'm using PGAFIS library for fingerprint matching. For this i have installed postgresql and having some user defined c functions.

PGAFIS contain makefile, .control file, sql and unpacked sql file everything

I have compiled and pgafis.so file for the same and everyfile is on right location.

In my PGAdmin-III when i run CREATE EXTENSION pgafis it gives me following error:

ERROR: could not load library "/usr/lib/postgresql/9.4/lib/pgafis.so": /usr/lib/postgresql/9.4/lib/pgafis.so: undefined symbol: lfsparms_V2
SQL state: XX000

Please help. Thanks in advance

(This is a follow-up from Postgresql user defined c function issues)


回答1:


I expect you forgot to link to the required library.

Try adding

PG_LIBS = -lmindtct

or whatever. If it's not on the default linker path you'll need to need to add -L/path/to/the/containing/directory to PG_CPPFLAGS too.



来源:https://stackoverflow.com/questions/44551517/postgresql-error-could-not-load-library-pgafis-so-undefined-symbol-lfsparm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!