[vlc-devel] vlc 2.2.0-git 64-bit build ignores LDFLAGS, grabs 32-bit libGL

darx at sent.com darx at sent.com
Mon Jul 8 19:55:38 CEST 2013


hi,

i'm working on building vlc/master,

	git log | head -n 5
		commit 69128da6bd6ab0b3babc01e404b4ad6ec23b0ea5
		Author: Rémi Denis-Courmont <remi at remlab.net>
		Date:   Mon Jul 8 19:06:56 2013 +0300

		    modules: avoid using genmf where unnecessary

on linux/64

current config's ok,

	...
	libvlc configuration
	--------------------
	version               : 2.2.0-git
	system                : linux
	architecture          : x86_64 mmx sse sse2
	optimizations         : yes
	vlc aliases           : cvlc rvlc qvlc svlc

but `make` fails,

	make
		...
		make[4]: Entering directory
		`/home/dev/vlc-master/modules/video_output'
		  CCLD     libgl_plugin.la
		/usr/lib/libGL.so: could not read symbols: File in wrong
		format
		collect2: error: ld returned 1 exit status
		make[4]: *** [libgl_plugin.la] Error 1
		make[4]: Leaving directory
		`/home/dev/vlc-master/modules/video_output'
		make[3]: *** [all] Error 2
		make[3]: Leaving directory
		`/home/dev/vlc-master/modules/video_output'
		make[2]: *** [all-recursive] Error 1
		make[2]: Leaving directory
		`/home/dev/vlc-master/modules'
		make[1]: *** [all-recursive] Error 1
		make[1]: Leaving directory `/home/dev/vlc-master'
		make: *** [all] Error 2

this is opensuse/64, where 64-bit libs are in /usr/.../lib64,

	/usr/lib/libGL.so:          symbolic link to `libGL.so.1'
	/usr/lib/libGL.so.1:        symbolic link to `libGL.so.319.23'
	/usr/lib/libGL.so.1.2.0:    ELF 32-bit LSB shared object, Intel
	80386, version 1 (SYSV), dynamically linked,
	BuildID[sha1]=0x83a779f6a3dbdaa94a70d9b998d540d040b154c5,
	stripped
	/usr/lib/libGL.so.319.23:   ELF 32-bit LSB shared object, Intel
	80386, version 1 (SYSV), dynamically linked, stripped
	/usr/lib64/libGL.so:        symbolic link to `libGL.so.1'
	/usr/lib64/libGL.so.1:      symbolic link to `libGL.so.319.23'
	/usr/lib64/libGL.so.319.23: ELF 64-bit LSB shared object,
	x86-64, version 1 (SYSV), dynamically linked, stripped


so I've

	echo $LDFLAGS
		-L/usr/local/lib64 -L/usr/lib64 -lGL


LDFLAGS is, i thought, supposed to be sufficient here, typically used
for 'non-standard' lib paths.  /usr/lib64 _is_ 'standard' on opensuse
...

Is there a different/additional build flag required?  or is there a bug
in the modules/video_output/... Makefiles?

--darx



More information about the vlc-devel mailing list