[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#669062: X segfaults in pthread() on kfreebsd

Robert Millan <rmh@debian.org> writes:
> El 18 d’abril de 2012 13:38, Julien Cristau <julien@cristau.org> ha escrit:
>> http://cgit.freedesktop.org/xorg/driver/xf86-video-vesa/commit/?id=1f84310ddf49778f776a39810aa98211c812e8ab
>> makes use of new API in libpciaccess that's not implemented on freebsd.
>> See
>> http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=58e87933b3286f33cdeedd3a6b21f4ea795bea47
>> and
>> http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=b56f9a84f3dff995a6901ffec6bcc161ec0245ad
>> for the linux/openbsd implementations.
>> A patch would be much appreciated.
> Thanks for the pointers.  I think attached patch should do it.
> Christoph, does this work for you?

Hm doesn't build for me 

In file included from ../../src/freebsd_pci.c:50:0:
../../src/pciaccess_private.h:48:2: warning: #warning O_CLOEXEC not available, please upgrade. [-Wcpp]
../../src/freebsd_pci.c: In function 'pci_device_freebsd_write':
../../src/freebsd_pci.c:250:9: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
../../src/freebsd_pci.c: In function 'pci_device_freebsd_probe':
../../src/freebsd_pci.c:346:32: warning: unused variable 'priv' [-Wunused-variable]
In file included from /usr/include/machine-amd64/bus.h:6:0,
                 from /usr/include/machine/bus.h:8,
                 from ../../src/freebsd_pci.c:567:
/usr/include/x86/bus.h: At top level:
/usr/include/x86/bus.h:144:33: error: expected ';', ',' or ')' before '__unused'
/usr/include/x86/bus.h:161:35: error: expected ';', ',' or ')' before '__unused'
/usr/include/x86/bus.h:176:39: error: expected ';', ',' or ')' before '__unused'
/usr/include/x86/bus.h:202:34: error: expected ';', ',' or ')' before '__unused'
/usr/include/x86/bus.h:1006:39: error: expected ';', ',' or ')' before '__unused'
In file included from /usr/include/machine/bus_dma.h:8:0,
                 from /usr/include/x86/bus.h:1032,
                 from /usr/include/machine-amd64/bus.h:6,
                 from /usr/include/machine/bus.h:8,
                 from ../../src/freebsd_pci.c:567:
/usr/include/machine-amd64/bus_dma.h:32:25: fatal error: sys/bus_dma.h: No such file or directory
compilation terminated.
make[3]: *** [freebsd_pci.lo] Error 1
make[3]: Leaving directory `/home/christoph/scratch/libpciaccess-0.13.1/build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/christoph/scratch/libpciaccess-0.13.1/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/christoph/scratch/libpciaccess-0.13.1/build'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Seems it needs something to get this header ( and it's not
kfreebsd-headers-amd64 ).



9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

Reply to: