NetBSD Problem Report #10322
Received: (qmail 27706 invoked from network); 8 Jun 2000 12:14:58 -0000
Message-Id: <200006081214.OAA18499@polder.ubc.kun.nl>
Date: Thu, 8 Jun 2000 14:14:56 +0200 (CEST)
From: Olaf Seibert <rhialto@polder.ubc.kun.nl>
Reply-To: rhialto@polder.ubc.kun.nl
To: gnats-bugs@gnats.netbsd.org
Subject: pkg_install-20000511.tar.gz: main.o: Undefined symbol `_asprintf' referenced from text segment
X-Send-Pr-Version: 3.95
>Number: 10322
>Category: pkg
>Synopsis: main.o: Undefined symbol `_asprintf' refer enced from text segment in pkg_install-20000511.tar.gz
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: hubertf
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 08 12:15:00 +0000 2000
>Closed-Date: Wed Jun 14 01:53:38 +0000 2000
>Last-Modified: Wed Jun 14 01:53:38 +0000 2000
>Originator: Olaf Seibert
>Release: 1.3.3
>Organization:
>Environment:
>Description:
When trying the latest pkgsrc.tar.gz, I was told to install the
newest verion of the package tools. When building these, I get
the following:
all ===> delete
cc -O -Werror -I/usr/tmp/pkgtools/pkg_install/work/pkg_install/delete/../lib -DBINDIR='"/usr/sbin"' -DCHMOD='"/bin/chmod"' -DCHOWN='"/usr/sbin/chown"' -DCHGRP='"/usr/bin/chgrp"' -c main.c
cc -O -Werror -I/usr/tmp/pkgtools/pkg_install/work/pkg_install/delete/../lib -DBINDIR='"/usr/sbin"' -DCHMOD='"/bin/chmod"' -DCHOWN='"/usr/sbin/chown"' -DCHGRP='"/usr/bin/chgrp"' -c perform.c
cc -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o pkg_delete main.o perform.o -L/usr/tmp/pkgtools/pkg_install/work/pkg_install/lib -linstall
main.o: Undefined symbol `_asprintf' referenced from text segment
pen.o: warning: mktemp() possibly used unsafely, consider using mkstemp()
>How-To-Repeat:
try to install cdrdao, which was not present in the previous
pkgsrc I had installed.
>Fix:
Replace the following in pkg_install/delete/main,c
asprintf(&fn, "%s/%s", _pkgdb_getPKGDB_DIR(), pkg);
with
fn = malloc(4096);
snprintf(fn, 4096, "%s/%s", _pkgdb_getPKGDB_DIR(), pkg);
maybe conditionally compiled on NetBSD version.
Do the same in delete/main.c.
-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder -- Ah only did well at school
\X/ land.nl -- tae git intae an O level class tae git away fae Begbie.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->hubertf
Responsible-Changed-By: hubertf
Responsible-Changed-When: Tue Jun 13 18:36:24 PDT 2000
Responsible-Changed-Why:
I'll deal with this shortly. The main sources have already been
changed to not use asprintf(3), which is not available on 1.3.x systems.
- Hubert
.
State-Changed-From-To: open->analyzed
State-Changed-By: hubertf
State-Changed-When: Tue Jun 13 18:37:55 PDT 2000
State-Changed-Why:
The main sources have already been
changed to not use asprintf(3), which is not available on 1.3.x systems.
- Hubert
State-Changed-From-To: analyzed->closed
State-Changed-By: hubertf
State-Changed-When: Tue Jun 13 18:52:50 PDT 2000
State-Changed-Why:
I've updated the pkgsrc/pkgtools/pkg_install package to
20000608. Please grab & install, it should work fine
one 1.3.x systems.
- Hubert
>Unformatted:
>Environmen:
<machine, os, target, libraries (multiple lines)>
System: NetBSD klei.intern.polderland.nl 1.3.3 NetBSD 1.3.3 (KLEI) #16: Tue May 18 18:08:15 CEST 1999 rhialto@klei.intern.polderland.nl:/usr/src/sys/arch/i386/compile/KLEI i386
(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.