Date: Fri, 14 Oct 2005 23:11:55 +0400 From: Igor Pokrovsky <ip@doom.homeunix.org> To: Palle Girgensohn <girgen@pingpong.net> Cc: freebsd-stable@freebsd.org Subject: Re: linking problems with heimdal in base (ports version works) Message-ID: <20051014191154.GA3238@doom.homeunix.org> In-Reply-To: <C8E0B370A3966FDBD9D34952@palle.girgensohn.se> References: <82117273F2B3D8076639D8D3@palle.girgensohn.se> <200510141729.14633.lofi@freebsd.org> <200510141740.05616.lofi@freebsd.org> <C8E0B370A3966FDBD9D34952@palle.girgensohn.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 14, 2005 at 07:08:48PM +0200, Palle Girgensohn wrote: > > > --On fredag, oktober 14, 2005 17.40.03 +0200 Michael Nottebrock > <lofi@freebsd.org> wrote: > > >On Friday, 14. October 2005 17:29, Michael Nottebrock wrote: > >>On Friday, 14. October 2005 16:04, Palle Girgensohn wrote: > >>> This gives me problems. I maintain the postgresql ports, and postgresql > >>> supports Kerberos. Problem is, when installing the heimdal port, > >>> everything works fine, but when using the base heimdal, I can't get > >>> programs linking with postgresq's libpq.so to link, since the configure > >>> scripts cannot find symbols that are in for example libasn1.so. Most > >>> ports seem to only pick up the -lkrb5, not all the other libs needed. > >> > >>Then those ports are buggy. The respective configure scripts should run > >>krb5-config --libs and use that output to determine which additional > >>libraries need to be linked in. > > > >FWIW: As a stop-gap solution until this can be fixed in the upstream > >sources, you probably can do something like this in the port Makefile: > > > >HEIMDAL_CFLAGS!=krb5-config --cflags > >HEIMDAL_LDFLAGS!=krb5-config --libs > > > >CONFIGURE_ARGS+=CFLAGS=${HEIMDAL_CFLAGS} LDFLAGS=${HEIMDAL_LDFLAGS} > > I'm actually doing that already, but postgresql build process bugs out > somehow. I'll have to dedicate some time to this, I guess. > > Still, isn't it strange that the kerberos libs don't have any dependencies > registered? A quick check shows that they are almost the only libs in > /usr/lib that have zero output from ldd. Probably they are statically linked. What so strange in this? -ip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051014191154.GA3238>