Closed GoogleCodeExporter closed 9 years ago
The problem may be that you have curl installed in binary form but don't have
the curl header files installed. See if there is a "curl-devel" package you can
install.
Also, check config.log... find the text "CURLOPT_HTTP_CONTENT_DECODING" and see
why the test program failed to compile.
Here is the test program from configure.ac:
#include <curl/curl.h>
long x = CURLOPT_HTTP_CONTENT_DECODING;
Original comment by archie.c...@gmail.com
on 7 Jan 2015 at 4:30
Improved error message in r501.
Original comment by archie.c...@gmail.com
on 8 Jan 2015 at 1:43
Hi
Good morning
Thank you for accepting my request.
I will do the same and retry, if found any issue, will contact you later.
--
Thanks and Regards,
Aafak
[image: cid:image001.png@01CF7E5A.8A69F530]
Plot No. : 2799 & 2800, Srinidhi Bldg, 3rd Floor,
27th Main, Sector – 1, HSR Layout,
Bangalore – 560102, Call: (91)-80-2258-2804
www.cloudbyte.com
Original comment by aafak.mo...@cloudbyte.com
on 8 Jan 2015 at 3:43
HI
As i noticed that in my setup curl dir is located in /usr/local/include but i
think it is looking in /usr/include, so to resolve it i just moved the entire
curl directory to the /usr/include and also expat.h and then execute configure
script, fixed that error
First of tell me that, is it a right way to copy the curl dir from
/usr/local/include
to /usr/include?
but got the following output which is not seems to be succeeded sucessfully
root@Es140-Nov29:~/aafak/s3backer-1.3.7 # ./configure
./configure:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... scripts/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for FUSE... yes
checking for curl_version in -lcurl... yes
checking for BIO_new in -lcrypto... yes
checking for XML_ParserCreate in -lexpat... yes
checking for fuse_version in -lfuse... yes
checking for compressBound in -lz... yes
checking for fallocate() support in fuse... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 whether fdatasync is declared... no
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking openssl/bio.h usability... yes
checking openssl/bio.h presence... yes
checking for openssl/bio.h... yes
checking openssl/buffer.h usability... yes
checking openssl/buffer.h presence... yes
checking for openssl/buffer.h... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking openssl/hmac.h usability... yes
checking openssl/hmac.h presence... yes
checking for openssl/hmac.h... yes
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating debian/Makefile
config.status: creating s3backer.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Then i tried to make it , got following error
root@Es140-Nov29:~/aafak/s3backer-1.3.7 # make
make all-recursive
Making all in debian
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include/fuse -D_FILE_OFFSET_BITS=64 -g
-O3 -pipe -Wall -Waggregate-return -Wcast-align -Wchar-subscripts -Wcomment
-Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wredundant-decls
-Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-strings
-Wshadow -Wstrict-prototypes -Wcast-qual -I/usr/local/include/fuse
-D_FILE_OFFSET_BITS=64 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from main.c:25:
s3backer.h:122: error: expected declaration specifiers or '...' before 'u_int'
s3backer.h:157: error: expected declaration specifiers or '...' before 'u_char'
s3backer.h:157: warning: type defaults to 'int' in declaration of 'u_char'
s3backer.h:157: error: expected ';', ',' or ')' before '*' token
s3backer.h:164: error: expected ';' before 'int'
In file included from main.c:26:
block_cache.h:27: error: expected specifier-qualifier-list before 'u_int'
block_cache.h:43: error: expected specifier-qualifier-list before 'u_int'
In file included from main.c:27:
ec_protect.h:27: error: expected specifier-qualifier-list before 'u_int'
ec_protect.h:36: error: expected specifier-qualifier-list before 'u_int'
In file included from main.c:28:
fuse_ops.h:42: error: expected specifier-qualifier-list before 'u_int'
In file included from main.c:29:
http_io.h:41: error: expected specifier-qualifier-list before 'u_int'
http_io.h:61: error: expected specifier-qualifier-list before 'u_int'
http_io.h:68: error: expected specifier-qualifier-list before 'u_int'
In file included from main.c:30:
s3b_config.h:38: error: expected specifier-qualifier-list before 'u_int'
main.c: In function 'main':
main.c:45: error: 'struct s3b_config' has no member named 'erase'
main.c:52: error: 'struct s3b_config' has no member named 'reset'
main.c:62: error: 'struct s3b_config' has no member named 'log'
main.c:62: error: 'u_long' undeclared (first use in this function)
main.c:62: error: (Each undeclared identifier is reported only once
main.c:62: error: for each function it appears in.)
main.c:62: error: expected ')' before 'getpid'
main.c:63: error: 'struct s3b_config' has no member named 'fuse_args'
main.c:63: error: 'struct s3b_config' has no member named 'fuse_args'
*** [main.o] Error code 1
Stop in /root/aafak/s3backer-1.3.7.
*** [all-recursive] Error code 1
Stop in /root/aafak/s3backer-1.3.7.
*** [all] Error code 1
Stop in /root/aafak/s3backer-1.3.7.
root@Es140-Nov29:~/aafak/s3backer-1.3.7 #
Other info:
root@Es140-Nov29:~/aafak/s3backer-1.3.7 # vi config.h
/* FUSE fallocate() support */
#define FUSE_FALLOCATE 0
/* FUSE API version */
#define FUSE_USE_VERSION 26
/* Define to 1 if you have the <assert.h> header file. */
#define HAVE_ASSERT_H 1
/* Define to 1 if you have the <ctype.h> header file. */
#define HAVE_CTYPE_H 1
/* Define to 1 if you have the <curl/curl.h> header file. */
#define HAVE_CURL_CURL_H 1
/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you
don't. */
#define HAVE_DECL_FDATASYNC 0
rest are having 1
config.logs:..................................
I attached the config logs
Original comment by aafak.mo...@cloudbyte.com
on 8 Jan 2015 at 7:28
Attachments:
No you should instead run ./configure with --prefix=/usr/local or whatever.
If you are using FreeBSD, you should probably get s3backer from the FreeBSD
ports collection, which has already solved this problem for you.
Original comment by archie.c...@gmail.com
on 8 Jan 2015 at 2:06
Thanks for helping, but it does not work using ./configure
--prefix=/usr/local/include also giving the same error "configure: error:
version of curl is not 7.16.2 or later"
ok let it be , i will manage in that way, i have another problem after install
i did the following:
root@freebsd9:~/aafak # mkdir demo2.mnt s3b2.mnt
root@freebsd9:~/aafak # s3backer --readOnly s3backer-demo s3b2.mnt
s3backer: auto-detecting block size and total file size...
s3backer: auto-detected block size=4k and total size=20m
root@freebsd9:~/aafak # cd /s3b2.mnt
/s3b2.mnt: No such file or directory.
root@freebsd9:~/aafak #
I could not found any file under s3b2.mnt(to perform loop back mount "mount -o
ro,loop s3b.mnt/file demo.mnt")
but in my linux machine, i did the same thing, found two files name as "file"
and "stats", later perform loopback mount
on s3b.mnt/file, everything gone successfully as you can see folloing command
root@linux-ubuntu:~# mkdir demo1.mnt s3b1.mnt
root@linux-ubuntu:~# s3backer --readOnly s3backer-demo s3b1.mnt
s3backer: auto-detecting block size and total file size...
s3backer: auto-detected block size=4k and total size=20m
root@linux-ubuntu:~# cd s3b1.mnt/
root@linux-ubuntu:~/s3b1.mnt# ls
file stats
root@linux-ubuntu:~/s3b1.mnt# mount -o ro,loop s3b.mnt/file demo.mnt
Please help me, what could be the problem in freebsd9 ?
I will be very thankful to you guys, because i blocked at last step.
I don't know which logs i have to provide
providing config.log only
Original comment by aafak.mo...@cloudbyte.com
on 9 Jan 2015 at 11:07
Attachments:
I said "./configure --prefix=/usr/local" not "./configure
--prefix=/usr/local/include".
In any case, this is not a s3backer specific problem, so I'm closing this issue.
Original comment by archie.c...@gmail.com
on 9 Jan 2015 at 4:35
Original issue reported on code.google.com by
aafak.mo...@cloudbyte.com
on 7 Jan 2015 at 11:01