[Thunar-dev] Problems building new Thunar snapshot
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Wed Nov 9 20:32:26 CET 2005
Erik Harrison wrote:
> Hey Benny. Hate to rain on your parade.
>
> Building the new Thunar snapshot causes it to fail with these warnings:
> tdb.c: In function `tdb_write':
> tdb.c:398: warning: implicit declaration of function `pwrite'
> tdb.c: In function `tdb_read':
> tdb.c:421: warning: implicit declaration of function `pread'
> make[2]: *** [tdb.lo] Error 1
> make[2]: Leaving directory `/home/erik/tmp/Thunar-0.1.3svn-r00136/tdb'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/erik/tmp/Thunar-0.1.3svn-r00136'
> make: *** [all] Error 2
>
> I'm not sure what the cause is, but I can mask the warnings by
> undefining HAVE_PREAD and HAVE_PWRITE at the top of tdb.c, and using
> lseek instead. But that leads to more warnings farther down the line.
Add
#define _XOPEN_SOURCE 500
to the top of tdb.c and check if that fixes the problem.
> Building with --disable-debug bypasses all of that, and compilation
> succeeds, but then I get a lot of linker errors.
>
> .libs/libthunar_vfs_1_la-thunar-vfs-job.o(.text+0x0): In function
> `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:247: multiple definition of `g_bit_nth_lsf'
Meh. Somehow your compiler/linker combo doesn't handle extern inline
functions properly. What versions of gcc/binutils do you use?
> Thanks
> Erik
Benedikt
More information about the Thunar-dev
mailing list