After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 140268 - ximagesink and xvimagesink do not build under FreeBSD
ximagesink and xvimagesink do not build under FreeBSD
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other FreeBSD
: Normal normal
: 0.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-16 15:00 UTC by Julio Merino
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
Proposed patch (997 bytes, patch)
2004-04-16 15:01 UTC, Julio Merino
none Details | Review

Description Julio Merino 2004-04-16 15:00:38 UTC
The ximagesink and xvimagesink plugins do not build under FreeBSD.  They include
the sys/ipc.h and sys/shm.h header files, but these need sys/types.h to be
included as a prerequisite to work; and this must be done manually.

Building a simple test case program that only includes those two files shows it:

In file included from test.c:1:
/usr/include/sys/ipc.h:54: syntax error before `ushort'
In file included from test.c:1:
/usr/include/sys/ipc.h:95: syntax error before `ftok'
/usr/include/sys/ipc.h:95: warning: data definition has no type or storage class
In file included from test.c:2:
/usr/include/sys/shm.h:57: syntax error before `pid_t'
/usr/include/sys/shm.h:60: syntax error before `time_t'
/usr/include/sys/shm.h:93: syntax error before `int'

The fix is trivial, and comes from FreeBSD ports.  Just include sys/types.h
before those two other includes.
Comment 1 Julio Merino 2004-04-16 15:01:36 UTC
Created attachment 26721 [details] [review]
Proposed patch
Comment 2 David Schleef 2004-04-16 23:42:37 UTC
Applied, thanks.