NetBSD Problem Report #45195
From www@NetBSD.org Sat Jul 30 21:19:26 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 0F5F663CB8D
for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Jul 2011 21:19:26 +0000 (UTC)
Message-Id: <20110730211925.1405863BAC3@www.NetBSD.org>
Date: Sat, 30 Jul 2011 21:19:25 +0000 (UTC)
From: alexh@dragonflybsd.org
Reply-To: alexh@dragonflybsd.org
To: gnats-bugs@NetBSD.org
Subject: security/heimdal does misses symbols (_kdc_db_fetch, _kdc_free_ent)
X-Send-Pr-Version: www-1.0
>Number: 45195
>Category: pkg
>Synopsis: security/heimdal does misses symbols (_kdc_db_fetch, _kdc_free_ent)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: dfly-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 30 21:20:01 +0000 2011
>Closed-Date: Wed Aug 03 06:17:23 +0000 2011
>Last-Modified: Wed Aug 03 06:17:23 +0000 2011
>Originator: Alex Hornung
>Release: DragonFly 2.11
>Organization:
DragonFly BSD
>Environment:
DragonFly alex-pc.local 2.11-DEVELOPMENT DragonFly v2.11.0.605.gc3dc9-DEVELOPMENT #0: Fri Jul 29 13:17:18 UTC 2011 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
>Description:
Build error on DragonFly, as shown below. I can't really figure out why this would work on NetBSD (does it?) and not DragonFly.
Making all in kdc
/bin/sh ../libtool --tag=CC --mode=link cc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -DINET6 -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o digest-service digest-service.o libkdc.la ../lib/ipc/libheim-ipcs.la ../lib/hdb/libhdb.la ../lib/krb5/libkrb5.la -L/usr/lib -lcrypto ../lib/asn1/libasn1.la ../lib/vers/libvers.la ../lib/roken/libroken.la -lcrypt -L/usr/pkg/lib -L/usr/lib -lutil
libtool: link: cc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -DINET6 -I/usr/pkgsrc/security/heimdal/work/.buildlink/include -Wl,-R/usr/pkg/lib -o .libs/digest-service digest-service.o -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/hdb/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/ntlm/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/krb5/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/hx509/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/asn1/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/wind/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/com_err/.libs -L/usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/roken/.libs -L/usr/pkgsrc/security/heimdal/work/.buildlink/lib ./.libs/libkdc.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/hdb/.libs/libhdb.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/ntlm/.libs/libheimntlm.so ../lib/ipc/.libs/libhe
im-ipcs.a ../lib/hdb/.libs/libhdb.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/krb5/.libs/libkrb5.so ../lib/krb5/.libs/libkrb5.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/hx509/.libs/libhx509.so /usr/pkgsrc/security/heimdal/work/.buildlink/lib/libsqlite3.so -lpthread /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/asn1/.libs/libasn1.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/wind/.libs/libwind.so -lcrypto ../lib/asn1/.libs/libasn1.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/com_err/.libs/libcom_err.so /usr/pkgsrc/security/heimdal/work/heimdal-1.4/lib/roken/.libs/libroken.so ../lib/vers/.libs/libvers.a ../lib/roken/.libs/libroken.so -lcrypt -lutil -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkgsrc/security/heimdal/work/.buildlink/lib
digest-service.o: In function `ntlm_service':
digest-service.c:(.text+0x236): undefined reference to `_kdc_db_fetch'
digest-service.c:(.text+0x695): undefined reference to `_kdc_free_ent'
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/security/heimdal/work/heimdal-1.4/kdc
>How-To-Repeat:
try to build security/heimdal on DragonFly
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->dragonfly-pkg-people
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Sun, 31 Jul 2011 17:22:28 +0000
Responsible-Changed-Why:
Dragonfly specific issue. Builds OK here with pkgsrc-current and NetBSD-5.1.
Responsible-Changed-From-To: dragonfly-pkg-people->dfly-pkg-people
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Sun, 31 Jul 2011 17:24:09 +0000
Responsible-Changed-Why:
Fix address.
From: Alex Hornung <ahornung@gmail.com>
To: gnats-bugs@netbsd.org
Cc: dfly-pkg-people@netbsd.org, dragonfly-pkg-people@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, gls@netbsd.org
Subject: Re: pkg/45195 (security/heimdal does misses symbols (_kdc_db_fetch, _kdc_free_ent))
Date: Sun, 31 Jul 2011 20:19:43 +0100
--bcaec5431eec9aeeb304a9626545
Content-Type: text/plain; charset=ISO-8859-1
Well, this is actually an upstream issue. The symbols are being forced
to local visibility by the linker script even though they are used
from outside. I've also raised this issue upstream.
The attached patch fixes building on DragonFly; please commit it;
patch is at http://leaf.dragonflybsd.org/~alexh/heimdal-ldscript.patch,
and attached to this message.
Cheers,
Alex
Upstream bug description:
The symbols _kdc_db_fetch and _kdc_free_ent are also used externally
from libkdc, and not just internally. They are referenced from
kdc/digest-service. As such, the linker script cannot force those
symbols to be local, otherwise more picky linkers will fail to find
the symbols. The attached patch adds the two symbols to global
visibility, so that they can be referenced from kdc/digest-service.
This also fixes build on DragonFly.
--bcaec5431eec9aeeb304a9626545
Content-Type: text/x-patch; charset=US-ASCII; name="heimdal-ldscript.patch"
Content-Disposition: attachment; filename="heimdal-ldscript.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gqse8tyy0
ZGlmZiAtLWdpdCBhL3NlY3VyaXR5L2hlaW1kYWwvZGlzdGluZm8gYi9zZWN1cml0eS9oZWltZGFs
L2Rpc3RpbmZvCmluZGV4IGNlYTY1MjAuLmNkM2ZkYTEgMTAwNjQ0Ci0tLSBhL3NlY3VyaXR5L2hl
aW1kYWwvZGlzdGluZm8KKysrIGIvc2VjdXJpdHkvaGVpbWRhbC9kaXN0aW5mbwpAQCAtMyw2ICsz
LDcgQEAgJE5ldEJTRDogZGlzdGluZm8sdiAxLjI3IDIwMTEvMDcvMDggMDk6NDk6MjEgYWRhbSBF
eHAgJAogU0hBMSAoaGVpbWRhbC0xLjQudGFyLmd6KSA9IGI0Yzg3NmRmMzYzN2ExMWRlZWE3MmY4
N2E2ZTU0ZjZjYWY1MDE2NzkKIFJNRDE2MCAoaGVpbWRhbC0xLjQudGFyLmd6KSA9IDA1NTI4OGYx
YWIzNzc4MWYxNTMzMjk5YmRmZjliMGQxZTI2NGQ0NzAKIFNpemUgKGhlaW1kYWwtMS40LnRhci5n
eikgPSA2MDk1Mzc3IGJ5dGVzCitTSEExIChwYXRjaC1hYSkgPSA4M2JkOTkxYzhkNDY3YTRkOWVj
YTgxMWFlNjRkNTNmYjdiYmRmOTlkCiBTSEExIChwYXRjaC1hZCkgPSAzN2MyYTdjZGM0ZGJhNjk1
YTg0MDU3YjQwYWFlM2M1YTk3MWNiNTQ2CiBTSEExIChwYXRjaC1hbCkgPSAwMjJkNWYzNzIzYmQx
ZGI3ZmU1ZTkyZWVhNWQwMTA2ODUxYTVkNDI0CiBTSEExIChwYXRjaC1hcikgPSAwYTNlN2JiZDNj
YjA0ZGViMGY2NzcyYWZkOWE2YjZiNTM1MzQ2M2QzCmRpZmYgLS1naXQgYS9zZWN1cml0eS9oZWlt
ZGFsL3BhdGNoZXMvcGF0Y2gtYWEgYi9zZWN1cml0eS9oZWltZGFsL3BhdGNoZXMvcGF0Y2gtYWEK
bmV3IGZpbGUgbW9kZSAxMDA2NDQKaW5kZXggMDAwMDAwMC4uZTJlMmYzNgotLS0gL2Rldi9udWxs
CisrKyBiL3NlY3VyaXR5L2hlaW1kYWwvcGF0Y2hlcy9wYXRjaC1hYQpAQCAtMCwwICsxLDExIEBA
CistLS0ga2RjL3ZlcnNpb24tc2NyaXB0Lm1hcC5vcmlnCTIwMTEtMDctMzEgMjA6MDM6MDYuMDMw
MTk1MDAwICswMTAwCisrKysga2RjL3ZlcnNpb24tc2NyaXB0Lm1hcAkyMDExLTA3LTMxIDIwOjA0
OjAzLjMxMDI3NTAwMCArMDEwMAorQEAgLTIsNiArMiw4IEBACisgCisgSEVJTURBTF9LRENfMS4w
IHsKKyAJZ2xvYmFsOgorKwkJX2tkY19kYl9mZXRjaDsKKysJCV9rZGNfZnJlZV9lbnQ7CisgCQlr
ZGNfbG9nOworIAkJa2RjX2xvZ19tc2c7CisgCQlrZGNfbG9nX21zZ192YTsK
--bcaec5431eec9aeeb304a9626545--
From: "Guillaume Lasmayous" <gls@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45195 CVS commit: pkgsrc/security/heimdal
Date: Sun, 31 Jul 2011 21:21:01 +0000
Module Name: pkgsrc
Committed By: gls
Date: Sun Jul 31 21:21:01 UTC 2011
Modified Files:
pkgsrc/security/heimdal: Makefile distinfo
Added Files:
pkgsrc/security/heimdal/patches: patch-kdc_version-script.map
Log Message:
Adds the symbols _kdc_db_fetch and _kdc_free_ent to global
visibility, so that they can be referenced from kdc/digest-service.
Fixes build on Dragonfly. From Alex Hornung in PR pkg/45195.
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 pkgsrc/security/heimdal/Makefile
cvs rdiff -u -r1.28 -r1.29 pkgsrc/security/heimdal/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/heimdal/patches/patch-kdc_version-script.map
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 03 Aug 2011 06:17:23 +0000
State-Changed-Why:
Committed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.