While trying to emerge openal-20050504-r2 I ran into the following problem gcc -I../../include -I../include -I../audioconvert -Iarch -I. -D_ISOC99_SOURCE -O2 -pipe -I/usr/ include/SDL -D_THREAD_SAFE -fPIC -Wshadow -Wall -W -Wbad-function-cast -Wcast-qual -Wcast- align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wimplicit-function- declaration -Waggregate-return -Winline -Wpointer-arith -fno-common -Wredundant-decls -c arch/ darwin/darwin_native.c -o arch/darwin/darwin_native.o In file included from ./arch/darwin/darwin_native.h:17, from arch/darwin/darwin_native.c:16: ../../include/AL/alc.h:28: warning: ignoring #pragma export on ../../include/AL/alc.h:109: warning: ignoring #pragma export off arch/darwin/darwin_native.c: In function 'deviceFillingProc': arch/darwin/darwin_native.c:79: warning: unused parameter 'inClientData' arch/darwin/darwin_native.c: In function 'GetAudioDevices': arch/darwin/darwin_native.c:97: warning: initialization makes integer from pointer without a cast arch/darwin/darwin_native.c:105: warning: comparison between pointer and integer arch/darwin/darwin_native.c:117: warning: comparison between pointer and integer arch/darwin/darwin_native.c: In function 'grab_write_native': arch/darwin/darwin_native.c:233: warning: assignment makes integer from pointer without a cast arch/darwin/darwin_native.c: In function 'set_write_native': arch/darwin/darwin_native.c:280: warning: return makes integer from pointer without a cast arch/darwin/darwin_native.c: In function 'grab_mixerfd': arch/darwin/darwin_native.c:296: warning: return makes integer from pointer without a cast arch/darwin/darwin_native.c: In function 'native_blitbuffer': arch/darwin/darwin_native.c:313: warning: comparison between signed and unsigned arch/darwin/darwin_native.c: In function 'get_nativechannel': arch/darwin/darwin_native.c:412: error: incompatible types in return arch/darwin/darwin_native.c: In function 'set_nativechannel': arch/darwin/darwin_native.c:418: warning: return makes integer from pointer without a cast arch/darwin/darwin_native.c: In function 'capture_nativedevice': arch/darwin/darwin_native.c:436: warning: return makes integer from pointer without a cast make[1]: *** [arch/darwin/darwin_native.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.3.0 Power Macintosh) =============================================================== == System uname: 8.3.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin8" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin8" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/ share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 79874 [details, diff] make it compile on macosx
Just curious, but have you tried the openal 0.0.8 and freealut versions? The 20050504 version was a CVS snapshot from before openal upstream did releases, and I am planning on removing it from the tree shortly. I just want to know if this bug would still be valid then or if it would have been resolved by upstream.
> Just curious, but have you tried the openal 0.0.8 and freealut versions? openal 0.0.8 brings other problems, no idea why. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common/include -I../include -Wall -ansi -pedantic -finline-functions -ffast-math -fomit-frame-pointer -fvisibility=hidden -D_THREAD_SAFE -I/usr/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -O2 -pipe -MT libopenal_la-al_distance.lo -MD -MP -MF .deps/libopenal_la-al_distance.Tpo -c al_distance.c -fno-common -DPIC -o .libs/libopenal_la-al_distance.o In file included from /usr/include/math.h:26, from al_distance.c:10: /usr/include/architecture/ppc/math.h:619: error: syntax error before 'float' /usr/include/architecture/ppc/math.h:620: error: syntax error before 'float' In file included from /usr/include/math.h:26, from al_distance.c:10: /usr/include/architecture/ppc/math.h:624:45: error: exponent has no digits /usr/include/architecture/ppc/math.h:624:45: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:624:45: error: exponent has no digits /usr/include/architecture/ppc/math.h:624:45: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:625:65: error: exponent has no digits /usr/include/architecture/ppc/math.h:625:72: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:634: error: syntax error before 'float' /usr/include/architecture/ppc/math.h:635: error: syntax error before 'float' /usr/include/architecture/ppc/math.h:639:45: error: exponent has no digits /usr/include/architecture/ppc/math.h:639:45: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:639:45: error: exponent has no digits /usr/include/architecture/ppc/math.h:639:45: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:640:65: error: exponent has no digits /usr/include/architecture/ppc/math.h:640:72: error: invalid suffix "f" on integer constant /usr/include/architecture/ppc/math.h:649: error: syntax error before 'double' /usr/include/architecture/ppc/math.h:650: error: syntax error before 'double' /usr/include/architecture/ppc/math.h:654:42: error: exponent has no digits /usr/include/architecture/ppc/math.h:654:42: error: exponent has no digits /usr/include/architecture/ppc/math.h:655:65: error: exponent has no digits /usr/include/architecture/ppc/math.h:664: error: syntax error before 'double' /usr/include/architecture/ppc/math.h:665: error: syntax error before 'double' /usr/include/architecture/ppc/math.h:669:42: error: exponent has no digits /usr/include/architecture/ppc/math.h:669:42: error: exponent has no digits /usr/include/architecture/ppc/math.h:670:65: error: exponent has no digits
OK. The thing is that the CVS snapshots are going to be removed from the tree soon, since they're way outdated, in favor of the 0.0.8 version. Unfortunately, I'm pretty stick when it comes to trying to support MacOSX. There was, at one time, a fork of openal for MacOSX, made by Ryan Gordon, but even he recommends to not use it anymore and to use the built-in from Tiger, since it was a dirty hack (his, not Tiger's).
Chris, do I understand you correct if I say you propose to close this bug with a WONTFIX? If this is already in Tiger, I'm all for leaving it like that and using that for now.
> Chris, do I understand you correct if I say you propose to close this bug with > a WONTFIX? If this is already in Tiger, I'm all for leaving it like that and > using that for now. But please add it to package.provided. Dirk
Selbstverst
Selbstverständlich!
I was planning on leaving the bug open, actually... but if you think adding it to package.provided will be a solution, only for tiger, though, then I'm good with it. I was actually kinda looking for your response/advice on this.
OpenAL-8 provided by OSX, media-libs/openal-0.0.8 added to package.provided. Marking later for Progressive/Prefix users, if Apple sources won't be sufficient any more.