From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 5 18:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC55E106586A for ; Sun, 5 Apr 2009 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B712F8FC19 for ; Sun, 5 Apr 2009 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n35IK1tD057514 for ; Sun, 5 Apr 2009 18:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n35IK1OO057513; Sun, 5 Apr 2009 18:20:01 GMT (envelope-from gnats) Resent-Date: Sun, 5 Apr 2009 18:20:01 GMT Resent-Message-Id: <200904051820.n35IK1OO057513@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Colin Percival Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id F07BC106564A for ; Sun, 5 Apr 2009 18:14:15 +0000 (UTC) (envelope-from cperciva@xps.daemonology.net) Received: from xps.daemonology.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx2.freebsd.org (Postfix) with SMTP id 6276E1515B0 for ; Sun, 5 Apr 2009 18:14:15 +0000 (UTC) (envelope-from cperciva@xps.daemonology.net) Received: (qmail 76480 invoked by uid 1001); 5 Apr 2009 18:14:14 -0000 Message-Id: <20090405181414.76479.qmail@xps.daemonology.net> Date: 5 Apr 2009 18:14:14 -0000 From: Colin Percival To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/133399: archivers/gtar build failure on FreeBSD 7.2-BETA1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Colin Percival List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2009 18:20:07 -0000 >Number: 133399 >Category: ports >Synopsis: archivers/gtar build failure on FreeBSD 7.2-BETA1 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 05 18:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Colin Percival >Release: FreeBSD 7.2-BETA1 amd64 >Organization: >Environment: System: FreeBSD xps.daemonology.net 7.2-BETA1 FreeBSD 7.2-BETA1 #0: Tue Mar 31 16:24:35 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Attempting to build archivers/gtar results in the build failing when linking: tar.o(.text+0x208f): In function `parse_opt': : undefined reference to `argp_fmtstream_puts' tar.o(.text+0x20f5): In function `parse_opt': : undefined reference to `argp_fmtstream_putc' ../lib/libtar.a(argp-help.o)(.text+0xe35): In function `space': : undefined reference to `argp_fmtstream_point' [snip many lines] ../lib/libtar.a(argp-help.o)(.text+0x26de): In function `_help': : undefined reference to `argp_fmtstream_putc' ../lib/libtar.a(argp-help.o)(.text+0xe5e): In function `space': : undefined reference to `argp_fmtstream_putc' *** Error code 1 1 error *** Error code 1 1 error *** Error code 2 1 error *** Error code 1 Stop in /usr/ports/archivers/gtar. >How-To-Repeat: cd /usr/ports/archivers/gtar && make all I've only tested this on 7.2-BETA1; it might not apply to other versions of the base system. >Fix: I'm not sure how to fix this properly. The argp_fmtstream_* functions are defined in gtar via some ugly preprocessor logic which defines them as extern and/or inline, so this might be related to recent base system commits involving gcc and how inline functions are compiled. I managed to get gtar to compile by hacking the source up to define these functions in a new C file and then linking it in, but this is definitely not the right solution. >Release-Note: >Audit-Trail: >Unformatted: