Postgresql and Bacula - Undefined symbol "GSS_C_NT_HOSTBASED_SERVICE"

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sat Oct 29 11:59:59 UTC 2011


Alberto Rizzi wrote on 29.10.2011 15:13:
> I have problems with Bacula 3
> A week ago I upgraded postgresql-server port from 8.4.9 to 8.4.9_2
> I have recompiled the port, I never use packages.
> Postgresql-client package was left untouched.
>
> Since then when I try to run bacula director I have this error
>
> /libexec/ld-elf.so.1: /usr/local/lib/libpq.so.5: Undefined symbol
> "GSS_C_NT_HOSTBASED_SERVICE"
>
> I tried recompiling postgresql client and server but nothing changed.
> When I try to recompile bacula-server many symbols are not found.
> Below you can find some relevant informations.
>
> What can I do?
>
> -------------
>
> Linking bacula-dir ...
> /tmp/usr/ports/sysutils/bacula-server/work/bacula-5.0.3/libtool --silent
> --tag=CXX --mode=link /usr/bin/c++ -L../lib -L../cats -L../findlib
> -L/usr/local/lib -o bacula-dir dird.o admin.o authenticate.o autoprune.o
> backup.o bsr.o catreq.o dir_plugins.o dird_conf.o expand.o fd_cmds.o
> getmsg.o inc_conf.o job.o jobq.o migrate.o mountreq.o msgchan.o
> next_vol.o newvol.o pythondir.o recycle.o restore.o run_conf.o
> scheduler.o ua_acl.o ua_cmds.o ua_dotcmds.o ua_query.o ua_input.o
> ua_label.o ua_output.o ua_prune.o ua_purge.o ua_restore.o ua_run.o
> ua_select.o ua_server.o ua_status.o ua_tree.o ua_update.o vbackup.o
> verify.o -lbacfind -lbacsql -lbacpy -lbaccfg -lbac -lm -L/usr/local/lib
> -lpq -lcrypt -lpthread -lintl -lwrap /usr/local/lib/libintl.so
> /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
> /usr/local/lib/libpq.so: undefined reference to `gss_import_name'
> /usr/local/lib/libpq.so: undefined reference to `gss_release_name'
> /usr/local/lib/libpq.so: undefined reference to `gss_delete_sec_context'
> /usr/local/lib/libpq.so: undefined reference to `gss_display_status'
> /usr/local/lib/libpq.so: undefined reference to `gss_release_buffer'
> /usr/local/lib/libpq.so: undefined reference to `gss_init_sec_context'
> /usr/local/lib/libpq.so: undefined reference to
> `GSS_C_NT_HOSTBASED_SERVICE'
> *** Error code 1

Looks like WITH_GSSAPI option is culprit. Try to disable it and rebuild 
postgresql-server.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.


More information about the freebsd-ports mailing list