-z is not a portable linker option
Hi - An unconditional "-Wl,-z" was added to the Makefile and that's causing a problem building MPlayer on OSX: cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=970 -mtune=970 -faltivec -pipe -ffast-math -fomit-frame-pointer -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/SDL -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include -Wl,-z,noexecstack -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o edl.o unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o libvo/libvo.a libao2/libao2.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a libavformat/libavformat.a -lmad -ldv -ltheora -logg -lfaad -llzo -lmp3lame -lxvidcore -lm -lpng -lz -lz -ljpeg -L/usr/X11R6/lib -lfreetype -ltinfo /usr/local/src/live/li! veMedia/libliveMedia.a /usr/local/src/live/groupsock/libgroupsock.a /usr/local/src/live/UsageEnvironment/libUsageEnvironment.a /usr/local/src/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -framework Carbon -framework QuickTime -framework CoreAudio -L/usr/local/lib -lfontconfig mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a -lGL -lXv -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -lX11 -L/usr/local/lib -lSDLmain -lSDL -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,OpenGL -liconv -lintl -lm ld: unknown flag: -z gmake: *** [mplayer] Error 1 I'll manually edit the makefile to work around the problem for the short term but a better long term solution would be to conditionalize the use of "-Wl,-z..." Cheers, Steven Schultz
On Wed, Apr 20, 2005 at 08:27:17PM -0700, Steven M. Schultz wrote:
Hi -
An unconditional "-Wl,-z" was added to the Makefile and that's causing a problem building MPlayer on OSX:
cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=970 -mtune=970 -faltivec -pipe -ffast-math -fomit-frame-pointer -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/SDL -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include -Wl,-z,noexecstack -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o edl.o unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o libvo/libvo.a libao2/libao2.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a libavformat/libavformat.a -lmad -ldv -ltheora -logg -lfaad -llzo -lmp3lame -lxvidcore -lm -lpng -lz -lz -ljpeg -L/usr/X11R6/lib -lfreetype -ltinfo /usr/local/src/live/li! veMedia/libliveMedia.a /usr/local/src/live/groupsock/libgroupsock.a /usr/local/src/live/UsageEnvironment/libUsageEnvironment.a /usr/local/src/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -framework Carbon -framework QuickTime -framework CoreAudio -L/usr/local/lib -lfontconfig mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a -lGL -lXv -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -lX11 -L/usr/local/lib -lSDLmain -lSDL -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,OpenGL -liconv -lintl -lm ld: unknown flag: -z gmake: *** [mplayer] Error 1
I'll manually edit the makefile to work around the problem for the short term but a better long term solution would be to conditionalize the use of "-Wl,-z..."
I've reversed it for now. It should be detected by configure if this nonsense is needed for anything, but I don't understand why it should be needed anyway... Rich
Hi, On Wed, Apr 20, 2005 at 11:53:39PM -0400, Rich Felker wrote:
I've reversed it for now. It should be detected by configure if this nonsense is needed for anything, but I don't understand why it should be needed anyway...
More like nice-to-have esp. together with SELinux. Any comments on the attached patch? It makes gcc spit out a lot of warnings during compiling, so probably not quite perfect yet :-( Greetings, Reimar Döffinger
Hi, On Thu, Apr 21, 2005 at 07:49:41PM +0200, Reimar D?ffinger wrote:
On Wed, Apr 20, 2005 at 11:53:39PM -0400, Rich Felker wrote:
I've reversed it for now. It should be detected by configure if this nonsense is needed for anything, but I don't understand why it should be needed anyway...
More like nice-to-have esp. together with SELinux. Any comments on the attached patch? It makes gcc spit out a lot of warnings during compiling, so probably not quite perfect yet :-(
The attached patch should work. If nobody objects I will apply tomorrow. Greetings, Reimar Döffinger
Hi, On Mon, May 30, 2005 at 11:14:56AM +0200, Reimar D?ffinger wrote:
On Thu, Apr 21, 2005 at 07:49:41PM +0200, Reimar D?ffinger wrote:
On Wed, Apr 20, 2005 at 11:53:39PM -0400, Rich Felker wrote:
I've reversed it for now. It should be detected by configure if this nonsense is needed for anything, but I don't understand why it should be needed anyway...
More like nice-to-have esp. together with SELinux. Any comments on the attached patch? It makes gcc spit out a lot of warnings during compiling, so probably not quite perfect yet :-(
The attached patch should work. If nobody objects I will apply tomorrow.
Applied. Greetings, Reimar Döffinger
Le lundi 30 mai 2005 à 11:14 +0200, Reimar Döffinger a écrit :
Hi, On Thu, Apr 21, 2005 at 07:49:41PM +0200, Reimar D?ffinger wrote:
On Wed, Apr 20, 2005 at 11:53:39PM -0400, Rich Felker wrote:
I've reversed it for now. It should be detected by configure if this nonsense is needed for anything, but I don't understand why it should be needed anyway...
More like nice-to-have esp. together with SELinux. Any comments on the attached patch? It makes gcc spit out a lot of warnings during compiling, so probably not quite perfect yet :-(
The attached patch should work. If nobody objects I will apply tomorrow.
Works fine on my AMD-64 machine.
Steven M. Schultz wrote:
Hi -
An unconditional "-Wl,-z" was added to the Makefile and that's causing a problem building MPlayer on OSX:
Bugreport Apple in order to have a less itchy toolchain. That would help porting other applications overall....
Cheers, Steven Schultz
lu -- Luca Barbato Gentoo/linux Developer Gentoo/PPC Operational Manager http://dev.gentoo.org/~lu_zero
On Thursday, 21 April 2005 at 11:10, Luca Barbato wrote:
Steven M. Schultz wrote:
Hi -
An unconditional "-Wl,-z" was added to the Makefile and that's causing a problem building MPlayer on OSX:
Bugreport Apple in order to have a less itchy toolchain. That would help porting other applications overall....
Solaris 9's ld has the same problem (as I said on IRC). I think it's unlikely they'll fix that. R. -- MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/ "I am Grey. I stand between the candle and the star. We are Grey. We stand between the darkness ... and the light." -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
participants (6)
-
Dominik 'Rathann' Mierzejewski -
Guillaume POIRIER -
Luca Barbato -
Reimar Döffinger -
Rich Felker -
Steven M. Schultz