Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#4751 closed defect (fixed)

unbreak build on FreeBSD

Reported by: dekarl@… 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 Nigel)

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)

freebsd-compile.diff (2.8 KB) - added by dekarl@… 12 years ago.
crude hack to unbreak compile on FreeBSD

Download all attachments as: .zip

Change History (14)

Changed 12 years ago by dekarl@…

Attachment: freebsd-compile.diff added

crude hack to unbreak compile on FreeBSD

comment:1 Changed 12 years ago by stuartm

Milestone: unknown0.22

comment:2 Changed 11 years ago by stuartm

Owner: changed from Isaac Richards to Nigel
Status: newassigned

comment:3 Changed 11 years ago by Nigel

Description: modified (diff)
Status: assignedstarted

comment:4 Changed 11 years ago by Nigel

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 11 years ago by dekarl@…

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 11 years ago by Nigel

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 11 years ago by Nigel

(In [18695]) FreeBSD doesn't have -ldl. It gets dlopen from -lc. See #4751

comment:8 Changed 11 years ago by Nigel

(In [18698]) Oops in FreeBSD fix [16695]. See #4751

comment:9 Changed 11 years ago by Nigel

(In [18709]) Disable PVR350 on FreeBSD. See #4751 (source is currently too closely tied to Linux?)

comment:10 Changed 11 years ago by Nigel

(In [18712]) Move some system-specific headers into compat.h, FreeBSD fixes (see #4751)

comment:11 Changed 11 years ago by Nigel

(In [18808]) Disable PVR350 on FreeBSD. See #4751

comment:12 Changed 11 years ago by Nigel

Resolution: fixed
Status: startedclosed

(In [18831]) FreeBSD fixes from trunk. Closes #4751

comment:13 Changed 11 years ago by Nigel

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.

Note: See TracTickets for help on using tickets.