Opened 11 years ago

Closed 11 years ago

Last modified 6 months ago

#3482 closed defect (fixed)

MACOSX 10.2.8: sqrtf undefined

Reported by: SF/mthreepwood Owned by: fingolfin
Priority: blocker Component: Port: Mac OS X
Keywords: Cc:
Game:

Description

Mac OS X 10.2.8

Crashes on startup when running the latest daily build (from Oystein). I get:

undefined reference to _sqrtf expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap

As far as I can tell, this is caused by the sqrtf function in primitives.cpp, line 85.

Ticket imported from: #1845876. Ticket imported from: bugs/3482.

Change History (7)

comment:1 Changed 11 years ago by sev-

Owner: set to fingolfin
Priority: normalblocker

comment:2 Changed 11 years ago by sev-

Raising priority. This is a release-critical bug.

comment:3 Changed 11 years ago by vinterstum

Could you give the build I just uploaded a spin, please? Tried linking the PPC half of the binary with the mx lib, which apparently is what contains the sqrtf function on 10.2.

comment:4 Changed 11 years ago by fingolfin

We should simply not use sqrtf! See sound/softsynth/mt32/tables.cpp for a workaround for similar problems with powf.

In this case, BTW, one could also use the hypot function ;).

comment:5 Changed 11 years ago by fingolfin

Resolution: fixed
Status: newclosed

comment:6 Changed 11 years ago by fingolfin

Fixed in SVN.

comment:7 Changed 6 months ago by digitall

Component: Port: Mac OS X
Note: See TracTickets for help on using tickets.