Ticket #6099 (closed defect: fixed)
BUG: openal doesn't build on Mac OS X 10.3.9
| Reported by: | stephen@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: |
Description
The Portfile specifies a patch that changes a structure definition, and the following error resulted.
Removing the cvs.args and patchfiles fields from the Portfile allowed an error-free build. I don't know if the cvs.args made any difference. I also don't know if this actually works, I'm only installing openal to satisfy a dependency for an external package.
/usr/bin/g++-3.3 -c
-F/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx/build
-I/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx/build/include -arch ppc -fno-common -fpascal-strings -O3 -Wmost
-Wno-four-cfile,/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx/build/al_osx.build/openal.dylib.build/openal.dylib.hmap
oalContext.cpp -o
/opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx/build/al_osx.build/openal.dylib.build/Objects-normal/ppc/oalContext.o
In file included from oalContext.h:27,
from oalContext.cpp:24:
oalDevice.h:225: error: redefinition of `struct MixerDistanceParams' /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h:933: error: previous definition of `struct MixerDistanceParams' oalDevice.h:233: error: conflicting types for `kAudioUnitProperty_3DMixerDistanceParams' /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h:124: error: previous declaration as `<anonymous enum> kAudioUnitProperty_3DMixerDistanceParams' ...failed CompileCplusplus /opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx/build/al_osx.build/openal.dylib.build/Objects-normal/ppc/oalContext.o ... BUILD FAILED
Change History
comment:2 Changed 7 years ago by mww@…
- Summary changed from openal doesn't build on Mac OS X 10.3.9 to BUG: openal doesn't build on Mac OS X 10.3.9
the cvs.args makes a huge difference, in that it will now pull just the latest files from the cvs-repository. We nevertheless need a definitive date to make the build reliable - would you mind testing if -D"20051215" and removing the patch compiles for you? (unfortunately I don't have a 10.3 box, so no testing here). Thanks!
comment:3 Changed 7 years ago by stephen@…
-D"20051215" builds and installs with no problems.
I don't actually use it. It gets pulled in as a dependency of GHC, and rather than reconfigure GHC, I decided to try installing OpenAL. So I can't say whether the port actually works.
If you have an easy test for functionality, I'll run that, too.
comment:4 Changed 7 years ago by bobcober@…
I get the same error on 10.4.3.
/usr/bin/g++-4.0 -c -I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_openal/work/openal/macosx/build/al_osx.build/Default/openal.dylib.build/openal.dylib.hmap -F/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_openal/work/openal/macosx/build/Default
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_openal/work/openal/macosx/build/Default/include -arch ppc -fno-common -fpascal-strings -O3 -Wmost -Wno-four-char-constants
-Wno-unknown-pragmas -pipe "-fmessage-length=0" oalContext.cpp -o /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_audio_openal/work/openal/macosx/build/al_osx.build/Default/openal.dylib.build/Objects-normal/ppc/oalContext.o
oalDevice.h:225: error: redefinition of 'struct MixerDistanceParams' /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h:1012: error: previous definition of 'struct MixerDistanceParams' oalDevice.h:229: error: invalid type in declaration before ';' token oalDevice.h:229: error: conflicting declaration 'typedef int MixerDistanceParams' /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h:1016: error: 'MixerDistanceParams' has a previous declaration as 'typedef struct MixerDistanceParams MixerDistanceParams' oalDevice.h:232: error: conflicting declaration 'kAudioUnitProperty_3DMixerDistanceParams' /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h:125: error: 'kAudioUnitProperty_3DMixerDistanceParams' has a previous declaration as '<anonymous enum> kAudioUnitProperty_3DMixerDistanceParams' BUILD FAILED
Error: /opt/local/bin/port: Status 1 encountered during processing.
comment:5 Changed 7 years ago by mww@…
just updated to 2006/01/31 which compiles fine here on 10.4/ppc; please check if this builds on 10.3/ppc and perhaps 10.4/ia32!
comment:6 Changed 7 years ago by stephen@…
Unfortunately, it doesn't build on 10.3.9 Panther. I don't have a guess as to what the problem might be, and don't have time to explore for a few days at least.
Error: Target com.apple.build returned: shell command "cd /opt/local/var/db/dports/build/_Users_steve_Software_Ports_dports_audio_openal/work/openal/macosx && make all PREFIX=/opt/local" returned error 2 Command output: g++ -dynamiclib -install_name /opt/local/lib/libopenal1.0.0.dylib -o libopenal1.0.0.dylib -L./build/Default -F./build/Default -filelist ./build/al_osx.build/Default/openal.dylib.build/Objects-normal/LinkFileList -framework vecLib -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework AudioUnit -framework CoreServices -compatibility_version 1 -current_version 1 /usr/bin/libtool: can't open file list file: ./build/al_osx.build/Default/openal.dylib.build/Objects-normal/LinkFileList (No such file or directory) make: * [libopenal1.0.0.dylib] Error 1
Error: Unable to upgrade port: 1
comment:7 Changed 7 years ago by stephen@…
(In reply to comment #6)
Unfortunately, it doesn't build on 10.3.9 Panther. I don't have a guess as to what the problem might be, and don't have time to explore for a few days at least.
It turns out that the problem is (likely) a difference between XCode 1.5 (highest version compatible with Panther) and XCode 2.x (for Tiger). Panther builds the libraries/frameworks/stuff in ./build/al_osx.build/openal.dylib.build, not ./build/al_osx.build/Default/openal.dylib.build.
| g in audio/openal/files/Makefile in the Ports tree (not in the build tree!) and things worked. (I still don't actually use openal, so I don't know if it *works*<wink> but getting it to build is definite progress!) |
I don't know how to do the port magic to get this to happen automagically for Darwin 7, sorry.
comment:10 Changed 6 years ago by nox@…
- Priority changed from Expected to Normal
- Version 1.0 deleted
comment:11 Changed 6 years ago by nox@…
- Status changed from new to closed
- Resolution set to fixed
- Milestone Port Bugs deleted
openal builds now.


Assign to maintainer.