View Single Post
  #3   (View Single Post)  
Old 22nd May 2009
Har_Don Har_Don is offline
New User
 
Join Date: May 2008
Posts: 6
Default

Wow, for a second there I thought it worked; it went through the configure-process, but then it failed when I issued make (and gmake).

Code:
>> ~/build/mp3fs-0.13 gmake
Making all in src
gmake[1]: Entering directory `/usr/home/jon/build/mp3fs-0.13/src'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mp3fs\" -DVERSION=\"0.13\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse    -I/usr/local/include -MT mp3fs-mp3fs.o -MD -MP -MF .deps/mp3fs-mp3fs.Tpo -c -o mp3fs-mp3fs.o `test -f 'mp3fs.c' || echo './'`mp3fs.c
In file included from /usr/local/include/fuse/fuse.h:26,
                 from mp3fs.c:25:
/usr/local/include/fuse/fuse_common.h:212:8: error: #error On FreeBSD API version 25 or greater must be used
mp3fs.c:33:24: error: sys/statfs.h: No such file or directory
mp3fs.c:198: warning: 'struct statfs' declared inside parameter list
mp3fs.c:198: warning: its scope is only this definition or declaration, which is probably not what you want
mp3fs.c:228: error: variable 'mp3fs_ops' has initializer but incomplete type
mp3fs.c:229: error: unknown field 'getattr' specified in initializer
mp3fs.c:229: warning: excess elements in struct initializer
mp3fs.c:229: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:230: error: unknown field 'readlink' specified in initializer
mp3fs.c:230: warning: excess elements in struct initializer
mp3fs.c:230: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:231: error: unknown field 'readdir' specified in initializer
mp3fs.c:231: warning: excess elements in struct initializer
mp3fs.c:231: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:232: error: unknown field 'open' specified in initializer
mp3fs.c:232: warning: excess elements in struct initializer
mp3fs.c:232: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:233: error: unknown field 'read' specified in initializer
mp3fs.c:233: warning: excess elements in struct initializer
mp3fs.c:233: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:234: error: unknown field 'statfs' specified in initializer
mp3fs.c:234: warning: excess elements in struct initializer
mp3fs.c:234: warning: (near initialization for 'mp3fs_ops')
mp3fs.c:235: error: unknown field 'release' specified in initializer
mp3fs.c:235: warning: excess elements in struct initializer
mp3fs.c:235: warning: (near initialization for 'mp3fs_ops')
mp3fs.c: In function 'main':
mp3fs.c:272: error: invalid application of 'sizeof' to incomplete type 'struct fuse_operations_compat22' 
gmake[1]: *** [mp3fs-mp3fs.o] Error 1
gmake[1]: Leaving directory `/usr/home/jon/build/mp3fs-0.13/src'
gmake: *** [all-recursive] Error 1
Same error with either make or gmake.

I then changed line 25 in src/mp3fs.c:
Code:
#define FUSE_USE_VERSION 22
=>
#define FUSE_USE_VERSION 25
ran make clean and the configure-line again,
but that resulted in this error:
Code:
>> ~/build/mp3fs-0.13 gmake
Making all in src
gmake[1]: Entering directory `/usr/home/jon/build/mp3fs-0.13/src'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mp3fs\" -DVERSION=\"0.13\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse    -I/usr/local/include -MT mp3fs-mp3fs.o -MD -MP -MF .deps/mp3fs-mp3fs.Tpo -c -o mp3fs-mp3fs.o `test -f 'mp3fs.c' || echo './'`mp3fs.c
mp3fs.c:33:24: error: sys/statfs.h: No such file or directory
mp3fs.c: In function 'mp3fs_read':
mp3fs.c:189: warning: cast to pointer from integer of different size
mp3fs.c: At top level:
mp3fs.c:198: warning: 'struct statfs' declared inside parameter list
mp3fs.c:198: warning: its scope is only this definition or declaration, which is probably not what you want
mp3fs.c: In function 'mp3fs_release':
mp3fs.c:219: warning: cast to pointer from integer of different size
mp3fs.c: At top level:
mp3fs.c:234: warning: initialization from incompatible pointer type
gmake[1]: *** [mp3fs-mp3fs.o] Error 1
gmake[1]: Leaving directory `/usr/home/jon/build/mp3fs-0.13/src'
gmake: *** [all-recursive] Error 1
statfs ibcs2
Is this something I must compile into the kernel or as a module?
Code:
>> ~/build/mp3fs-0.13 find /* -name "*statfs.h*" -print
/usr/src/sys/i386/ibcs2/ibcs2_statfs.h
Seems like I might have to try that, and see what happens.

As for the making of a port, this is something I've never done before, and this looks like a bit more than a "Quick Port"
But it would definately be interesting to try. I can imagine quite a few people would find mp3fs useful.

The reason I am trying to install it is for use with firefly media server. Playback in iTunes is really shabby with wifi and flacs because firefly has to convert them into large .wav-files With mp3fs I could just have firefly read the mp3fs mountpoint instead.

Anyway, thanks much for helping, Carpetsmoker!
Special Thanks.

*edit* btw the system is a 7.2-RELEASE. with a custom kernel and all that.

Last edited by Har_Don; 22nd May 2009 at 11:23 PM. Reason: adding system info
Reply With Quote