linking problems with Kerberos (heimdal) on FreeBSD

Поиск
Список
Период
Сортировка
От Palle Girgensohn
Тема linking problems with Kerberos (heimdal) on FreeBSD
Дата
Msg-id 2CA7EEF9B1946BA9A42ED9C6@palle.girgensohn.se
обсуждение исходный текст
Список pgsql-general
Hi!

I'm having some difficulties using postgresql version 8.0.x with heimdal
installed from /usr/src (i.e. the base system). This is on FreeBSD-5.x.
When using the port of heimdal, from /usr/ports/security/heimdal, it works.

The port install into /usr/local, whereas the base system is in /usr.
Here's the difference between the heimdal port and the heimdal distributed
in the base:

$ ldd /usr/local/lib/libkrb5.so
/usr/local/lib/libkrb5.so:
        libcrypto.so.3 => /lib/libcrypto.so.3 (0x281b3000)
        libasn1.so.6 => /usr/local/lib/libasn1.so.6 (0x282c4000)
        libroken.so.16 => /usr/local/lib/libroken.so.16 (0x282ea000)
        libcrypt.so.2 => /lib/libcrypt.so.2 (0x282f8000)
        libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x28311000)
$ ldd /usr/lib/libkrb5.so
/usr/lib/libkrb5.so:
$

Same goes for the other heimdal libs, libasn1.so and libcom_err.so.

I don't know enough about linking details, but shouldn't the
/usr/lib/libkrb5.so lib also contain info about libraries it depends on?

I'm not getting any replies on this from the FreeBSD guys, so I'm asking
you. Just for your information, the postgresql-7.x versions worked fine
with all Kerberos versions on FreeBSD, so it is something in the postgresql
distribution/build that has changed to trigger this problem, although I'm
inclined to believe that it is really FreeBSD's base heimdal that is
behaving badly.

Problems are like these:

...
> configure:1972: $? = 0
> configure:1974: cc -v </dev/null >&5
> Using built-in specs.
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 3.4.2 [FreeBSD] 20040728
> configure:1977: $? = 0
> configure:1979: cc -V </dev/null >&5
> cc: `-V' option must have argument
> configure:1982: $? = 1
> configure:2008: checking for C compiler default output
> configure:2011:
> c -O -pipe   -I/usr/local/include  -rpath=/usr/lib:/usr/local/lib
-pthread
>  -L/usr/local/lib
> conftest.c -L/usr/lib -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err >&5
> /usr/local/lib/libkrb5.so: warning: warning: mktemp() possibly used
> unsafely; consider using mkstemp()
> /usr/lib/libasn1.so: undefined reference to `init_error_table'
> /usr/lib/libasn1.so: undefined reference to `initialize_error_table_r'
> configure:2014: $? = 1
> configure: failed program was:
> #line 1986 "configure"
> #include "confdefs.h"
>
> #ifdef F77_DUMMY_MAIN
> #  ifdef __cplusplus
>     extern "C"
> #  endif
>   int F77_DUMMY_MAIN() { return 1; }
> #endif
> int
> main ()
> {
>
>  ;
>  return 0;
> }
> configure:2041: error: C compiler cannot create executables


В списке pgsql-general по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [pgsql-advocacy] Oracle buys Innobase
Следующее
От: jeff sacksteder
Дата:
Сообщение: Re: unsigned types