Date: Sat, 3 Mar 2012 23:52:48 GMT From: Arne Meyer <meyer.arne83@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/165673: [patch] sysutils/xfsprogs undefined ref to posix_fadvise64 Message-ID: <201203032352.q23Nqmhw093200@red.freebsd.org> Resent-Message-ID: <201203040000.q2400h3p090983@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165673 >Category: ports >Synopsis: [patch] sysutils/xfsprogs undefined ref to posix_fadvise64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 04 00:00:41 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Arne Meyer >Release: 9-STABLE >Organization: >Environment: FreeBSD partyvan 9.0-STABLE FreeBSD 9.0-STABLE #1 r232126M: Fri Feb 24 21:15:58 CET 2012 pk@partyvan:/usr/obj/usr/src/sys/PARTYVAN i386 >Description: /usr/ports/sysutils/xfsprogs/work/xfsprogs-2.9.4/io/fadvise.c:108: undefined reference to `posix_fadvise64' gmake[1]: *** [xfs_io] Error 1 gmake: *** [default] Error 2 *** Error code 1 Stop in /usr/ports/sysutils/xfsprogs. >How-To-Repeat: Build xfsprogs on a system that has posix_fadvise. >Fix: Just replace posix_fadvise64 with posix_fadvise. Should work, as off_t is already 64 bits if I'm not mistaken. Patch attached with submission follows: --- Makefile.orig 2012-03-04 00:35:56.000000000 +0100 +++ Makefile 2012-03-04 00:19:13.000000000 +0100 @@ -56,6 +56,7 @@ post-patch: ${FIND} ${WRKDIR} -name "*.m4" | ${XARGS} ${REINPLACE_CMD} -e \ 's|/usr/local|'${LOCALBASE}'|g' + @${REINPLACE_CMD} -e 's|posix_fadvise64|posix_fadvise|' ${WRKSRC}/io/fadvise.c .ifdef NOPORTDOCS @${REINPLACE_CMD} -e 's/doc//' -e '/PKG_DOC_DIR/d' ${WRKSRC}/Makefile .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203032352.q23Nqmhw093200>