[Libpqxx-general] Undefined references to krb5* during compiling libpqxx-3.0 on Ubuntu
Mariusz Wojtysiak
zxspeccy.cpp at gmail.com
Fri Mar 20 08:53:42 UTC 2009
Hello!
PQXX is very useful and modern designed library! Great job!
I need to compile pqxx to debug into its classes. But during "configure"
libpqxx-3.0 on my Ubuntu I have following error:
checking for main in -lpq... no
configure: error:
Could not link to libpq. Make sure you have the PostgreSQL client library
installed, and that the library binary can be found in the location returned
by
"pg_config --libdir".
Config.log says:
configure:21836: checking for main in -lpq
configure:21865: gcc -o conftest -g -O2 -L/usr/lib conftest.c -lpq
-L/usr/lib >&5
/usr/lib/libpq.so: undefined reference to `krb5_cc_get_principal at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `gss_import_name at gssapi_krb5_2_MIT
'
/usr/lib/libpq.so: undefined reference to
`gss_release_buffer at gssapi_krb5_2_MIT'
/usr/lib/libpq.so: undefined reference to
`krb5_free_unparsed_name at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_free_principal at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to
`krb5_sname_to_principal at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_cc_default at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_cc_close at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_init_context at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_sendauth at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_free_error at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to
`gss_delete_sec_context at gssapi_krb5_2_MIT'
/usr/lib/libpq.so: undefined reference to
`GSS_C_NT_HOSTBASED_SERVICE at gssapi_krb5_2_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_unparse_name at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to
`gss_display_status at gssapi_krb5_2_MIT'
/usr/lib/libpq.so: undefined reference to `krb5_free_context at krb5_3_MIT'
/usr/lib/libpq.so: undefined reference to
`gss_init_sec_context at gssapi_krb5_2_MIT'
/usr/lib/libpq.so: undefined reference to
`gss_release_name at gssapi_krb5_2_MIT'
collect2: ld returned 1 exit status
In /usr/lib I have libkrb4 and libkrb5 libraries.
Can anybody help me to compile libpq?
Regards,
Mariusz Wojtysiak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20090320/b1675f89/attachment.html
More information about the Libpqxx-general
mailing list