Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

libsdl_mixer.debug (59.3 KB) - added by andrius.laikina@… 15 years ago.
clean install, debug enabled
libsdl_mixer.portfile.patch (1.0 KB) - added by stephan.diederich@… 15 years ago.
restrict libsdl_mixer to 32bit; allow libsdl-devel dependency
libsdl_mixer.debug.2 (150.0 KB) - added by gentoomeo@… 15 years ago.
libsdl_mixer-install_against_patched_libsdl.rtf (97.7 KB) - added by godisgovernment@… 15 years ago.
libsdl_mixer-install_against_patched_libsdl.txt (96.4 KB) - added by skymoo (Adam Mercer) 15 years ago.

Download all attachments as: .zip

Change History (40)

comment:1 Changed 15 years ago by info@…

Sorry - should be renamed to:

libsdl_mixer fails to build under Snow Leopard ...

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Summary: smpeg-0.4.4 fails to build under Snow Leopardlibsdl_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

comment:4 Changed 15 years ago by alexguo@…

Cc: alexguo@… added

Cc Me!

comment:5 Changed 15 years ago by lstoll@…

Cc: lstoll@… added

Cc Me!

comment:6 Changed 15 years ago by andrius.laikina@…

Cc: andrius.laikina@… added

Cc Me!

Changed 15 years ago by andrius.laikina@…

Attachment: libsdl_mixer.debug added

clean install, debug enabled

comment:7 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:8 Changed 15 years ago by arnaud.demouhy@…

Cc: arnaud.demouhy@… added

Cc Me!

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:10 Changed 15 years ago by domiman@…

Cc: domiman@… added

Cc Me!

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.

comment:13 Changed 15 years ago by gentoomeo@…

Cc: gentoomeo@… added

Cc Me!

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:15 Changed 15 years ago by godisgovernment@…

Cc: godisgovernment@… added

Cc Me!

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@…

Changed 15 years ago by skymoo (Adam Mercer)

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:19 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:20 Changed 15 years ago by domiman@…

comment:21 Changed 15 years ago by bgrupe27

Cc: bgrupe@… added

Cc Me!

comment:22 Changed 15 years ago by aetaric@…

Cc: aetaric@… added

Cc Me!

comment:23 Changed 15 years ago by ih-mon@…

Cc: ih-mon@… added

Cc Me!

comment:24 Changed 15 years ago by smibrahim@…

Cc: smibrahim@… added

Cc Me!

comment:25 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:26 Changed 15 years ago by roberto.ranon@…

Cc: roberto.ranon@… added

Cc Me!

comment:27 Changed 15 years ago by macfreek (Freek Dijkstra)

Cc: software@… added

Cc Me!

comment:28 Changed 15 years ago by s.jolit@…

Cc: s.jolit@… added

Cc Me!

comment:29 Changed 15 years ago by s.jolit@…

Cc: s.jolit@… removed

Cc Me!

comment:30 Changed 15 years ago by s.jolit@…

Cc: s.jolit@… added

Cc Me!

comment:31 Changed 15 years ago by arturoc@…

Cc: arturoc@… added

Cc Me!

comment:32 Changed 15 years ago by nchaimov@…

Cc: nchaimov@… added

Cc Me!

comment:33 Changed 15 years ago by koverholt@…

Cc: koverholt@… added

Cc Me!

comment:34 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Keywords: LP64 added; SnowLeopard removed
Resolution: fixed
Status: newclosed
Summary: libsdl_mixer fails to build under Snow Leopardlibsdl_mixer fails to build 64-bit

comment:35 Changed 15 years ago by de5ton56@…

Cc: de5ton56@… added

Cc Me!

Note: See TracTickets for help on using tickets.