<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>87580</bug_id>
          
          <creation_ts>2005-04-01 09:42 0000</creation_ts>
          <short_desc>unionfs-1.0.11 (and 1.0.10) fails to compile with  &apos;F_SETLK64 not found&apos;</short_desc>
          <delta_ts>2005-05-08 18:19:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rgbtxus@myrealbox.com</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>amd64@gentoo.org</cc>
    
    <cc>kernel@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rgbtxus@myrealbox.com</who>
            <bug_when>2005-04-01 09:42:49 0000</bug_when>
            <thetext>running 2.6.11-gentoo-r3
emerge of union-1.0.9 works fine
emerge =sys-fs/union-1.0.11 fails with error: `F_SETLK64&apos; undeclared
When trying the make by hand I get:  
make -C /lib/modules/2.6.11-gentoo-r3/build SUBDIRS=/root/test/unionfs-1.0.11 FISTDEVMK=/root/test/unionfs-1.0.11/fistdev.mk modules
make[1]: Entering directory `/usr/src/linux-2.6.11-gentoo-r3&apos;
  CC [M]  /root/test/unionfs-1.0.11/locks.o
/root/test/unionfs-1.0.11/locks.c: In function `unionfs_setlk&apos;:
/root/test/unionfs-1.0.11/locks.c:143: error: `F_SETLK64&apos; undeclared (first use in this function)


Reproducible: Always
Steps to Reproduce:
1.emerge =sys-fs/union-1.0.11
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2005-04-01 22:15:14 0000</bug_when>
            <thetext>works fine here ..
Are you on the amd64?
Can you please post your full emerge info?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rgbtxus@myrealbox.com</who>
            <bug_when>2005-04-01 22:33:57 0000</bug_when>
            <thetext>ok, here is my ifo -- and yes, this is an AMD64 system

thor unionfs-1.0.11 # emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 19 2005, 23:35:33)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=k8 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/fs/source/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig buildpkg ccache distcc distlocks sandbox userpriv&quot;
GENTOO_MIRRORS=&quot;ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo&quot;
LANG=&quot;en_US&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/fs/packages/amd64&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/fs/source/usr-portage&quot;
PORTDIR_OVERLAY=&quot;/fs/source/portage-overlay&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 2 a52 aac dga divx4linux doc dv dvd dvdr dvdread emacs ex exif faad fbcon ffmpeg freetype ftp gimp gimpprint ginac glade gnuplot gs imap java javascript jikes matroska mbox mng moznomail mpeg4 mplayer ocaml offensive ogg pcre plotutils quotes sasl sox spell theora transcode type1 xine xvid&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2005-04-01 23:00:13 0000</bug_when>
            <thetext>sorry, I have no experience in amd64-porting, since I dont own one. However I would be happy to add a patch, when you find,hack up or already have one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>malc@gentoo.org</who>
            <bug_when>2005-05-08 18:19:21 0000</bug_when>
            <thetext>I fixed this a while ago on 64bit Xeon (Nocona) but forgot to commit the patch... 2 files forget to include compat.h and thus FSETLK64 is undefined - since the default FSETLK is 64bit wide on our arch. Tested again on my amd64, and though I am quite sure the patch won&apos;t break 32bit - I leave it to the maintainer to apply unconditionally.

InCVS, cheers.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>