/usr/ports/audio/xmms-osssurround (build error)

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

/usr/ports/audio/xmms-osssurround (build error)

Postby gert cuykens » Sun Jan 30, 2005 11:05 am

7rxI# cd /usr/ports/audio/xmms-osssurround
7rxI# ls
Makefile files pkg-plist
distinfo pkg-descr work
7rxI# cat pkg-descr
OSSSuround is an output plugin for XMMS included with xmms-a52dec.
(audio/xmms-a52dec). It provides surround sound capability to
xmms-a42dec and is fully compatible with all other input plugins.
It can be used as a dropin replacement for the original OSS plugin
distributed with XMMS. For developers, if you are interested in
using OSSSurround to provide surround sound support for your XMMS
input plugin, you can read the API document or contact the author
for help.

For latest API info: http://xmms-a52dec.sourceforge.net/API

WWW: http://xmms-a52dec.sourceforge.net/
7rxI# make depend
7rxI# make
===> Building for xmms-osssurround-0.1_1
cc -shared -olibOSSSurround.so about.o audio.o configure.o convert.o init.o mixer.o OSS.o
/usr/bin/ld: about.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
about.o: could not read symbols: Bad value
*** Error code 1

Stop in /usr/ports/audio/xmms-osssurround/work/xmms-a52dec-1.0/OSSSurround-0.1.
*** Error code 1

Stop in /usr/ports/audio/xmms-osssurround.
7rxI#
gert cuykens
Member
 
Posts: 28
Joined: Sat Jan 29, 2005 11:14 pm

Re: /usr/ports/audio/xmms-osssurround (build error)

Postby dev » Sun Jan 30, 2005 8:48 pm

gert cuykens wrote:7rxI# cd /usr/ports/audio/xmms-osssurround
7rxI# ls
Makefile files pkg-plist
distinfo pkg-descr work
7rxI# cat pkg-descr
OSSSuround is an output plugin for XMMS included with xmms-a52dec.
(audio/xmms-a52dec). It provides surround sound capability to
xmms-a42dec and is fully compatible with all other input plugins.
It can be used as a dropin replacement for the original OSS plugin
distributed with XMMS. For developers, if you are interested in
using OSSSurround to provide surround sound support for your XMMS
input plugin, you can read the API document or contact the author
for help.

For latest API info: http://xmms-a52dec.sourceforge.net/API

WWW: http://xmms-a52dec.sourceforge.net/
7rxI# make depend
7rxI# make
===> Building for xmms-osssurround-0.1_1
cc -shared -olibOSSSurround.so about.o audio.o configure.o convert.o init.o mixer.o OSS.o
/usr/bin/ld: about.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
about.o: could not read symbols: Bad value
*** Error code 1

Stop in /usr/ports/audio/xmms-osssurround/work/xmms-a52dec-1.0/OSSSurround-0.1.
*** Error code 1

Stop in /usr/ports/audio/xmms-osssurround.
7rxI#


Add -fPIC to the make file for the osssurround program!
That's needed for AMD64.


best regards
Dev Mazumdar
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby gert cuykens » Mon Jan 31, 2005 11:21 am

/usr/bin/ld: about.o: relocation R_X86_64_32 can not be used when
making a shared object; recompile with -fPIC


lol bad habbit on relying to much on developers
I will try to read the error more carfully next time :)
gert cuykens
Member
 
Posts: 28
Joined: Sat Jan 29, 2005 11:14 pm

Postby gert cuykens » Mon Jan 31, 2005 11:31 am

# New ports collection makefile for: xmms-surround
# Date created: 24 July 2002
# Whom: Amar Takhar <verm@drunkmonk.net>
#
# $FreeBSD: ports/audio/xmms-osssurround/Makefile,v 1.7 2004/12/18 21:46:45 kris Exp $
#

PORTNAME= xmms-osssurround
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xmms-a52dec
DISTNAME= xmms-a52dec-1.0

MAINTAINER= ports@FreeBSD.org
COMMENT= OSSSuround adds Surround Sound capabilities to XMMS

LIB_DEPENDS= xmms.4:${PORTSDIR}/multimedia/xmms

USE_BZIP2= yes
USE_X_PREFIX= yes
CFLAGS+= -fPIC

BUILD_WRKSRC= ${WRKSRC}/OSSSurround-${PORTVERSION}

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/OSSSurround-0.1/libOSSSurround.so \
${PREFIX}/lib/xmms/Output/

.include <bsd.port.mk>
gert cuykens
Member
 
Posts: 28
Joined: Sat Jan 29, 2005 11:14 pm

Postby gert cuykens » Mon Jan 31, 2005 11:38 am

CFLAGS+= -fPIC doesn't work ?

why did the make file not did cc -fpic -shared ..... ?
gert cuykens
Member
 
Posts: 28
Joined: Sat Jan 29, 2005 11:14 pm

Postby dev » Mon Jan 31, 2005 4:41 pm

gert cuykens wrote:CFLAGS+= -fPIC doesn't work ?

why did the make file not did cc -fpic -shared ..... ?


-fPIC should be picked up by the configure script. You cannot use -fPIC
on i386 (IFAIK).


regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby gert cuykens » Thu Feb 03, 2005 3:18 pm

yahoo it works now :)

> Okay, the only change was changing CFLAGS= in /etc/make.conf to
> CFLAGS?= and it worked.
>
> Not sure if this is a sw-bug or a documentation bug.
>
> regards
> tilman
gert cuykens
Member
 
Posts: 28
Joined: Sat Jan 29, 2005 11:14 pm


Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest

cron