Skip to contentSkip to conversation

acl build failure on x86_64

DISCUSSION Jon 2 participants 4 messages Jan 19, 2010 – Jan 20, 2010

lore
Share & tools
lore

Jon

author
#0 lore raw

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

Quoted 7 lines

/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

(quoted diff) +0 -2
-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'

Quoted 8 lines

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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 10 lines · ----- "Jon

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

Quoted 7 lines

/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

(quoted diff) +0 -2
-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.

Signature · 6 lines
Nathan

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#2 lore raw
Quoted 18 lines · Nathan Scott
Quoted 10 lines · ----- "Jon

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

Quoted 7 lines

/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

(quoted diff) +0 -2
-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.

Quoted 5 lines

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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw

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.

include/builddefs.in +8 -8
diff -urN acl-2.2.49-orig/include/builddefs.in acl-2.2.49/include/builddefs.in
@@ -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@
include/buildmacros +1 -1
diff -urN acl-2.2.49-orig/include/buildmacros acl-2.2.49/include/buildmacros
@@ -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

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs