On Sat, Jul 13, 2013 at 10:19:14PM -0500, Bruce Dubbs wrote:
>
> This works for me:
>
> SUDO=sudo
> PROGRAM=SDL-1.2.15
>
> sed -i '/_XData32/d' src/video/x11/SDL_x11sym.h &&
>
> ./configure --prefix=/usr &&
> make &&
>
> echo "BLFS Start INSTALL" &&
> $SUDO make install &&
> $SUDO install -v -m755 -d /usr/share/doc/$PROGRAM/html &&
> $SUDO install -v -m644 docs/html/*.html
> /usr/share/doc/$PROGRAM/html
>
> I think we need to add the sed to the book.
>
> -- Bruce
If we can find out *why* it's needed - I was going to say that it
built fine for me on LFS-svn from late April (and before that,
including 7.3), but I decided to retry. [ rude words ] - now I too
get :
In file included from ./src/video/x11/SDL_x11dyn.h:34:0,
from ./src/video/x11/SDL_x11dyn.c:26:
/usr/include/X11/Xlibint.h:595:12: note: previous declaration of
‘_XData32’ was here
extern int _XData32(
That is part of the Xorg updates (libX11-1.6.0). I don't see any
obvious changes in the header itself that would cause LONG64 to now
be defined, but obviously somewhere in Xorg is now doing that.
I'm guessing that all the failures were on x86_64 ?
Google tells me (e.g.
http://cgit.freedesktop.org/xorg/lib/libXp/commit/?id=15ec6d1d0bb8c4cb24a190ed34e63312a0623670
) that this is from X11/Xmd.h and it is indeed part of the recent
long-standing vulnerability fixes. Xmd.h comes from xproto, and the
change for 7.0.24 was:
ken@jtm1 /scratch/ken $diff -u xproto-7.0.2{3,4}/Xmd.h
--- xproto-7.0.23/Xmd.h 2012-03-16 06:11:44.000000000 +0000
+++ xproto-7.0.24/Xmd.h 2013-03-29 23:26:53.000000000 +0000
@@ -64,7 +64,9 @@
defined(__s390x__) || \
defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__)
-# define LONG64 /* 32/64-bit
architecture */
+# if !defined(__ILP32__) /* amd64-x32 is 32bit */
+# define LONG64 /* 32/64-bit
architecture */
+# endif /* !__ILP32__ */
# endif
/*
So yes, we do need it in the book. And I see Igor has already
fixed it :)
ĸen
--
das eine Mal als Tragödie, das andere Mal als Farce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page