[MacPorts] #20325: smpeg-0.4.4 fails to build under Snow Leopard
#20325: smpeg-0.4.4 fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ {{{ 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 }}} -- Ticket URL: <http://trac.macports.org/ticket/20325> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: smpeg-0.4.4 fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by info@…): Sorry - should be renamed to: libsdl_mixer fails to build under Snow Leopard ... -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Description changed by macsforever2000@…: Old description:
{{{ 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 }}}
New description: {{{ 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 }}} -- -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by toby@…): Please file bugs with the output of 'port -d build' ... otherwise not very useful -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(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 -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by domiman@…): sorry, disregard my above post. The dependency came from smpeg. Need to aplly its patches, too. -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by gentoomeo@…): After applying the patch above and installing libsdl-devel instead of libsdl, it still doesn't work. I attached the debug output. -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by toby@…): Yes, the patch is bogus. Unfortunately I am unable to delete patches. -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by godisgovernment@…): libsdl now installs ok, using the patch [http://trac.macports.org/ticket/20235#comment:126 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... -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(by ram@…): uploaded the build log as a text file so it can be viewed without downloading -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build under Snow Leopard ---------------------------------+------------------------------------------ Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: SnowLeopard | Port: libsdl_mixer ---------------------------------+------------------------------------------ Comment(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 -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20325: libsdl_mixer fails to build 64-bit ----------------------------------+----------------------------------------- Reporter: info@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: LP64 Port: libsdl_mixer | ----------------------------------+----------------------------------------- Changes (by jmr@…): * cc: jmr@… (added) * keywords: SnowLeopard => LP64 * status: new => closed * resolution: => fixed Comment: r58317 -- Ticket URL: <http://trac.macports.org/ticket/20325#comment:34> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts