aastete / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

Errors compiling fuse-2.6.1 after patching with fuse-2.6.1-macosx.patch #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.patch -p1 < /app/macfuse/libfuse/fuse-2.6.1-macosx.patch 

patch 
patching file example/fusexmp.c
patching file example/fusexmp_fh.c
patching file include/fuse.h
patching file lib/Makefile.in
patching file lib/fuse.c
patching file lib/fuse_loop_mt.c
patching file lib/mount_bsd.c
patching file lib/ulockmgr.c

2.CFLAGS="-D_FreeBSD_=10 -O -g -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk" LDFLAGS="-arch i386 -arch ppc" ./configure
--prefix=/usr/local --disable-dependency-tracking

 checking build system type... powerpc-apple-darwin8.8.0
checking host system type... powerpc-apple-darwin8.8.0
checking target system type... powerpc-apple-darwin8.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognise dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) none
checking whether gcc and cc understand -c and -o together... yes
checking for fork... yes
checking for setxattr... yes
checking for fdatasync... no
checking for struct stat.st_atim... no
checking for struct stat.st_atimespec... yes
checking for library containing clock_gettime... no
checking selinux/selinux.h usability... no
checking selinux/selinux.h presence... no
checking for selinux/selinux.h... no
configure: creating ./config.status
config.status: creating fuse.pc
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating util/Makefile
config.status: creating example/Makefile
config.status: creating include/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

3. make

What do you see instead?

Making all in include
make  all-am
Making all in lib
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../include  -I../include -DFUSERMOUNT_DIR=\"/usr/local/bin\"
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26   -D_FreeBSD_=10
-O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c -o
fuse.lo fuse.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DFUSERMOUNT_DIR=\"/usr/local/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-DFUSE_USE_VERSION=26 -D_FreeBSD_=10 -O -g -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -c fuse.c  -fno-common -DPIC -o .libs/fuse.o
fuse.c: In function 'curr_time':
fuse.c:742: error: nested functions are disabled, use -fnested-functions to
re-enable
fuse.c:742: error: syntax error before 'clockid'
fuse.c:743: error: 'clockid' undeclared (first use in this function)
fuse.c:743: error: (Each undeclared identifier is reported only once
fuse.c:743: error: for each function it appears in.)
fuse.c:745: error: 'CLOCK_REALTIME' undeclared (first use in this function)
fuse.c: In function 'curr_time':
fuse.c:742: error: nested functions are disabled, use -fnested-functions to
re-enable
fuse.c:742: error: syntax error before 'clockid'
fuse.c:743: error: 'clockid' undeclared (first use in this function)
fuse.c:743: error: (Each undeclared identifier is reported only once
fuse.c:743: error: for each function it appears in.)
fuse.c:745: error: 'CLOCK_REALTIME' undeclared (first use in this function)
In file included from fuse.c:2827:
../include/fuse_compat.h:68:24: error: sys/statfs.h: No such file or directory
In file included from fuse.c:2827:
../include/fuse_compat.h: At top level:
../include/fuse_compat.h:90: warning: 'struct statfs' declared inside
parameter list
../include/fuse_compat.h:90: warning: its scope is only this definition or
declaration, which is probably not what you want
../include/fuse_compat.h:139: warning: 'struct statfs' declared inside
parameter list
fuse.c:2912: warning: 'struct statfs' declared inside parameter list
fuse.c: In function 'convert_statfs_old':
fuse.c:2914: error: dereferencing pointer to incomplete type
fuse.c:2915: error: dereferencing pointer to incomplete type
fuse.c:2916: error: dereferencing pointer to incomplete type
fuse.c:2917: error: dereferencing pointer to incomplete type
fuse.c:2918: error: dereferencing pointer to incomplete type
fuse.c:2919: error: dereferencing pointer to incomplete type
fuse.c:2920: error: dereferencing pointer to incomplete type
fuse.c: In function 'fuse_compat_statfs':
fuse.c:2932: error: storage size of 'oldbuf' isn't known
In file included from fuse.c:2827:
../include/fuse_compat.h:68:24: error: sys/statfs.h: No such file or directory
In file included from fuse.c:2827:
../include/fuse_compat.h: At top level:
../include/fuse_compat.h:90: warning: 'struct statfs' declared inside
parameter list
../include/fuse_compat.h:90: warning: its scope is only this definition or
declaration, which is probably not what you want
../include/fuse_compat.h:139: warning: 'struct statfs' declared inside
parameter list
fuse.c:2912: warning: 'struct statfs' declared inside parameter list
fuse.c: In function 'convert_statfs_old':
fuse.c:2914: error: dereferencing pointer to incomplete type
fuse.c:2915: error: dereferencing pointer to incomplete type
fuse.c:2916: error: dereferencing pointer to incomplete type
fuse.c:2917: error: dereferencing pointer to incomplete type
fuse.c:2918: error: dereferencing pointer to incomplete type
fuse.c:2919: error: dereferencing pointer to incomplete type
fuse.c:2920: error: dereferencing pointer to incomplete type
fuse.c: In function 'fuse_compat_statfs':
fuse.c:2932: error: storage size of 'oldbuf' isn't known
lipo: can't figure out the architecture type of: /var/tmp//ccswaeVk.out
make[1]: *** [fuse.lo] Error 1
make: *** [all-recursive] Error 1

On what operating system?

10.4.8 ppc Xcode 2.4.1

Original issue reported on code.google.com by wkm...@gmail.com on 14 Jan 2007 at 1:17

GoogleCodeExporter commented 8 years ago
It's __FreeBSD__=10, not _FreeBSD_=10.

Original comment by si...@gmail.com on 14 Jan 2007 at 1:31

GoogleCodeExporter commented 8 years ago

Original comment by si...@gmail.com on 14 Jan 2007 at 7:21