From: SourceForge.net <no...@so...> - 2010-10-05 08:18:13
|
Bugs item #3081337, was opened at 2010-10-05 08:18 Message generated for change (Tracker Item Submitted) made by philpem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108797&aid=3081337&group_id=8797 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Philip Pemberton (philpem) Assigned to: Nobody/Anonymous (nobody) Summary: plpfuse fails to build on Linux x86_64 Initial Comment: When building plptools on a 64-bit Linux system, configure fails to find libfuse: checking fuse.h usability... no checking fuse.h presence... no checking for fuse.h... no checking for fuse_new in -lfuse... yes checking for supported FUSE API version... no The configure log shines a little more light on this: configure:19897: checking fuse.h usability configure:19897: gcc -c -g -O2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic conftest.c >&5 In file included from /usr/include/fuse/fuse.h:26, from /usr/include/fuse.h:9, from conftest.c:135: /usr/include/fuse/fuse_common.h:32: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! configure:19897: $? = 1 If you attempt to build plpfuse regardless, the same error occurs: make: Entering directory `/home/philpem/psion/plptools/plptools-1.0.10/plpfuse' g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc In file included from /usr/include/fuse/fuse.h:26, from /usr/include/fuse.h:9, from plpfuse.h:8, from rfsv_api.h:30, from main.cc:46: /usr/include/fuse/fuse_common.h:32: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! -- Workaround -- The configure script isn't using the right CFLAGS on x86_64. This patch works around the bug, though it may not be the right way to do it: --- configure.ac 2010-06-24 11:14:07.000000000 +0100 +++ ../plptools-1.0.10-mod/configure.ac 2010-10-04 23:37:04.000000000 +0100 @@ -27,8 +27,10 @@ [ if test $enableval = yes; then CFLAGS="-g" + CXXFLAGS="-g" if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -ggdb" + CXXFLAGS="$CXXFLAGS -ggdb" fi AC_MSG_RESULT(yes) AC_DEFINE(DEBUG, 1, [Define this to include debugging code.]) @@ -42,6 +44,7 @@ dnl Turn on additional compiler warnings if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic" + CXXFLAGS="$CXXFLAGS -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic" fi dnl NLS support @@ -108,6 +111,8 @@ AC_SUBST(LIBHISTORY) # FUSE for plpfuse +CFLAGS="$CFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" +CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" enable_fuse=yes AC_CHECK_HEADER(fuse.h,, enable_fuse=no) AC_CHECK_LIB(fuse,fuse_new, [true], enable_fuse=no) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108797&aid=3081337&group_id=8797 |