Opened 14 years ago
Closed 14 years ago
#28445 closed defect (invalid)
libsdl_net 1.2.7 +universal build failure
Reported by: | paynter@… | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | libsdl_net |
Description
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.
Attachments (1)
Change History (6)
Changed 14 years ago by paynter@…
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Owner: | changed from macports-tickets@… to jmr@… |
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
comment:2 Changed 14 years ago 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
comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:4 Changed 14 years ago 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.
comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Ok, that explains it; removing and reinstalling MacPorts was what I was going to suggest. Glad you got it working!
Port Log File