Hello, I was also able to get it to compile, after a few tries. I thought others might benefit from a few pointers. first, modify the source by adding the following line to the top (or anywhere in the first 50 or so lines): #define __off_t off_t
The compile command that worked for me was: g++ -Wall -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 - D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -L/usr/local/lib - lfuse -lcurl -lcrypto -I/opt/local/include/libxml2 -I/opt/local/ include -L/ opt/local/lib -lxml2 -lz -lpthread -L/opt/local/lib - liconv -lm -ggdb s3fs.cpp -o s3fs It should be noted that I had to install libxml2 for the above to work: #sudo port install libxml2 mount command: mkdir /Volumes/s3fs_mount_point ./s3fs bucket_name -o accessKeyId=secret -o secretAccessKey=more_secret -o allow_other /Volumes/s3fs_mount_point Experiences: It mounts fine, but when I go to copya file in, i get an error "Operation cannot be completed because you do not have sufficient privliges" however, the files are there, adn show up, even on other mounts. The odd thing is that I cannot see any of the other files that are in my bucket. I tried mounting as sudo, but it didn't help. I'm not sure if this is a s3fs issue or a mac issue or a macfuse issue. If anyone has any suggestions, I'd love to get this working. Thanks, Michael On Oct 14, 7:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > glad you got it compiling on a mac! that's something on my todo list! > > I'll add -lcrypto to the makefile... I guess openssl gets linked in > implicitly on fedora?!? > > On Oct 14, 1:14 am, Roberto Saccon <[EMAIL PROTECTED]> wrote: > > > thanks very much, now it compiled ! > > > On Oct 14, 1:53 am, Amit Singh <[EMAIL PROTECTED]> wrote: > > > > Try -lcrypto > > > > On Oct 13, 8:34 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > > > > > ok, so I started my legwork, first added the definition you suggested > > > > and I got this > > > > > ------------------------------- > > > > > rsmac:~/code/s3fs rsaccon$ make > > > > g++ -Wall -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 - > > > > D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -L/usr/local/lib - > > > > lfuse -lcurl -I/opt/local/include/libxml2 -I/opt/local/include -L/ > > > > opt/local/lib -lxml2 -lz -lpthread -L/opt/local/lib -liconv -lm -ggdb > > > > s3fs.cpp -o s3fs > > > > s3fs.cpp: In function 'int s3fs_read(const char*, char*, size_t, > > > > off_t, fuse_file_info*)': > > > > s3fs.cpp:497: warning: format '%u' expects type 'unsigned int', but > > > > argument 3 has type 'size_t' > > > > s3fs.cpp:497: warning: format '%u' expects type 'unsigned int', but > > > > argument 4 has type 'size_t' > > > > /usr/bin/ld: Undefined symbols: > > > > _BIO_ctrl > > > > _BIO_f_base64 > > > > _BIO_free_all > > > > _BIO_new > > > > _BIO_push > > > > _BIO_s_mem > > > > _BIO_write > > > > _EVP_sha1 > > > > _HMAC > > > > collect2: ld returned 1 exit status > > > > > ------------------------------------- > > > > > that looks to me like it can't find OpenSSL lib, so I added "-L/usr/ > > > > lib" (that is where I found libssl.dynlib at my machine) to the > > > > compiling options, unfortunately the error remained the same. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---
