Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142509 - openal 0.0.8 does't compile on g/fbsd
Summary: openal 0.0.8 does't compile on g/fbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 02:20 UTC by Timothy Redaelli (RETIRED)
Modified: 2007-08-03 08:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/openal-0.0.8-alc_backend_bsd.patch (openal-0.0.8-alc_backend_bsd.patch,1.49 KB, patch)
2006-08-02 02:22 UTC, Timothy Redaelli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Redaelli (RETIRED) gentoo-dev 2006-08-02 02:20:30 UTC
openal 0.0.8 doesn't compile on g/fbsd
I attach the patch
Comment 1 Timothy Redaelli (RETIRED) gentoo-dev 2006-08-02 02:22:58 UTC
Created attachment 93252 [details, diff]
files/openal-0.0.8-alc_backend_bsd.patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-04 02:59:22 UTC
lc_backend_null.o .libs/libopenal_la-alc_backend_wave.o .libs/libopenal_la-alc_backend.o .libs/libopenal_la-x86_floatmul.o .libs/libopenal_la-x86_cpu_c
aps_prk.o .libs/libopenal_la-mixaudio16_mmx_prk.o .libs/libopenal_la-alc_context.o .libs/libopenal_la-alc_device.o .libs/libopenal_la-alc_error.o .libs
/libopenal_la-alc_speaker.o .libs/libopenal_la-ac_adpcm.o .libs/libopenal_la-ac_bits.o .libs/libopenal_la-ac_channels.o .libs/libopenal_la-ac_endian.o
.libs/libopenal_la-ac_freq.o .libs/libopenal_la-ac_helper.o .libs/libopenal_la-ac_misc.o .libs/libopenal_la-al_ext_vorbis.o .libs/libopenal_la-al_ext_c
apture.o .libs/libopenal_la-al_ext_loki.o -Wl,--whole-archive ../src/arch/i386/.libs/libx86_asm_routines.a -Wl,--no-whole-archive  -lm  -march=athlon-t
bird -Wl,-soname -Wl,libopenal.so.0 -o .libs/libopenal.so.0
../src/arch/i386/.libs/libx86_asm_routines.a: member ../src/arch/i386/.libs/libx86_asm_routines.a(x86_cpu_caps_detect_prk.o) in archive is not an objec
t
collect2: ld returned 1 exit status
gmake[3]: *** [libopenal.la] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/openal-0.0.8-r1/work/openal-0.0.8/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/openal-0.0.8-r1/work/openal-0.0.8/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/openal-0.0.8-r1/work/openal-0.0.8'
gmake: *** [all] Error 2

!!! ERROR: media-libs/openal-0.0.8-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  openal-0.0.8-r1.ebuild, line 53:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Still fails here, ideas?
Comment 3 Timothy Redaelli (RETIRED) gentoo-dev 2006-10-04 15:14:11 UTC
(In reply to comment #2)
Which uses did you use?
I have installed openal (0.0.8-r1) USE="(-alsa) -arts -debug -esd -mp3 -sdl -vorbis"
simply copying my patch as $FILESDIR/0.0.8/001_all_freebsd.patch and it links correctly
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-10-13 12:39:33 UTC
Emerges on x86 fine with this patch. Can't test for sound just yet - will report back if I can now get Eternal Lands working
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-10-13 16:36:06 UTC
Sound works fine in EL with this patch and the one on bug #151224 :)
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-17 07:12:37 UTC
2/3 works for me... :P

If this needs to be adjusted (and doesn't blow up non-freebsd) you guys have my permission to simply fix it.  Since I don't use freebsd, I have no way of testing it, anyway.
Comment 7 Friedrich Oslage (RETIRED) gentoo-dev 2007-07-06 21:28:48 UTC
It's not (comletely) fixed yet.

Whether you can compile it or not also depends on your cflags. For example I can compile it using "-march=i686 -O2" but not using "-march=prescott -O2".
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-08-03 08:54:10 UTC
(In reply to comment #7)
> It's not (comletely) fixed yet.
> 
> Whether you can compile it or not also depends on your cflags. For example I
> can compile it using "-march=i686 -O2" but not using "-march=prescott -O2".

Could you open a new bug for that please?