NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mfe_
Mar 04, 2012Tutor
cannt compile curlftpfs-0.9.2
Hello,
[Edit] Binaries of curlftps and installation instruction [/Edit]
curlftpfs seems to be very interesting because you will be able to mount ftp locations. http://curlftpfs.sourceforge.net/ for more informations.
I installed all dependencies like glib.
Its located in
I also set the variables of GLIB_CFLAGS and GLIB_LIBS with export variable=path
When compiling it with ./configure --build='sparc-linux' it breaks here:
I used the newest glib-2.30.2 version. What can i try else?
greetings
[Edit] Binaries of curlftps and installation instruction [/Edit]
curlftpfs seems to be very interesting because you will be able to mount ftp locations. http://curlftpfs.sourceforge.net/ for more informations.
I installed all dependencies like glib.
Its located in
ls /usr/local/lib/libglib-2.0.
libglib-2.0.la libglib-2.0.so libglib-2.0.so.0 libglib-2.0.so.0.3000.2
I also set the variables of GLIB_CFLAGS and GLIB_LIBS with export variable=path
echo $GLIB_CFLAGS
/usr/local/lib/
echo $GLIB_LIBS
/usr/local/lib/
When compiling it with ./configure --build='sparc-linux' it breaks here:
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... no
checking for GLIB... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details.
fes-a120d19nas:/backup/curlftpfs-0.9.2#
I used the newest glib-2.30.2 version. What can i try else?
greetings
14 Replies
Replies have been turned off for this discussion
- WhoCares_MentorInstall the needed version of pkg-config as suggested by the configure script would be my first guess.
-Stefan - mfe_TutorThanks!
After installing pkgconfig-0.16.0.tar.gz curl passes the GLIB check. Now some new dependencies arise. I will report when curl is working :)
greetings - mfe_TutorBad news :(
configure works but when making i'll get this error:fes-a120d19nas:/backup/curlftpfs-0.9.2# make
make all-recursive
make[1]: Entering directory `/c/backup/curlftpfs-0.9.2'
Making all in compat
make[2]: Entering directory `/c/backup/curlftpfs-0.9.2/compat'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -W -Wno-sign-compare -D_REENTRANT /usr/local/lib/ -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -I/usr/local/include -Icompat -I../compat -MT fuse_opt.lo -MD -MP -MF ".deps/fuse_opt.Tpo" -c -o fuse_opt.lo fuse_opt.c; \
then mv -f ".deps/fuse_opt.Tpo" ".deps/fuse_opt.Plo"; else rm -f ".deps/fuse_opt.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -W -Wno-sign-compare -D_REENTRANT /usr/local/lib/ -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -I/usr/local/include -Icompat -I../compat -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c fuse_opt.c -fPIC -DPIC -o .libs/fuse_opt.o
gcc: /usr/local/lib/: linker input file unused because linking not done
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -W -Wno-sign-compare -D_REENTRANT /usr/local/lib/ -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -I/usr/local/include -Icompat -I../compat -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c fuse_opt.c -o fuse_opt.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -W -Wno-sign-compare -D_REENTRANT /usr/local/lib/ -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -I/usr/local/include -Icompat -I../compat -o libcompat.la fuse_opt.lo /usr/local/lib/ -pthread -L/usr/local/lib -lfuse -lrt -ldl -L/usr/local/lib -lcurl
ar cru .libs/libcompat.a .libs/fuse_opt.o
ranlib .libs/libcompat.a
creating libcompat.la
(cd .libs && rm -f libcompat.la && ln -s ../libcompat.la libcompat.la)
make[2]: Leaving directory `/c/backup/curlftpfs-0.9.2/compat'
Making all in doc
make[2]: Entering directory `/c/backup/curlftpfs-0.9.2/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/backup/curlftpfs-0.9.2/doc'
make[2]: Entering directory `/c/backup/curlftpfs-0.9.2'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -g -O2 -Wall -W -Wno-sign-compare -D_REENTRANT /usr/local/lib/ -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse -I/usr/local/include -Icompat -I../compat -MT cache.o -MD -MP -MF ".deps/cache.Tpo" -c -o cache.o cache.c; \
then mv -f ".deps/cache.Tpo" ".deps/cache.Po"; else rm -f ".deps/cache.Tpo"; exit 1; fi
cache.c:14:18: error: glib.h: No such file or directory
cache.c:23: error: expected specifier-qualifier-list before âGHashTableâ
cache.c:45: error: expected specifier-qualifier-list before âGPtrArrayâ
cache.c:48: error: expected â)â before ânode_â
cache.c: In function âcache_clean_entryâ:
cache.c:59: error: âTRUEâ undeclared (first use in this function)
cache.c:59: error: (Each undeclared identifier is reported only once
cache.c:59: error: for each function it appears in.)
cache.c:61: error: âFALSEâ undeclared (first use in this function)
cache.c: In function âcache_cleanâ:
cache.c:67: error: âstruct cacheâ has no member named âlast_cleanedâ
cache.c:68: warning: implicit declaration of function âg_hash_table_sizeâ
cache.c:68: error: âstruct cacheâ has no member named âtableâ
cache.c:69: error: âstruct cacheâ has no member named âlast_cleanedâ
cache.c:70: warning: implicit declaration of function âg_hash_table_foreach_removeâ
cache.c:70: error: âstruct cacheâ has no member named âtableâ
cache.c:71: error: âGHRFuncâ undeclared (first use in this function)
cache.c:71: error: expected â)â before âcache_clean_entryâ
cache.c:72: error: âstruct cacheâ has no member named âlast_cleanedâ
cache.c: In function âcache_lookupâ:
cache.c:78: warning: implicit declaration of function âg_hash_table_lookupâ
cache.c:78: error: âstruct cacheâ has no member named âtableâ
cache.c: In function âcache_purgeâ:
cache.c:83: warning: implicit declaration of function âg_hash_table_removeâ
cache.c:83: error: âstruct cacheâ has no member named âtableâ
cache.c: In function âcache_purge_parentâ:
cache.c:91: error: âstruct cacheâ has no member named âtableâ
cache.c:93: warning: implicit declaration of function âg_strndupâ
cache.c:93: warning: initialization makes pointer from integer without a cast
cache.c:95: warning: implicit declaration of function âg_freeâ
cache.c: In function âcache_invalidateâ:
cache.c:102: error: âstruct cacheâ has no member named âlockâ
cache.c:104: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_invalidate_dirâ:
cache.c:109: error: âstruct cacheâ has no member named âlockâ
cache.c:112: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_do_renameâ:
cache.c:117: error: âstruct cacheâ has no member named âlockâ
cache.c:122: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_getâ:
cache.c:129: warning: implicit declaration of function âg_strdupâ
cache.c:129: warning: initialization makes pointer from integer without a cast
cache.c:130: warning: implicit declaration of function âg_new0â
cache.c:130: error: expected expression before âstructâ
cache.c:130: warning: assignment makes pointer from integer without a cast
cache.c:131: warning: implicit declaration of function âg_hash_table_insertâ
cache.c:131: error: âstruct cacheâ has no member named âtableâ
cache.c: In function âcache_add_attrâ:
cache.c:141: error: âstruct cacheâ has no member named âlockâ
cache.c:154: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_add_dirâ:
cache.c:162: error: âstruct cacheâ has no member named âlockâ
cache.c:165: warning: implicit declaration of function âg_strfreevâ
cache.c:172: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_add_linkâ:
cache.c:187: error: âstruct cacheâ has no member named âlockâ
cache.c:191: warning: assignment makes pointer from integer without a cast
cache.c:197: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_get_attrâ:
cache.c:204: error: âstruct cacheâ has no member named âlockâ
cache.c:217: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_readlinkâ:
cache.c:239: error: âstruct cacheâ has no member named âlockâ
cache.c:246: error: âstruct cacheâ has no member named âlockâ
cache.c:250: error: âstruct cacheâ has no member named âlockâ
cache.c: In function âcache_dirfillâ:
cache.c:264: warning: implicit declaration of function âg_ptr_array_addâ
cache.c:264: error: âstruct fuse_cache_dirhandleâ has no member named âdirâ
cache.c:265: warning: implicit declaration of function âg_strdup_printfâ
cache.c:265: warning: assignment makes pointer from integer without a cast
cache.c: In function âcache_getdirâ:
cache.c:279: error: âstruct cacheâ has no member named âlockâ
cache.c:286: error: âstruct cacheâ has no member named âlockâ
cache.c:290: error: âstruct cacheâ has no member named âlockâ
cache.c:295: error: âstruct fuse_cache_dirhandleâ has no member named âdirâ
cache.c:295: warning: implicit declaration of function âg_ptr_array_newâ
cache.c:297: error: âstruct fuse_cache_dirhandleâ has no member named âdirâ
cache.c:298: error: âstruct fuse_cache_dirhandleâ has no member named âdirâ
cache.c:303: warning: implicit declaration of function âg_ptr_array_freeâ
cache.c:303: error: âstruct fuse_cache_dirhandleâ has no member named âdirâ
cache.c:303: error: âFALSEâ undeclared (first use in this function)
cache.c: In function âcache_initâ:
cache.c:521: error: âstruct cacheâ has no member named âlockâ
cache.c:522: error: âstruct cacheâ has no member named âtableâ
cache.c:522: warning: implicit declaration of function âg_hash_table_new_fullâ
cache.c:522: error: âg_str_hashâ undeclared (first use in this function)
cache.c:522: error: âg_str_equalâ undeclared (first use in this function)
cache.c:522: error: âg_freeâ undeclared (first use in this function)
cache.c:523: error: âfree_nodeâ undeclared (first use in this function)
cache.c:524: error: âstruct cacheâ has no member named âtableâ
cache.c: At top level:
cache.c:533: warning: implicit declaration of function âoffsetofâ
cache.c:533: error: expected expression before âstructâ
cache.c:533: error: initializer element is not constant
cache.c:533: error: (near initialization for âcache_opts[0].offsetâ)
cache.c:534: error: expected expression before âstructâ
cache.c:534: error: initializer element is not constant
cache.c:534: error: (near initialization for âcache_opts[1].offsetâ)
cache.c:535: error: expected expression before âstructâ
cache.c:535: error: initializer element is not constant
cache.c:535: error: (near initialization for âcache_opts[2].offsetâ)
cache.c:536: error: expected expression before âstructâ
cache.c:536: error: initializer element is not constant
cache.c:536: error: (near initialization for âcache_opts[3].offsetâ)
cache.c:537: error: expected expression before âstructâ
cache.c:537: error: initializer element is not constant
cache.c:537: error: (near initialization for âcache_opts[4].offsetâ)
cache.c:538: error: expected expression before âstructâ
cache.c:538: error: initializer element is not constant
cache.c:538: error: (near initialization for âcache_opts[5].offsetâ)
cache.c:539: error: expected expression before âstructâ
cache.c:539: error: initializer element is not constant
cache.c:539: error: (near initialization for âcache_opts[6].offsetâ)
cache.c:540: error: expected expression before âstructâ
cache.c:540: error: initializer element is not constant
cache.c:540: error: (near initialization for âcache_opts[7].offsetâ)
make[2]: *** [cache.o] Error 1
make[2]: Leaving directory `/c/backup/curlftpfs-0.9.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/backup/curlftpfs-0.9.2'
make: *** [all] Error 2
Any ideas to fix this? - WhoCares_MentorOn what platform are you trying to build this?
-Stefan - mfe_TutorOn my Readynas duo with c --version gcc (GCC) 4.3.6
- WhoCares_MentorSparc ? If so, how did you get gcc 4.3.6 up and running there?
-Stefan - mfe_TutorYes Sparc. I compiled gcc 4.3.6 (newer versions require mpc which requires a newer libc I remember).
- WhoCares_MentorWell, your basic problem seems to be this:
cache.c:14:18: error: glib.h: No such file or directory
Other than that there's not much I can say since I try to stick with the standard environment on Sparc (for now ;))
-Stefan - mfe_TutorHow can i found out where it's trying to include the glib.h?
The header is located atfes-:/backup/curlftpfs-0.9.2# ls /usr/local/include/glib-2.0/ -lah
total 128K
drwxr-sr-x 4 root 50 16K 2012-03-04 21:20 .
drwxrwsr-x 7 root 50 16K 2012-03-04 18:07 ..
drwxr-sr-x 2 root 50 16K 2012-03-04 21:19 glib
-rw-r--r-- 1 root 50 2.9K 2012-03-04 21:19 glib.h
-rw-r--r-- 1 root 50 1.5K 2012-03-04 21:19 glib-object.h
-rw-r--r-- 1 root 50 2.9K 2012-03-04 21:19 glib-unix.h
-rw-r--r-- 1 root 50 3.6K 2012-03-04 21:20 gmodule.h
drwxr-sr-x 2 root 50 16K 2012-03-04 21:20 gobject - WhoCares_MentorThen you somehow need to tell the compiler to also look in that location, which is generally done using the -I switch:
-I /usr/local/include/glib-2.0
-Stefan
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!