Philip Guenther: > > When starting xmms the following error appears: > > xmms:/usr/local/lib/xmms/Input/libxmmsmad.so: undefined symbol > > '__guard_local' > > Cannot load specified object > > This indicates that that shared object was linked incorrectly. On OpenBSD, > shared objects should be linked using cc -shared and *not* by directly > invoking ld, so that they get the necessary begin and end objects.
The port uses libtool, which does emit "cc -shared". The problem is an extra "-nostdlib". Removing it fixes this. ok? Index: Makefile =================================================================== RCS file: /cvs/ports/audio/xmms-mad/Makefile,v retrieving revision 1.18 diff -u -p -r1.18 Makefile --- Makefile 21 Mar 2013 08:45:13 -0000 1.18 +++ Makefile 26 Nov 2014 16:39:53 -0000 @@ -6,7 +6,7 @@ COMMENT= XMMS input plugin for MP3 files DISTNAME= xmms-mad-0.10 CATEGORIES= audio HOMEPAGE= http://xmms-mad.sourceforge.net/ -REVISION = 1 +REVISION= 2 MAINTAINER= Robert Nagy <rob...@openbsd.org> Index: patches/patch-src_Makefile_in =================================================================== RCS file: patches/patch-src_Makefile_in diff -N patches/patch-src_Makefile_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_Makefile_in 26 Nov 2014 16:39:53 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/Makefile.in.orig Wed Jan 11 20:10:15 2006 ++++ src/Makefile.in Wed Nov 26 17:37:26 2014 +@@ -194,7 +194,7 @@ target_alias = @target_alias@ + AM_CFLAGS = @GTK_CFLAGS@ @XMMS_CFLAGS@ + lib_LTLIBRARIES = libxmmsmad.la + libxmmsmad_la_LIBADD = @GTK_LIBS@ @XMMS_LIBS@ +-libxmmsmad_la_LDFLAGS = -module -avoid-version -nostdlib ++libxmmsmad_la_LDFLAGS = -module -avoid-version + libxmmsmad_la_SOURCES = xmms-mad.c xmms-mad.h \ + read_replaygain.h \ + fileinfo.c decoder.c \ -- Christian "naddy" Weisgerber na...@mips.inka.de