public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* acl build failure on x86_64
@ 2010-01-19  9:18 Jon
  2010-01-20  3:54 ` Nathan Scott
  0 siblings, 1 reply; 4+ messages in thread
From: Jon @ 2010-01-19  9:18 UTC (permalink / raw)
  To: xfs

Brandon and anyone else who might be able to shed some light on this 
issue... I'm stumped.

> /usr/bin/make -C chacl
> make[2]: Entering directory `/tmp/acl-2.2.49/chacl'
> gcc -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall 
> -DVERSION=\"2.2.49\" -DLOCALEDIR=\"/usr/share/locale\" 
> -DPACKAGE=\"acl\" -I../include     -c -o chacl.o chacl.c
> chacl.c: In function 'walk_dir':
> chacl.c:335: warning: implicit declaration of function 'readdir64'
> chacl.c:335: warning: assignment makes pointer from integer without a cast
> chacl.c:337: error: dereferencing pointer to incomplete type
> chacl.c:337: error: TONS MORE OF THESE ERRORS
> make[2]: *** [chacl.o] Error 1
> make[2]: Leaving directory `/tmp/acl-2.2.49/chacl'
> make[1]: *** [chacl] Error 2
> make[1]: Leaving directory `/tmp/acl-2.2.49'
> make: *** [default] Error 2

This is a pure 64 bit bootstrap using gcc-4.4.2/glibc-2.11/binutils-2.20 
following Greg Shaffers DIY Linux reference build. I've got almost 300 
packages compiled and am at the tail end of my build so know this has to 
be isolated with ACL.... besides the occasional -fPIC issue with certain 
progs, this is the first stumbling block I've hit.

Thanks for any and all help.

Jon


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: acl build failure on x86_64
  2010-01-19  9:18 acl build failure on x86_64 Jon
@ 2010-01-20  3:54 ` Nathan Scott
  2010-01-20 14:29   ` Jon Grosshart
  0 siblings, 1 reply; 4+ messages in thread
From: Nathan Scott @ 2010-01-20  3:54 UTC (permalink / raw)
  To: Jon; +Cc: xfs


----- "Jon" <jgrosshart@gmail.com> wrote:

> Brandon and anyone else who might be able to shed some light on this 
> issue... I'm stumped.
> 
> > /usr/bin/make -C chacl
> > make[2]: Entering directory `/tmp/acl-2.2.49/chacl'
> > gcc -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall 
> > -DVERSION=\"2.2.49\" -DLOCALEDIR=\"/usr/share/locale\" 
> > -DPACKAGE=\"acl\" -I../include     -c -o chacl.o chacl.c
> > chacl.c: In function 'walk_dir':
> > chacl.c:335: warning: implicit declaration of function 'readdir64'

Your compile line is missing "-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
I think - see include/builddefs.in which shows how this is meant to
be pulled into your cc line for a Linux build.

cheers.

-- 
Nathan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: acl build failure on x86_64
  2010-01-20  3:54 ` Nathan Scott
@ 2010-01-20 14:29   ` Jon Grosshart
  2010-01-20 14:50     ` Jon Grosshart
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Grosshart @ 2010-01-20 14:29 UTC (permalink / raw)
  To: Nathan Scott; +Cc: xfs

