Opened 13 years ago

Last modified 3 years ago

#32245 new defect

openal: error: redefinition of parameter 'inBuffer'

Reported by: bernard@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: robink@…, cooljeanius (Eric Gallager)
Port: openal

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The penal port fails to build with errors like the following.

/Developer/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Os -Wno-return-type -Wparentheses -Wswitch -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-shorten-64-to-32 -Wc++0x-extensions -fasm-blocks -mmacosx-version-min=10.7 -gdwarf-2 -fvisibility-inlines-hidden -Wno-sign-conversion -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/OpenAL.build/Deployment/OpenAL.build/OpenAL.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/OpenAL.build/Deployment/OpenAL.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/OpenAL.build/Deployment/OpenAL.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/Deployment -D__MACOSX__ -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/OpenAL.build/Deployment/OpenAL.build/Objects-normal/x86_64/oalImp.d -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/oalImp.cpp -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/build/OpenAL.build/Deployment/OpenAL.build/Objects-normal/x86_64/oalImp.o
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/oalImp.cpp:30:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_openal/openal/work/openal-1.3/OpenAL-MacOSX/oalSource.h:518:46: error: redefinition of parameter 'inBuffer'
         void    SetBuffer (ALuint       inBuffer, OALBuffer     *inBuffer);

Attachments (4)

main.log (19.6 KB) - added by bernard@… 13 years ago.
port build log file
main.2.log (57.0 KB) - added by bernard@… 13 years ago.
configure.compiler=llvm-gcc-4.2
main.3.log (29.8 KB) - added by bernard@… 13 years ago.
configure.compiler=clang
main.4.log (56.8 KB) - added by bernard@… 13 years ago.
configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by bernard@…

Attachment: main.log added

port build log file

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: clang added
Summary: openal port fails to build on Lion with Xcode 4.2.1openal: error: redefinition of parameter 'inBuffer'

Please remember to use WikiFormatting.

I see you're using clang. Have you tried building with llvm-gcc-4.2 or gcc-4.2 instead? Let us know whether or not it works.

Changed 13 years ago by bernard@…

Attachment: main.2.log added

configure.compiler=llvm-gcc-4.2

Changed 13 years ago by bernard@…

Attachment: main.3.log added

configure.compiler=clang

comment:2 Changed 13 years ago by bernard@…

Thanks for those links.

I've found that in Xcode 4.2.1 the gcc-4.2 compiler is no longer installed. Instead only llvm-gcc-4.2 and clang are installed. I've tried with both of these compilers and they both fail. See attached logs for clang and llvm-gcc-4.2 compilers

Changed 13 years ago by bernard@…

Attachment: main.4.log added

configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Hmm, the attempt to use apple-gcc-4.2 does not appear to have been successful: although MacPorts says "Using compiler 'MacPorts Apple gcc 4.2'" the log also shows lines like "CompileC build/OpenAL.build/Deployment/OpenAL.build/Objects-normal/x86_64/oalImp.o oalImp.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42". Perhaps the Xcode project file is specifying the compiler somewhere.

comment:4 Changed 13 years ago by robink@…

Cc: robink@… added

Cc Me!

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Keywords: clang removed

comment:6 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.