[Thunar-dev] Problems building new Thunar snapshot

Erik Harrison erikharrison at gmail.com
Wed Nov 9 22:31:25 CET 2005


On 11/9/05, Benedikt Meurer <benedikt.meurer at unix-ag.uni-siegen.de> wrote:
> 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.

Indeed, it does fix the problem building tdb. I should have done that myself.

In file included from ../thunar-vfs/thunar-vfs-info.h:28,
                 from ../thunar-vfs/thunar-vfs.h:27,
                 from thunar-vfs-enum-types.c:6:
../thunar-vfs/thunar-vfs-mime-info.h: In function `thunar_vfs_mime_info_ref':
../thunar-vfs/thunar-vfs-mime-info.h:83: warning: implicit declaration
of function `exo_atomic_inc'
make[3]: *** [libthunar_vfs_1_la-thunar-vfs-enum-types.lo] Error 1
make[3]: Leaving directory `/home/erik/tmp/Thunar-0.1.3svn-r00136/thunar-vfs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/erik/tmp/Thunar-0.1.3svn-r00136/thunar-vfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/erik/tmp/Thunar-0.1.3svn-r00136'
make: *** [all] Error 2

Is my exo version out of date?

>
> > 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?

binutils 2.15
GCC 3.4.3 and I also tried 3.3.4

>
> > Thanks
> > Erik
>
> Benedikt
> _______________________________________________
> Thunar-dev mailing list
> Thunar-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/thunar-dev
>


--
Erik

"If Beethoven had been killed in a plane crash at the age of 22, it
would have changed the history of music... and of aviation."



More information about the Thunar-dev mailing list