Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 20:08:08 +0100
From:      usleepless@gmail.com
To:        Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Cc:        FreeBSD <freebsd-multimedia@freebsd.org>
Subject:   Re: Call for Testers: MythTV 0.22
Message-ID:  <c39ec84c0911201108o2c66c985gd96baf94f5148ba@mail.gmail.com>
In-Reply-To: <20091120181154.9228fac8.torfinn.ingolfsen@broadpark.no>
References:  <20091115204205.482e6a15@bluelife.at> <20091120085925.f75b3e73.torfinn.ingolfsen@broadpark.no> <20091120114100.9bec7d49.torfinn.ingolfsen@broadpark.no> <f59daa885bd6a8a10484d30a24ecb0a7.squirrel@webmail.itac.at> <20091120181154.9228fac8.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 20, 2009 at 6:11 PM, Torfinn Ingolfsen <
torfinn.ingolfsen@broadpark.no> wrote:

> On Fri, 20 Nov 2009 11:55:58 +0100 (CET)
> Bernhard Froehlich <decke@bluelife.at> wrote:
>
> > Looks like what i described one mail ago. We cannot use --extra-cflags
> > because it WILL break in weird ways. It pulls in header files from
> > /usr/local/include because "-g -I/usr/local/include" is earlier than
> > "-I." and so it breaks.
> >
> > As a hackish workaround just until i fix it correctly you could try
> > --extra-cflags="-g -I. -I/usr/local/include" --extra-ldflags="-L.
> > -L/usr/local/lib"
>
> OK, the CONFIGURE_ARGS line  now looks like this:
> CONFIGURE_ARGS= --enable-xvmc --enable-opengl-vsync --disable-directfb
> --enable-ivtv \
>                --disable-xvmc-pro --disable-xvmc-vld --disable-xvmcw \
>                 --disable-dvb --extra-ldflags="-L. -L/usr/local/lib" \
>                --prefix=${PREFIX} --extra-cflags="-g -I.
> -I/usr/local/include" --extra-cxxflags=-g
>
> and it gets a bit further before it dies:
> gmake[2]: Leaving directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs/libmythui'
> cd libmyth/ && /usr/local/bin/qmake-qt4 libmyth.pro -unix
> QMAKE=/usr/local/bin/qmake-qt4 -o Makefile
> cd libavcodec/ && /usr/local/bin/qmake-qt4 libavcodec.pro -unix
> QMAKE=/usr/local/bin/qmake-qt4 -o Makefile
> yasm: No input files specified
> cd libavcodec/ && gmake -f Makefile all
> gmake[2]: Entering directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs/libavcodec'
> yasm -f elf -DARCH_X86_64 -m amd64 -DPIC -I x86/ -o fft_mmx.o
> x86/fft_mmx.asm
> yasm -f elf -DARCH_X86_64 -m amd64 -DPIC -I x86/ -o dsputil_yasm.o
> x86/dsputil_yasm.asm
> yasm -f elf -DARCH_X86_64 -m amd64 -DPIC -I x86/ -o h264_deblock_sse2.o
> x86/h264_deblock_sse2.asm
> yasm -f elf -DARCH_X86_64 -m amd64 -DPIC -I x86/ -o h264_idct_sse2.o
> x86/h264_idct_sse2.asm
> gcc -c -pipe -march=k8 -fomit-frame-pointer -O3 -O2 -fno-strict-aliasing
> -pipe -D_ISOC99_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith
> -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef
> -fno-math-errno -g -I. -I/usr/local/include -w -DPIC -fPIC -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE
> -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I.. -I../..
> -I/usr/local/include -o allcodecs.o allcodecs.c
> In file included from /usr/local/include/libavutil/common.h:283,
>                 from /usr/local/include/libavutil/avutil.h:56,
>                 from avcodec.h:30,
>                 from allcodecs.c:27:
> ./internal.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '*' token
> gmake[2]: *** [allcodecs.o] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs/libavcodec'
> gmake[1]: *** [sub-libavcodec-all] Error 2
> gmake[1]: Leaving directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs'
> gmake: *** [sub-libs-all-ordered] Error 2
> *** Error code 1
>
> Stop in /usr/ports/multimedia/mythtv.
> *** Error code 1
>
> Stop in /usr/ports/multimedia/mythtv.
>
> this is the include file problems we talked about. i believe Bernhard is
right and the configure file needs patching. however, i hope we can send a
structural patch upstream.

what i observed:
 - qmake already includes /usr/local/include in the make path. so for the
actual build, it does not matter if we add --extra-cflags="...." or not
 - configure uses a yet unknown to me method to create the .c-test-file and
gcc-command. it does not include /usr/local/include by default

regards,

usleep


> --
> Torfinn
>
> _______________________________________________
> freebsd-multimedia@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "
> freebsd-multimedia-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c39ec84c0911201108o2c66c985gd96baf94f5148ba>