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 - SDL_image 2.0.0 not building on Mac OS X 10.9
Summary: SDL_image 2.0.0 not building on Mac OS X 10.9
Status: NEW
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Mac OS X 10.8
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 23:55 UTC by eric.shyong
Modified: 2014-02-21 23:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.