ports/133399: archivers/gtar build failure on FreeBSD 7.2-BETA1
Colin Percival
cperciva at xps.daemonology.net
Sun Apr 5 18:20:07 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list