HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #483 (closed defect: worksforme)

Opened 5 years ago

Last modified 4 years ago

OpenAL fails to make on gcc2

Reported by: jrabbit Owned by: scottmc
Priority: normal Milestone:
Component: media-libs/openal Version:
Severity: normal Keywords:
Cc:

Description


Attachments

openal-1.12-git.patch​ (531 bytes) - added by yeputons 5 years ago.
openal.bep.patch.tgz​ (578 bytes) - added by yeputons 5 years ago.

Download all attachments as: .zip

Change History

Changed 5 years ago by yeputons

  • attachment openal-1.12-git.patch​ added

comment:1 follow-up: ↓ 2 Changed 5 years ago by yeputons

We just need some hack, because GCC 2 don't understand constructions like
#define foo(...) bar(1, 2, 3, VA_ARGS)
but understand
#define foo(args...) bar(1, 2, 3, ##args)
It work perfectly.

comment:2 in reply to: ↑ 1 Changed 5 years ago by bonefish

Replying to yeputons:

We just need some hack, because GCC 2 don't understand constructions like
#define foo(...) bar(1, 2, 3, VA_ARGS)

It does since Haiku  r38236. That's post R1 alpha 2, though.

comment:3 Changed 5 years ago by yeputons

That's the only reason why openal fails to compile.
So this bug should be closed as resolved.

comment:4 Changed 5 years ago by yeputons

But I think this patch is usable on release system. I have Haiku from official release ISO and cannot compile OpenAL without hack.

comment:5 Changed 5 years ago by scottmc

We should leave it unpatched, but add a MESSAGE to the bep file letting the user know they need Haiku r38236 or newer.

Changed 5 years ago by yeputons

  • attachment openal.bep.patch.tgz​ added

comment:6 follow-up: ↓ 7 Changed 5 years ago by jrabbit

Not sure this is actually correct bonefish, I have a recent build that won't build openAL, but I can't test it atm...

comment:7 in reply to: ↑ 6 Changed 5 years ago by bonefish

Replying to jrabbit:

Not sure this is actually correct bonefish, I have a recent build that won't build openAL, but I can't test it atm...

I can't say anything about openal, but the gcc 2.95.3-haiku-100818 that's available with the current Haiku definitely supports the standard variadic macros by default. The gcc package was updated in r38376.

comment:8 Changed 4 years ago by scottmc

  • Resolution set to worksforme
  • Status changed from new to closed

openal builds ok with r39748 using gcc2 for me, so closing this as not needed.

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/