From: Tony S. <tsh...@os...> - 2007-04-13 18:56:10
|
Nevermind, I got it. Your code appears to be fine, it's just the default CFLAGS includes -Wall -Werror. I removed the -Wall and it built fine. Weirdness. Is this fixable? Tony Shadwick wrote: > Well, figured this out partially. time.h on freebsd doesn't define the > struct utimbuf. utime.h does, however including it with or without > time.h makes no difference, I get the same error. :\ > > Tony Shadwick > OSS Solutions > > Tony Shadwick wrote: >> Yes, there is Fuse for FreeBSD. I've built it from ports, and it's >> using API 2.6. >> >> Anyhooo....../configure is okay (after editing fuse.h to report the >> correct API, apparently it has a backwards compat mode to version 2.1 >> and defaults to that. Changing to 2.6 per the instructions works >> fine!), then when I attempt to do make or gmake, I get this error: >> >> manager# gmake >> gmake all-am >> gmake[1]: Entering directory `/usr/local/src/mysqlfs-0.4.0-rc1' >> if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/local/include >> -L/usr/lib -L/usr/local/lib -I/usr/include -I/usr/local/include >> -L/usr/lib -L/usr/local/lib -I/usr/local/include -Wall -Werror >> -I/usr/local/include/mysql -Wall -Werror -MT query.o -MD -MP -MF >> ".deps/query.Tpo" -c -o query.o query.c; \ >> then mv -f ".deps/query.Tpo" ".deps/query.Po"; else rm -f >> ".deps/query.Tpo"; exit 1; fi >> query.c: In function `query_utime': >> query.c:439: warning: long int format, time_t arg (arg 4) >> query.c:439: warning: long int format, time_t arg (arg 5) >> query.c:439: warning: long int format, time_t arg (arg 4) >> query.c:439: warning: long int format, time_t arg (arg 5) >> gmake[1]: *** [query.o] Error 1 >> gmake[1]: Leaving directory `/usr/local/src/mysqlfs-0.4.0-rc1' >> gmake: *** [all] Error 2 >> >> The code section it's complaining about is below. The last line is line >> 439. >> >> --------- >> >> int query_utime(MYSQL *mysql, long inode, struct utimbuf *time) >> { >> int ret; >> char sql[SQL_MAX]; >> >> snprintf(sql, SQL_MAX, >> "UPDATE inodes " >> "SET atime=%ld, mtime=%ld " >> "WHERE inode=%lu", >> time->actime, time->modtime, inode); >> >> -------- >> >> It appears to not like time->actime and time->modtime. Any idea what >> might cause this or how to debug it/fix it up? >> >> Thanks! >> >> Tony Shadwick >> OSS Solutions >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Mysqlfs-general mailing list >> Mys...@li... >> https://lists.sourceforge.net/lists/listinfo/mysqlfs-general > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Mysqlfs-general mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysqlfs-general |