Subject: pkg/10322: pkg_install-20000511.tar.gz: main.o: Undefined symbol `_asprintf' referenced from text segment
To: None <>
From: Olaf Seibert <>
List: netbsd-bugs
Date: 06/08/2000 05:14:14
>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:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 08 05:15:00 PDT 2000
>Originator:     Olaf Seibert
>Release:        1.3.3
	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()

	try to install cdrdao, which was not present in the previous
	pkgsrc I had installed.
	Replace the following in pkg_install/delete/main,c

	        asprintf(&fn, "%s/%s", _pkgdb_getPKGDB_DIR(), pkg);


		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 'Rhialto' Seibert - rhialto@polder   -- Ah only did well at school
\X/      -- tae git intae an O level class tae git away fae Begbie.
 	<machine, os, target, libraries (multiple lines)>
 System: NetBSD 1.3.3 NetBSD 1.3.3 (KLEI) #16: Tue May 18 18:08:15 CEST 1999 i386