Hey, when I run make on ubuntu 10.04 I get the follow error. First is the configure output
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 for a BSD-compatible install... /usr/bin/install -c
checking for curl_easy_init in -lcurl... yes
checking for fuse_main in -lfuse... yes
checking for xmlCreatePushParserCtxt in -lxml2... yes
checking for magic_buffer in -lmagic... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking for fuse.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XML... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ftruncate... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
run make:
gcc -g -O2 -I/usr/include/libxml2 -o cloudfuse cloudfsapi.c cloudfuse.c -lxml2 -lfuse -lcurl -lxml2
cloudfsapi.c: In function ‘object_write_fp’:
cloudfsapi.c:240: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
cloudfuse.c: In function ‘cfs_fgetattr’:
cloudfuse.c:218: warning: cast to pointer from integer of different size
cloudfuse.c: In function ‘cfs_read’:
cloudfuse.c:284: warning: cast to pointer from integer of different size
cloudfuse.c: In function ‘cfs_flush’:
cloudfuse.c:289: warning: cast to pointer from integer of different size
cloudfuse.c: In function ‘cfs_release’:
cloudfuse.c:310: warning: cast to pointer from integer of different size
cloudfuse.c: In function ‘cfs_ftruncate’:
cloudfuse.c:326: warning: cast to pointer from integer of different size
cloudfuse.c:326: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
cloudfuse.c: In function ‘cfs_write’:
cloudfuse.c:335: warning: cast to pointer from integer of different size
I've tried both libcurl libraries that apt-get has. The configure doesnt seem to find anything wrong with the libraries though.
Hey, when I run make on ubuntu 10.04 I get the follow error. First is the configure output
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 for a BSD-compatible install... /usr/bin/install -c checking for curl_easy_init in -lcurl... yes checking for fuse_main in -lfuse... yes checking for xmlCreatePushParserCtxt in -lxml2... yes checking for magic_buffer in -lmagic... no checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -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 working alloca.h... yes checking for alloca... yes checking for ANSI C header files... (cached) yes checking curl/curl.h usability... yes checking curl/curl.h presence... yes checking for curl/curl.h... yes checking for fuse.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for strings.h... (cached) yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XML... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether time.h and sys/time.h may both be included... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ftruncate... yes checking for memmove... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h
run make: gcc -g -O2 -I/usr/include/libxml2 -o cloudfuse cloudfsapi.c cloudfuse.c -lxml2 -lfuse -lcurl -lxml2
cloudfsapi.c: In function ‘object_write_fp’: cloudfsapi.c:240: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result cloudfuse.c: In function ‘cfs_fgetattr’: cloudfuse.c:218: warning: cast to pointer from integer of different size cloudfuse.c: In function ‘cfs_read’: cloudfuse.c:284: warning: cast to pointer from integer of different size cloudfuse.c: In function ‘cfs_flush’: cloudfuse.c:289: warning: cast to pointer from integer of different size cloudfuse.c: In function ‘cfs_release’: cloudfuse.c:310: warning: cast to pointer from integer of different size cloudfuse.c: In function ‘cfs_ftruncate’: cloudfuse.c:326: warning: cast to pointer from integer of different size cloudfuse.c:326: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result cloudfuse.c: In function ‘cfs_write’: cloudfuse.c:335: warning: cast to pointer from integer of different size
I've tried both libcurl libraries that apt-get has. The configure doesnt seem to find anything wrong with the libraries though.
Cheers