pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/34980
The following reply was made to PR pkg/34980; it has been noted by GNATS.
From: David Howland <dhowland%users.sourceforge.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/34980
Date: Tue, 07 Nov 2006 20:06:10 -0500
Got multimedia/gmplayer to compile on my system (NetBSD-3.1) patches
will be appended to the PR after, but I'm not sure the code quality is
good enough. besides, this shouldn't be the real solution, since it
only fails inside pkgsrc.
I also don't know if this problem exists on NetBSD-4 or not. It could
be a gcc-3 vs gcc-4 thing, I kinda doubt it though...
The patches don't explain why multimedia/mplayer compiles fine on my
system and multimedia/gmplayer does not. These changes are made to
libavcodec.a, something that should compile the same for each of them.
Only thing i can think of is the command line switches are causing
problems with variable visibility. Here is the command line on my box:
(the sections that are unique to gmplayer are highlighted)
(gmplayer has them, mplayer doesn't)
cc
-fno-PIC -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro
-D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -I/usr/pkg/include -I/usr/pkg/include/faad2
-I/usr/pkg/include/cdparanoia -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/include -DGLX_GLXEXT_LEGACY
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg/include/artsc
-pthread -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include
**************************************************
-O2 -march=pentium3 -DXTHREADS -I/usr/pkg/include/gtk-2.0
-I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0
-I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include
-I/usr/X11R6/include -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/libpng12
**************************************************
-I. -I./libavutil -I./libavcodec -DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I..
-I../libavutil
-fno-PIC -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro
-D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -I/usr/pkg/include -I/usr/pkg/include/faad2
-I/usr/pkg/include/cdparanoia -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/include -DGLX_GLXEXT_LEGACY
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg/include/artsc
-pthread -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include
**************************************************
-O2 -march=pentium3 -DXTHREADS -I/usr/pkg/include/gtk-2.0
-I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0
-I/usr/pkg/include/cairo -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include
-I/usr/X11R6/include -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/libpng12
**************************************************
-c -o cabac.o cabac.c
I notice a few things about this.
1) the mplayer options have -O3, the gtk options have -O3,
and there are four of them in total
2) mplayer options have -mcpu=pentiumpro,
gtk options have -march=pentium3
3) mplayer options have -D_THREAD_SAFE,
gtk options have -DXTHREADS
I dont know if any of those things would matter or not. need help.
thanks,
-d
Home |
Main Index |
Thread Index |
Old Index