Opened 16 years ago
Closed 15 years ago
Last modified 15 years ago
#4751 closed defect (fixed)
unbreak build on FreeBSD
Reported by: | Owned by: | Nigel | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | portability |
Cc: | grog@… | Ticket locked: | no |
Description (last modified by )
crude hack to unbreak usage of:
- statfs
- gettimeofday
- lseek
- sendfile (really ugly hack! Should go into darwin-sendfile.cpp to make use of it on MacOS >=10.5 and others, too)
compiled tested together with #4750 on a more or less current FreeBSD-current
CC: FreeBSD Port Maintainer
Attachments (1)
Change History (14)
Changed 16 years ago by
Attachment: | freebsd-compile.diff added |
---|
comment:1 Changed 16 years ago by
Milestone: | unknown → 0.22 |
---|
comment:2 Changed 16 years ago by
Owner: | changed from Isaac Richards to Nigel |
---|---|
Status: | new → assigned |
comment:4 Changed 16 years ago by
A FreeBSD compile fix was committed for #5426, in [17454] and [17455], so I am not sure how much of this patch is needed. I'm trying to build a FreeBSD server, but it's taking me a while for all the dependencies (trying to make under /usr/ports/multimedia/mythtv says 'mythtv 0.20_2 marked broken ' :-)
Note that sys/param.h seems to define BSD on Mac OS X, so I'm hoping some of the Darwin/*BSD fixes can be combined.
comment:5 Changed 16 years ago by
There is currently a CallForTesting? of some patches on freebsd-multimedia, see http://lists.freebsd.org/pipermail/freebsd-multimedia/2008-September/009193.html
comment:6 Changed 16 years ago by
Thanks, but that is a 0.21 build. I wanted to start with SVN head (future 0.22). These steps did the trick:
cd /usr/ports/devel/qt4 sudo make install cd /usr/local/share/qt4/mkspecs sudo ln -s freebsd-g++ default cd /usr/ports/audio/lame sudo make install QTDIR=/usr/local export QTDIR CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --qmake=/usr/local/bin/qmake-qt4 make
comment:7 Changed 15 years ago by
comment:9 Changed 15 years ago by
comment:10 Changed 15 years ago by
comment:12 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | started → closed |
comment:13 Changed 15 years ago by
Apart from a few .pro files in 0-21-fixes that had CONFIG += opengl that caused link errors (my Qt3 build machine didn't have -lGLU), both 0-21-fixes and trunk should compile cleanly on FreeBSD. I haven't done any actual testing of the binaries, though.
crude hack to unbreak compile on FreeBSD