Opened 12 years ago

Closed 10 years ago

#33808 closed defect (wontfix)

libsdl-devel @1.3.0-5552 undefined symbols

Reported by: clemens.brunner@… Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: suresh.sivanandam@…
Port: libsdl-devel

Description

I tried installing libsdl-devel, but it gives me an error (undefined symbols), see attached log file.

I'm using Mac OS X 10.7 with the latest Xcode 4.3.2.

Attachments (3)

main.log (8.4 KB) - added by clemens.brunner@… 12 years ago.
main.2.log (384.5 KB) - added by clemens.brunner@… 12 years ago.
main.3.log (384.5 KB) - added by tim.heuett@… 12 years ago.

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by clemens.brunner@…

Attachment: main.log added

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

This was not a clean build attempt. Please "sudo port clean libsdl-devel" and try again, and attach the new main.log if it fails again.

comment:2 in reply to:  1 Changed 12 years ago by clemens.brunner@…

Replying to ryandesign@…:

This did not work either. I'm attaching the new log.

Changed 12 years ago by clemens.brunner@…

Attachment: main.2.log added

Changed 12 years ago by tim.heuett@…

Attachment: main.3.log added

comment:3 Changed 12 years ago by tim.heuett@…

I'm having the same problem. Unfortunately, I'm pretty new to Mac OS and Xcode, so I don't have much to draw on here, but I'm happy to test any theories. So, Mac OS 10.7.3, Xcode 4.3.2 with command line utils installed, and Macports 2.0.4. My log is #3. Thanks!

comment:4 in reply to:  3 Changed 12 years ago by suresh.sivanandam@…

I have the same problem. My configuration is identical to Tim's and I get the same error as the log that has been uploaded. Let me know if I can be of some help. The error log basically says that the symbol _BlitRGBtoRGBPixelAlphaMMX3DNOW in SDL_blit_A.o cannot be found for x86_64.

comment:5 Changed 12 years ago by suresh.sivanandam@…

Cc: suresh.sivanandam@… added

Cc Me!

comment:6 Changed 12 years ago by suresh.sivanandam@…

Tried to recompile again with a slightly newer version of libsdl-devel @1.3.0-6248, same problem. Anyone have any suggestions about how to troubleshoot this? Thanks.

comment:7 Changed 12 years ago by suresh.sivanandam@…

I found this fix. I had to change a line in the Makefile.

The original line is

EXTRA_CFLAGS = -I./include  -mmmx -m3dnow -msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -Wall

New line removes the 3dnow option since Apple processors are Intel and don't support the AMD 3DNow instructions:

EXTRA_CFLAGS = -I./include  -mmmx -msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -Wall

You have to clean up the object files and recompile. I am not sure how to submit this as a patch, since I am a newbie.

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

Owner: changed from macports-tickets@… to toby@…

comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

libsdl-devel was deleted in r112504.

Note: See TracTickets for help on using tickets.