[MacPorts] #28445: libsdl_net 1.2.7 +universal build failure
#28445: libsdl_net 1.2.7 +universal build failure ---------------------------------+------------------------------------------ Reporter: paynter@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libsdl_net ---------------------------------+------------------------------------------ I am trying to install the dosbox port and it requires libsdl_net built for i386 architecture. I am running MacOS 10.6.6, so this requires the +universal variant. However, when I build libsdl_net with this variant I get an error. I am attaching the log to this ticket. -- Ticket URL: <https://trac.macports.org/ticket/28445> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28445: libsdl_net 1.2.7 +universal build failure ---------------------------------+------------------------------------------ Reporter: paynter@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libsdl_net ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => jmr@… Comment: The log says: {{{ :info:build ld: warning: in /opt/local/lib/libSDL.dylib, file was built for unsupported file format which is not the architecture being linked (i386) }}} So it sounds like libsdl is not installed universal. What's the output of: {{{ port -v installed libsdl lipo -info /opt/local/lib/libSDL.dylib }}} -- Ticket URL: <https://trac.macports.org/ticket/28445#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28445: libsdl_net 1.2.7 +universal build failure ---------------------------------+------------------------------------------ Reporter: paynter@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libsdl_net ---------------------------------+------------------------------------------ Comment(by paynter@…): {{{ $ port -v installed libsdl None of the specified ports are installed. $ lipo -info /opt/local/lib/libSDL.dylib Non-fat file: /opt/local/lib/libSDL.dylib is architecture: x86_64 }}} I believe it is installing the x86_64 build correctly but choking on the i386 part. Just to be sure, the log above came about after the following commands sudo port uninstall libsdl_net sudo port clean --all libsdl_net sudo port install libsdl_net +universal -- Ticket URL: <https://trac.macports.org/ticket/28445#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28445: libsdl_net 1.2.7 +universal build failure ---------------------------------+------------------------------------------ Reporter: paynter@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libsdl_net ---------------------------------+------------------------------------------ Comment(by ryandesign@…): You have the sdl library, but you do not have the libsdl port installed, which provides that library. That is inexplicable and wrong. Please remove /opt/local/lib/libSDL.dylib since I don't know where it came from, then install the libsdl port. -- Ticket URL: <https://trac.macports.org/ticket/28445#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28445: libsdl_net 1.2.7 +universal build failure ---------------------------------+------------------------------------------ Reporter: paynter@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libsdl_net ---------------------------------+------------------------------------------ Comment(by paynter@…): I'm so sorry. I am an idiot. The reason why the library is already there is because I had a hard drive crash recently and restored from a backup. I then reinstalled MacPorts but didn't erase the /opt folder first. I did that and reinstalled from scratch and everything worked great. You can close the ticket. Thank you so much for helping and I'm sorry for the trouble. FYI, just deleting the libSDL.dylib file did not fix the problem. -- Ticket URL: <https://trac.macports.org/ticket/28445#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28445: libsdl_net 1.2.7 +universal build failure ----------------------------------+----------------------------------------- Reporter: paynter@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: libsdl_net | ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Ok, that explains it; removing and reinstalling MacPorts was what I was going to suggest. Glad you got it working! -- Ticket URL: <https://trac.macports.org/ticket/28445#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts