#20325 closed defect (fixed)
libsdl_mixer fails to build 64-bit
Reported by: | info@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | LP64 | Cc: | alexguo@…, lstoll@…, andrius.laikina@…, macports@…, arnaud.demouhy@…, domiman@…, gentoomeo@…, godisgovernment@…, macports@…, bgrupe27, aetaric@…, ih-mon@…, smibrahim@…, macports@…, roberto.ranon@…, macfreek (Freek Dijkstra), s.jolit@…, arturoc@…, nchaimov@…, koverholt@…, jmroot (Joshua Root), de5ton56@… |
Port: | libsdl_mixer |
Description (last modified by mf2k (Frank Schima))
make: *** [build/native_midi_mac.lo] Error 1 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/(...)libsdl_mixer/work/SDL_mixer-1.2.8" && /usr/bin/nice -n 10 /usr/bin/make -j3 all " returned error 2 Command output: ./native_midi/native_midi_mac.c:239: error: 'gTunePlayer' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'native_midi_start': ./native_midi/native_midi_mac.c:251: error: 'gTunePlayer' undeclared (first use in this function) ./native_midi/native_midi_mac.c:260: error: 'kTuneStartNow' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'native_midi_stop': ./native_midi/native_midi_mac.c:310: error: 'gTunePlayer' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'native_midi_active': ./native_midi/native_midi_mac.c:322: error: 'gTunePlayer' undeclared (first use in this function) ./native_midi/native_midi_mac.c:324: error: 'TuneStatus' undeclared (first use in this function) ./native_midi/native_midi_mac.c:324: error: expected ';' before 'ts' ./native_midi/native_midi_mac.c:326: error: 'ts' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'native_midi_setvolume': ./native_midi/native_midi_mac.c:335: error: 'gTunePlayer' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'BuildTuneSequence': ./native_midi/native_midi_mac.c:432: error: 'kFirstDrumkit' undeclared (first use in this function) ./native_midi/native_midi_mac.c:434: error: 'kFirstGMInstrument' undeclared (first use in this function) ./native_midi/native_midi_mac.c:504: error: 'kControllerVolume' undeclared (first use in this function) ./native_midi/native_midi_mac.c:516: error: 'kControllerPan' undeclared (first use in this function) ./native_midi/native_midi_mac.c:567: error: 'kControllerPitchBend' undeclared (first use in this function) ./native_midi/native_midi_mac.c:618: error: 'kEndMarkerValue' undeclared (first use in this function) ./native_midi/native_midi_mac.c: In function 'BuildTuneHeader': ./native_midi/native_midi_mac.c:627: error: 'myNoteRequest' undeclared (first use in this function) ./native_midi/native_midi_mac.c:628: error: 'NoteAllocator' undeclared (first use in this function) ./native_midi/native_midi_mac.c:628: error: expected ';' before 'myNoteAllocator' ./native_midi/native_midi_mac.c:633: error: 'myNoteAllocator' undeclared (first use in this function) ./native_midi/native_midi_mac.c:638: error: 'kNoteAllocatorComponentType' undeclared (first use in this function) ./native_midi/native_midi_mac.c:661: error: 'kGeneralEventNoteRequest' undeclared (first use in this function) ./native_midi/native_midi_mac.c:662: error: expected expression before ')' token ./native_midi/native_midi_mac.c:688: error: 'kEndMarkerValue' undeclared (first use in this function) make: *** [build/native_midi_mac.lo] Error 1
Attachments (5)
Change History (40)
comment:1 Changed 15 years ago by info@…
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Summary: | smpeg-0.4.4 fails to build under Snow Leopard → libsdl_mixer fails to build under Snow Leopard |
comment:3 Changed 15 years ago by tobypeterson
Please file bugs with the output of 'port -d build' ... otherwise not very useful
Changed 15 years ago by andrius.laikina@…
Attachment: | libsdl_mixer.debug added |
---|
clean install, debug enabled
Changed 15 years ago by stephan.diederich@…
Attachment: | libsdl_mixer.portfile.patch added |
---|
restrict libsdl_mixer to 32bit; allow libsdl-devel dependency
comment:9 Changed 15 years ago by stephan.diederich@…
seems like sdl_mixer can't be build in 64bit as it uses 32bit only API from Quicktime:
./native_midi/native_midi_mac.c:49: error: 'NoteRequest' undeclared here (not in a function)
Things I've done to get it to build:
- to fix above I added few things to the Portfile:
- universal_variant no
- configure.build_arch i386
- fixed libsdl/libsdl-devel dependency
- arch (-arch i386) isn't set for libtool in Makefile.in so I added
configure.ldflags-append "-arch i386"
to the Portfile
- there are 2 extra rules in Makefile.in that need -arch i386. Hacked:
$(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET) $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) -arch i386 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET) $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) -arch i386
Besides building this is totally untested :/
HTH, stephan
comment:11 Changed 15 years ago by domiman@…
with the patch applied and SDL devel installed successfully, mixer still wants to build SDL 1.2.x (and of course fails). I checked that it reads depends_lib path:lib/pkgconfig/sdl.pc:libsdl \ in the port file.
comment:12 Changed 15 years ago by domiman@…
sorry, disregard my above post. The dependency came from smpeg. Need to aplly its patches, too.
Changed 15 years ago by gentoomeo@…
Attachment: | libsdl_mixer.debug.2 added |
---|
comment:14 Changed 15 years ago by gentoomeo@…
After applying the patch above and installing libsdl-devel instead of libsdl, it still doesn't work. I attached the debug output.
comment:16 Changed 15 years ago by tobypeterson
Yes, the patch is bogus. Unfortunately I am unable to delete patches.
comment:17 Changed 15 years ago by godisgovernment@…
libsdl now installs ok, using the patch here I've attached more complete output of port -d install libsdl_mixer. What is the reason this fails? This is a ridiculously large blocker...
Changed 15 years ago by godisgovernment@…
Attachment: | libsdl_mixer-install_against_patched_libsdl.rtf added |
---|
Changed 15 years ago by skymoo (Adam Mercer)
Attachment: | libsdl_mixer-install_against_patched_libsdl.txt added |
---|
comment:18 Changed 15 years ago by skymoo (Adam Mercer)
uploaded the build log as a text file so it can be viewed without downloading
comment:20 Changed 15 years ago by domiman@…
current svn has some fixes for Snow Leopard http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_mixer/gcc-fat.sh?view=log#rev4750
comment:34 Changed 15 years ago by jmroot (Joshua Root)
Cc: | jmr@… added |
---|---|
Keywords: | LP64 added; SnowLeopard removed |
Resolution: | → fixed |
Status: | new → closed |
Summary: | libsdl_mixer fails to build under Snow Leopard → libsdl_mixer fails to build 64-bit |
Sorry - should be renamed to:
libsdl_mixer fails to build under Snow Leopard ...