[Thunar-dev] thunar-r22641 doesn't compile on OpenBSD-4.0-beta

Landry landry at fr.homeunix.org
Fri Aug 4 09:37:50 CEST 2006


Erik Harrison wrote:
> On 8/3/06, Landry <landry at fr.homeunix.org> wrote:
>> Hello,
>>
>> current svn doesn't compile, failling on this error :
>>
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DEXO_API_SUBJECT_TO_CHANGE
>> -DEXO_DISABLE_DEPRECATED -DG_LOG_DOMAIN=\"thunar-vfs\"
>> -DLIBEXECDIR=\"/local/libexec\" -DSN_API_NOT_YET_FROZEN
>> -DTHUNAR_VFS_COMPILATION -DTHUNAR_VFS_VERSION_API=\"1\"
>> -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
>> -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/freetype2
>> -I/usr/X11R6/include -I/usr/local/include/cairo
>> -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0
>> -I/usr/local/lib/glib-2.0/include -I/local/include/exo-0.3
>> -I/local/include/xfce4 -pthread -I/usr/local/include/glib-2.0
>> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libpng
>> -I/usr/local/include/startup-notification-1.0 -fno-strict-aliasing
>> -Werror -Wall -I/usr/local/include -MT
>> libthunar_vfs_1_la-thunar-vfs-os-bsd.lo -MD -MP -MF
>> .deps/libthunar_vfs_1_la-thunar-vfs-os-bsd.Tpo -c thunar-vfs-os-bsd.c
>> -fPIC -DPIC -o .libs/libthunar_vfs_1_la-thunar-vfs-os-bsd.o
>> thunar-vfs-os-bsd.c: In function `_thunar_vfs_os_is_dir_empty':
>> thunar-vfs-os-bsd.c:84: warning: implicit declaration of function `getdents'
>> thunar-vfs-os-bsd.c:107: error: `DT_WHT' undeclared (first use in this
>> function)
>> thunar-vfs-os-bsd.c:107: error: (Each undeclared identifier is reported
>> only once
>> thunar-vfs-os-bsd.c:107: error: for each function it appears in.)
>> thunar-vfs-os-bsd.c: In function `_thunar_vfs_os_scandir':
>> thunar-vfs-os-bsd.c:252: error: `DT_WHT' undeclared (first use in this
>> function)
>> gmake[3]: *** [libthunar_vfs_1_la-thunar-vfs-os-bsd.lo] Error 1
>>
> 
> A quick googling seems to imply that OpenBSD doesn't define DT_WHT
Sorry, i should have googled first, you're right. Where did you find 
this reference ?

I compiled Thunar several times before, when does this thing has been 
added ?
So, what's the workaround ? If i add an ugly
---
#ifndef DT_WHT
#define DT_WHT 14
#endif
---

on top of thunar-vfs-os-bsd.c, it still fails on
---
thunar-vfs-os-bsd.c:88: warning: implicit declaration of function `getdents'
---

man -k getdents returns nothing appropriate, so i think this function 
doesn't exist on openbsd.

Any idea ?

Landry



More information about the Thunar-dev mailing list