Skip site navigation (1)Skip section navigation (2)
Date:      5 Apr 2009 18:14:14 -0000
From:      Colin Percival <cperciva@xps.daemonology.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/133399: archivers/gtar build failure on FreeBSD 7.2-BETA1
Message-ID:  <20090405181414.76479.qmail@xps.daemonology.net>
Resent-Message-ID: <200904051820.n35IK1OO057513@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090405181414.76479.qmail>