On Tue, Jan 19, 2010 at 10:54 PM, Nathan Scott <nscott@aconex.com> wrote:
>
> ----- "Jon" <jgrosshart@gmail.com> wrote:
>
>> Brandon and anyone else who might be able to shed some light on this
>> issue... I'm stumped.
>>
>> > /usr/bin/make -C chacl
>> > make[2]: Entering directory `/tmp/acl-2.2.49/chacl'
>> > gcc -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall
>> > -DVERSION=\"2.2.49\" -DLOCALEDIR=\"/usr/share/locale\"
>> > -DPACKAGE=\"acl\" -I../include     -c -o chacl.o chacl.c
>> > chacl.c: In function 'walk_dir':
>> > chacl.c:335: warning: implicit declaration of function 'readdir64'
>
> Your compile line is missing "-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
> I think - see include/builddefs.in which shows how this is meant to
> be pulled into your cc line for a Linux build.
>
> cheers.
>
> --
> Nathan
>

Right you are. This line in configure was the culprit:

test -z "$PLATFORM" || pkg_platform="$PLATFORM"

In my /etc/bashrc I set this variable for all my build script to use:

export PLATFORM=$(arch)

Apparently, $pkg_platform shouldn't be "x86_64" as far as acl is concerned....

Thanks Nathan.

Jon

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: acl build failure on x86_64
  2010-01-20 14:29   ` Jon Grosshart
@ 2010-01-20 14:50     ` Jon Grosshart
  0 siblings, 0 replies; 4+ messages in thread
From: Jon Grosshart @ 2010-01-20 14:50 UTC (permalink / raw)
  To: xfs

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

Also, on a side note, would be nice from a packagers stand point to
have the attached DESTDIR patch applied to both acl and attr......

Thanks again Nathan.

[-- Attachment #2: acl-destdir.patch --]
[-- Type: application/octet-stream, Size: 1432 bytes --]

diff -urN acl-2.2.49-orig/include/builddefs.in acl-2.2.49/include/builddefs.in
--- acl-2.2.49-orig/include/builddefs.in	2009-06-22 14:37:31.000000000 -0400
+++ acl-2.2.49/include/builddefs.in	2010-01-20 09:44:13.000000000 -0500
@@ -28,14 +28,14 @@
 PKG_VERSION	= @pkg_version@
 PKG_PLATFORM	= @pkg_platform@
 PKG_DISTRIBUTION= @pkg_distribution@
-PKG_BIN_DIR	= @bindir@
-PKG_SBIN_DIR	= @sbindir@
-PKG_LIB_DIR	= @libdir@@libdirsuffix@
-PKG_DEVLIB_DIR	= @libexecdir@@libdirsuffix@
-PKG_INC_DIR	= @includedir@
-PKG_MAN_DIR	= @mandir@
-PKG_DOC_DIR	= @datadir@/doc/@pkg_name@
-PKG_LOCALE_DIR	= @datadir@/locale
+PKG_BIN_DIR	= $(DESTDIR)@bindir@
+PKG_SBIN_DIR	= $(DESTDIR)@sbindir@
+PKG_LIB_DIR	= $(DESTDIR)@libdir@@libdirsuffix@
+PKG_DEVLIB_DIR	= $(DESTDIR)@libexecdir@@libdirsuffix@
+PKG_INC_DIR	= $(DESTDIR)@includedir@
+PKG_MAN_DIR	= $(DESTDIR)@mandir@
+PKG_DOC_DIR	= $(DESTDIR)@datadir@/doc/@pkg_name@
+PKG_LOCALE_DIR	= $(DESTDIR)@datadir@/locale
 
 CC		= @cc@
 AWK		= @awk@
diff -urN acl-2.2.49-orig/include/buildmacros acl-2.2.49/include/buildmacros
--- acl-2.2.49-orig/include/buildmacros	2009-06-22 14:37:31.000000000 -0400
+++ acl-2.2.49/include/buildmacros	2010-01-20 09:42:21.000000000 -0500
@@ -40,7 +40,7 @@
 	  $(LFILES:.l=.o) \
 	  $(YFILES:%.y=%.tab.o)
 
-INSTALL	= $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
+INSTALL	= $(TOPDIR)/include/install-sh 
 
 SHELL = /bin/sh
 IMAGES_DIR = $(TOPDIR)/all-images

[-- Attachment #3: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-20 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19  9:18 acl build failure on x86_64 Jon
2010-01-20  3:54 ` Nathan Scott
2010-01-20 14:29   ` Jon Grosshart
2010-01-20 14:50     ` Jon Grosshart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox