We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2412

Summary: SDL_image 2.0.0 not building on Mac OS X 10.9
Product: SDL_image Reporter: eric.shyong
Component: miscAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Mac OS X 10.8   

Description eric.shyong 2014-02-21 23:55:24 UTC
Environment:
OS X Mavericks, GCC 4.2.1, Apple LLVM Version 5.0, Make 3.8.1

Commands:
./configure && make && make install

Error:
Undefined symbols for architecture x86_64:
  "_objc_msgSend", referenced from:
      _Create_SDL_Surface_From_CGImage_Index in IMG_ImageIO.o
  "_objc_msgSend_fixup", referenced from:
      l_objc_msgSend_fixup_autorelease in IMG_ImageIO.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libSDL2_image.la] Error 1

Apparently the Objective-C libraries weren't being linked, so I manually added an -lobjc flag to the LIBS variable in my Makefile. It compiled fine after that.