Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176668 - beagle fails to compile on FreeBSD
Summary: beagle fails to compile on FreeBSD
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 176517
  Show dependency tree
 
Reported: 2007-05-01 11:46 UTC by Roy Marples (RETIRED)
Modified: 2008-05-18 11:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Only include <linux/foo.h> for linux systems (beagle.patch,379 bytes, patch)
2007-05-01 11:46 UTC, Roy Marples (RETIRED)
Details | Diff
Remove support for posix_fadvise (beagle-patch-Util_FileAdvise.cs,728 bytes, patch)
2007-05-12 15:01 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2007-05-01 11:46:00 UTC
i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/lib/pkgconfig/../../include/mono-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_THREAD_SAFE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -D_THREAD_SAFE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -O2 -march=pentium-m -pipe -MT thread-glue.lo -MD -MP -MF .deps/thread-glue.Tpo -c thread-glue.c  -fPIC -DPIC -o .libs/thread-glue.o
thread-glue.c:30:26: error: linux/unistd.h: No such file or directory
gmake[2]: *** [thread-glue.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
mv -f .deps/mono-glue.Tpo .deps/mono-glue.Plo
gmake[2]: Leaving directory `/var/tmp/portage/app-misc/beagle-0.2.16.2/work/beagle-0.2.16.2/glue'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/app-misc/beagle-0.2.16.2/work/beagle-0.2.16.2'
gmake: *** [all] Error 2
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-05-01 11:46:35 UTC
Created attachment 117835 [details, diff]
Only include <linux/foo.h> for linux systems
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-05-12 15:01:18 UTC
Created attachment 119018 [details, diff]
Remove support for posix_fadvise

This FreeBSD specific patch is also needed as our libc does not have posix_fadvise and rapidly fills the beagle logs with this error. I only spotted it because I ran out of space!

This patch was taken from FreeBSD ports.

I don't know if it's possible in C# to #ifdef around it as if we could then the patch wouldn't be OS specific like it is now :/
Comment 3 Frank Richter 2007-05-27 22:30:53 UTC
(In reply to comment #2)
> I don't know if it's possible in C# to #ifdef around it as if we could then the
> patch wouldn't be OS specific like it is now :/

It is. C# doesn't have a full-fledged macro preprocessor as C/C++, but it supports conditional compilation. For all the gory details see section 9.5 of ECMA-334.
Comment 4 Luis Medinas (RETIRED) gentoo-dev 2007-07-17 02:52:00 UTC
Roy there's any bug open on upstream bugzilla ? If not i'll open one to fix this.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-07-17 06:44:34 UTC
No, I've not sent this upstream as it's an OS conditional patch. IE, upstream won't accept it as it stands, hence my call for help in making it unconditional :)
Comment 6 Cédric Krier gentoo-dev 2008-05-18 11:13:23 UTC
Is it work now with 0.3.6 ?