NetBSD Problem Report #41827
From www@NetBSD.org Thu Aug 6 04:10:53 2009
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 5266863BDF9
for <gnats-bugs@gnats.netbsd.org>; Thu, 6 Aug 2009 04:10:53 +0000 (UTC)
Message-Id: <20090806041053.1B34363BD7C@www.NetBSD.org>
Date: Thu, 6 Aug 2009 04:10:53 +0000 (UTC)
From: cfuhrman@panix.com
Reply-To: cfuhrman@panix.com
To: gnats-bugs@NetBSD.org
Subject: a2ps install issue on darwin: dyld: Symbol not found: _program_name
X-Send-Pr-Version: www-1.0
>Number: 41827
>Category: pkg
>Synopsis: a2ps install issue on darwin: dyld: Symbol not found: _program_name
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tron
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 06 04:15:00 +0000 2009
>Closed-Date: Fri Oct 29 21:13:36 +0000 2010
>Last-Modified: Fri Oct 29 21:13:36 +0000 2010
>Originator: Christopher M. Fuhrman
>Release: pkgsrc on Darwin 9.7.0
>Organization:
>Environment:
arwin christopher-fuhrmans-macbook.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
>Description:
Following installation of print/a2ps on my Apple MacBook, I find that running a2ps results in the following:
$ a2ps --medium=letter --borders=yes --columns=2 -X iso1 -R todo-090804.txt
dyld: Symbol not found: _program_name
Referenced from: /usr/pkg/lib/liba2ps.1.dylib
Expected in: flat namespace
Trace/BPT trap (core dumped)
Note that when I run the resultant binary out of the work directory, the binary works as expected.
>How-To-Repeat:
# cd /usr/pkgsrc/print/a2ps
# bmake package
# cd $HOME
# a2ps somefile.txt
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 18 Aug 2009 11:40:20 +0000
Responsible-Changed-Why:
Problem on Darwin.
Responsible-Changed-From-To: darwin-pkg-people->tron
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Thu, 28 Oct 2010 23:16:52 +0000
Responsible-Changed-Why:
I'll handle this PR.
From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41827 CVS commit: pkgsrc/print/a2ps
Date: Thu, 28 Oct 2010 23:21:54 +0000
Module Name: pkgsrc
Committed By: tron
Date: Thu Oct 28 23:21:53 UTC 2010
Modified Files:
pkgsrc/print/a2ps: Makefile distinfo
Added Files:
pkgsrc/print/a2ps/patches: patch-ac
Log Message:
Fix two problem under Mac OS X:
1.) stpcpy() is a macro under at least Mac OS 10.6. Avoid build failures
by not defining a dodgy prototype for it.
2.) Don't strip installed binaries to allow the dynamic linker to find
symbols required by the shared library but defined by the application.
This fixes PR pkg/41827 by Christopher M. Fuhrman.
Bump package revision as the package built fine under Mac OS 10.5 before
but didn't work.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 pkgsrc/print/a2ps/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/print/a2ps/distinfo
cvs rdiff -u -r0 -r1.7 pkgsrc/print/a2ps/patches/patch-ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->pending-pullups
State-Changed-By: tron@NetBSD.org
State-Changed-When: Thu, 28 Oct 2010 23:25:52 +0000
State-Changed-Why:
I've fixed the problem and request a pullup into the "pkgsrc-2010Q3" branch.
From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41827 CVS commit: [pkgsrc-2010Q3] pkgsrc/print/a2ps
Date: Fri, 29 Oct 2010 21:00:18 +0000
Module Name: pkgsrc
Committed By: spz
Date: Fri Oct 29 21:00:18 UTC 2010
Modified Files:
pkgsrc/print/a2ps [pkgsrc-2010Q3]: Makefile distinfo
Added Files:
pkgsrc/print/a2ps/patches [pkgsrc-2010Q3]: patch-ac
Log Message:
Pullup ticket 3263 - requested by tron
build and portability fix
Revisions pulled up:
- pkgsrc/print/a2ps/Makefile 1.70
- pkgsrc/print/a2ps/distinfo 1.12
Files added:
pkgsrc/print/a2ps/patches/patch-ac
-------------------------------------------------------------------------
Module Name: pkgsrc
Committed By: tron
Date: Thu Oct 28 23:21:53 UTC 2010
Modified Files:
pkgsrc/print/a2ps: Makefile distinfo
Added Files:
pkgsrc/print/a2ps/patches: patch-ac
Log Message:
Fix two problem under Mac OS X:
1.) stpcpy() is a macro under at least Mac OS 10.6. Avoid build failures
by not defining a dodgy prototype for it.
2.) Don't strip installed binaries to allow the dynamic linker to find
symbols required by the shared library but defined by the application.
This fixes PR pkg/41827 by Christopher M. Fuhrman.
Bump package revision as the package built fine under Mac OS 10.5 before
but didn't work.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 pkgsrc/print/a2ps/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/print/a2ps/distinfo
cvs rdiff -u -r0 -r1.7 pkgsrc/print/a2ps/patches/patch-ac
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.69.16.1 pkgsrc/print/a2ps/Makefile
cvs rdiff -u -r1.11 -r1.11.16.1 pkgsrc/print/a2ps/distinfo
cvs rdiff -u -r0 -r1.7.2.2 pkgsrc/print/a2ps/patches/patch-ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: tron@NetBSD.org
State-Changed-When: Fri, 29 Oct 2010 21:13:36 +0000
State-Changed-Why:
The fix has been pulled up into the "pkgsrc-2010Q3" branch.
>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.