Multimedia/player: negative side-effect of PR ports/119593?

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Tue Feb 5 14:10:11 PST 2008


On Tue, 05 Feb 2008 10:28:27 +0000
Dieter <freebsd at sopwith.solgatos.com> wrote:

> But is it actually using gcc 4.2.3 or is it finding some other
> version?

How can I tell? I'm not familiar enough with the ports framework to
tell which version it uses. There are several versions
in /usr/local/bin:
root at kg-quiet# ls /usr/local/bin/gcc*
/usr/local/bin/gcc-ooo          /usr/local/bin/gccbug-ooo       /usr/local/bin/gccmakedep
/usr/local/bin/gcc42            /usr/local/bin/gccbug42

root at kg-quiet# ls -l /usr/local/bin/*gcc*
-r-xr-xr-x  3 root  wheel   90824 Oct 26 18:56 /usr/local/bin/gcc-ooo
-r-xr-xr-x  3 root  wheel  205000 Feb  3 14:52 /usr/local/bin/gcc42
-r-xr-xr-x  1 root  wheel   16087 Oct 26 18:56 /usr/local/bin/gccbug-ooo
-r-xr-xr-x  1 root  wheel   16130 Feb  3 14:52 /usr/local/bin/gccbug42
-r-xr-xr-x  1 root  wheel    2017 May 28  2007 /usr/local/bin/gccmakedep
-r-xr-xr-x  3 root  wheel   90824 Oct 26 18:56 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-3.4.1
-r-xr-xr-x  3 root  wheel  205000 Feb  3 14:52 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-4.2.3
-r-xr-xr-x  3 root  wheel   90824 Oct 26 18:56 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc-ooo
-r-xr-xr-x  3 root  wheel  205000 Feb  3 14:52 /usr/local/bin/x86_64-portbld-freebsd6.3-gcc42


> If you run "gcc -v" does it say 4.2.3 ?

This test isn't correct, because it just finds the system
compiler (/usr/bin/gcc) which is gcc 3.4.6:
root at kg-quiet# gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305

I'm guessing (but don't know for sure) that the ports framework
(makefiles and so on) uses a different compiler. For example one of the -portbuild- ones above.
The port doesn't include a USE_GCC line, so I'm not sure how to find out which compiler it uses.
I had a quick look at the Porters Handbook[1] but still can't figure out how the ports framework chooses
a compiler if USE_GCC isn't set.

Neither CC nor CXX is set in /etc/make.conf

References:
1) http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
-- 
Regards,
Torfinn Ingolfsen



More information about the freebsd-multimedia mailing list