<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4646636489710030687</id><updated>2011-09-26T07:52:11.660-04:00</updated><category term='linux'/><category term='zoom slider'/><category term='snow leopard'/><category term='devkitpro'/><category term='kernel'/><category term='p4c800 bios flash arrrg'/><category term='keyboard'/><category term='64bit'/><category term='mac os x'/><category term='devkitarm'/><category term='gba'/><category term='linux hardware resolved hard drives'/><category term='wine'/><category term='port'/><category term='osx'/><category term='xmodmap'/><category term='riiga josh linux treijim hardware hard drive'/><category term='microsoft natural'/><title type='text'>Ben Heiskell's Blog</title><subtitle type='html'>This is a technical blog that outlines problems I run into and the solutions I find for them. Typically, these will involve Linux and Mac OS X administration as well as developmental problems in various programming languages.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-2840722228948708285</id><published>2010-01-30T16:27:00.001-05:00</published><updated>2010-01-30T16:27:20.949-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux hardware resolved hard drives'/><title type='text'>Follow Up on Linux Hardware Issues</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Fortunately, the hard drive problem seems to have been rooted in the cables. Unfortunately, after&amp;nbsp;maneuvering&amp;nbsp;them out of the case, I'm not 100% sure which one was causing the problem. &amp;nbsp;To hopefully avoid a future problem, I moved the one I think has the issue to my internal backup drive. This is what I get for zip&amp;nbsp;tying&amp;nbsp;them for cosmetic appeal. Live and learn.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-2840722228948708285?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/2840722228948708285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2010/01/follow-up-on-linux-hardware-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/2840722228948708285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/2840722228948708285'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2010/01/follow-up-on-linux-hardware-issues.html' title='Follow Up on Linux Hardware Issues'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-2350272987982216580</id><published>2010-01-26T20:18:00.002-05:00</published><updated>2010-01-30T16:28:07.663-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='riiga josh linux treijim hardware hard drive'/><title type='text'>Life Changes and Future Plans</title><content type='html'>Since this is suppose to be a technical blog, I'll keep personal details to a minimum. However, to provide some context of my&amp;nbsp;absence, I believe and update is in order. I graduated from GT early December and spent the next month planning and executing a move to Norwalk CT. Last week I started a new job in with a company by the name of &lt;a href="http://www.factset.com/"&gt;FactSet&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Moving on, my legacy of being endlessly haunted by Linux hardware errors continues. To be fair, I don't believe this new issue is actually Linux's fault however. One of my harddrives is performing a hard reset quite often. Unfortunately this is part of my boot partition's raid array.&lt;br /&gt;&lt;br /&gt;I'm striping two old raptor drives using fake raid. (Yes, I know, bad idea.) Regular backups have ensured that all my data is safe. Never the less, I'm attempting to avoid having to reinstall the system. It's possible that since both smartmontools and badblocks have reported no errors, the problem is actually with a cable. Of course, it's also possible that it's a problem with the controller on this motherboard. I've already had problems with the nvidia controller on this board.&lt;br /&gt;&lt;br /&gt;Since that will probably warrant a later blog post, I'll instead discuss a future project that I'm working out with a close friend of mine, &lt;a href="http://treijim.penscribbles.com/"&gt;Treijim&lt;/a&gt;. We're planning a custom application for a fictional role playing forum of his. Most of the ideas that are currently on the table are actually posted on his blog. I'm currently in the process of exploring ER diagrams and prototype mockups.&lt;br /&gt;&lt;br /&gt;In&amp;nbsp;parallel, I'm searching for a good web framework to develop on.&amp;nbsp;Although I'd much rather learn a new language, I think due to wide spread server&amp;nbsp;availability, we'll likely end up using PHP. I'm thinking about exploring CakePHP due to what seems like quality security features built directly into the framework.&lt;br /&gt;&lt;br /&gt;In the meantime, a lot is still up in the air. More updates will be posted as plans are finalized. I plan to make this project as open as possible for my own sanity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-2350272987982216580?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/2350272987982216580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2010/01/life-changes-and-future-plans.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/2350272987982216580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/2350272987982216580'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2010/01/life-changes-and-future-plans.html' title='Life Changes and Future Plans'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-7160557826788580005</id><published>2009-11-18T14:49:00.002-05:00</published><updated>2010-01-26T19:59:42.615-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='p4c800 bios flash arrrg'/><title type='text'>Asus P4C800 Rev 2</title><content type='html'>This board has been my latest personal hell. Back in the year 2005, my Asus P4C800 Deluxe fried. After taking their time, Asus sent me a replacement board. I simply assumed that it was a Deluxe and reinstalled it.&amp;nbsp;Unfortunately, it was actually a P4C800 Rev 2. There are three models of the P4C800: P4C800, P4C800 deluxe, and P4C800-e deluxe. From what I can tell online, the Rev 2 is actually the e deluxe, but it looks like a hacked together mix between the P4C800 and the e deluxe.&lt;br /&gt;&lt;br /&gt;This is where I made a mistake. One night when trying to get suspend to work in Linux, I decided to flash this board. I flashed it without checking what bios version was already on there. Stupid. Worse, since I knew it wasn't the deluxe (because the updater rejected the bios), I assumed it was the e deluxe. As would be expected, after the flash, the system wont boot. Flash forward a few days, and I've managed to force a flash downgrading the system to a P4C800.&lt;br /&gt;&lt;br /&gt;Now looking back, I honestly can't remember what the board was originally and which bios I first forced onto the board. Never flash bios when tired and in a rush. I still can't believe I did that. Anyways, the system suffered from random shutoffs. I assumed this was due to the flash. (Honestly I can't be sure one way or the other now.) Over time these flickers grew increasingly annoying. So, I tried another flash. That time I managed to brick the board.&lt;br /&gt;&lt;br /&gt;Yesterday I received two replacement bios chips. (One is a backup for hot swapping.) The latest version of the P4C800-e deluxe bios works, but it wont reboot. The latest version of the P4C800 bios works and will reboot. Both suffer from the intermittent shutoffs, and both have bios errors referring to the IRQ routing table. At this stage, I'm pretty sure the problem either isn't a bios issue or at least isn't a bios issue that I can resolve.&lt;br /&gt;&lt;br /&gt;I installed this board into a new case with new hardware and the shutoff problems ensued. This has brought me to the conclusion that the problem has to be with the board. Removing all hardware except the bare bones still results in the shutoff. Another irritation is the problem wont normally occur when the system is idle. Also odd is the problems happen most in XP, less in Ubuntu, and the least in Windows 7. I don't know what that means exactly, but it suggests that whatever is triggering the problem may be a deprecated technique that modern OS's don't use. Though it may be that the board is just getting old and needs to be tossed.&lt;br /&gt;&lt;br /&gt;However, the two things that keep bring me back to suspecting the bios are: the coinciding timing of the first shut offs / bios flash and the fact that the board looks like a P4C800 with a Rev 2 sticker slapped on it instead of a P4C800-e deluxe board. There might be some bios out there that will stabilize this system that I have yet to find. I should probably contact Asus.&lt;br /&gt;&lt;br /&gt;Although I'm sure this isn't the conclusion to this story, it should be noted that suspend still doesn't work. :(&lt;br /&gt;&lt;br /&gt;Edit - 28/10/2010:&lt;br /&gt;This is the conclusion, because the pieces are now sitting in a box. My brother upgraded and let me keep his old hardware, which is newer than the P4C800. I'm now looking for a good way to get rid of this old hardware.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-7160557826788580005?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/7160557826788580005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2009/11/asus-p4c800-rev-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/7160557826788580005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/7160557826788580005'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2009/11/asus-p4c800-rev-2.html' title='Asus P4C800 Rev 2'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-1689261058289135304</id><published>2009-10-30T12:19:00.001-04:00</published><updated>2009-10-30T12:22:00.962-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac os x'/><category scheme='http://www.blogger.com/atom/ns#' term='devkitarm'/><category scheme='http://www.blogger.com/atom/ns#' term='devkitpro'/><category scheme='http://www.blogger.com/atom/ns#' term='gba'/><title type='text'>GBA Development on a Mac</title><content type='html'>In my media devices architecture class, we are developing on the GBA. Unfortunately, most of the students are developing on windows machines, which leaves me and a few others the odd men out. On macs, we're using devkitarm as our compiler with a provided makefile. Unfortunately, the Makefile had a few flags misconfigured.&lt;br /&gt;&lt;br /&gt;The stock makefile worked perfectly until we started dealing with sound. The problem was two fold:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Setting the interrupt handler would cause the GBA to reset&lt;/li&gt;&lt;li&gt;Sound files larger than thirty seconds would overflow the ewram&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;There were two macros in the make file that were used for compiling and linking respectively:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;MODEL = -mthumb -mthumb-interwork&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;SPECS = -specs=gba_mb.specs&lt;br /&gt;&lt;/blockquote&gt;&lt;div&gt;The model affects how the assembly is compiled, and the specs defines the way the linker will link the c objects together. I figured out that mthumb wasn't needed by looking at the windows makefile. Removing it resolved the rebooting issue.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I knew that the overflow had to do with the linker, because that's where it failed.&amp;nbsp;I was at the point where I was actually trying to modify the linker script to manually force the audio memory to go to the right region when I realized there was a second gba .specs file.&amp;nbsp;Switching to that file resolved the issue.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The resulting makefile macros are as followed:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;MODEL = -mthumb-interwork&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;SPECS = -specs=gba.specs&lt;br /&gt;&lt;/blockquote&gt;&lt;div&gt;I am not a compiler expert. So, I can't tell you the full implications of changing these flags, but it did work for me. &amp;nbsp;I'm still working on what I believe to be a compiler bug and plan to submit a bug report soon. If it turns out to be interesting, I'll make another post here.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-1689261058289135304?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/1689261058289135304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/gba-development-on-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/1689261058289135304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/1689261058289135304'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/gba-development-on-mac.html' title='GBA Development on a Mac'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-8884360238329714913</id><published>2009-10-26T21:09:00.002-04:00</published><updated>2009-10-30T12:21:04.458-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zoom slider'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft natural'/><category scheme='http://www.blogger.com/atom/ns#' term='keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='xmodmap'/><title type='text'>Microsoft Natural Ergonomic Keyboard in Linux</title><content type='html'>I decided I wanted to enable the zoom key on my "Microsoft Natural Ergonomic Keyboard 4000" under Linux.&amp;nbsp; Ideally, this would be used for scrolling up and down a page instead of triggering Compiz's zoom feature.&lt;br /&gt;&lt;br /&gt;Unfortunately, the kernel fix is triaged on &lt;a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/264287"&gt;ubuntu's bugtracker&lt;/a&gt;.&amp;nbsp; This of course meant recompiling the kernel manually (or semi-manually since Ubuntu makes this task relatively easy).&amp;nbsp; You'll notice, if you care to check, that there is a patch in the bugtracker to remap the zoom and spellcheck keys to something that xev (and therefore X11) can read.&lt;br /&gt;&lt;br /&gt;If you don't know how to recompile your kernel, this fix probably isn't for you. However, should you choose to proceed anyways (or if you're just not familiar with recompiling your kernel under Ubuntu), you can find &lt;a href="https://help.ubuntu.com/community/Kernel/Compile#AltBuildMethod"&gt;instructions for recompiling Ubuntu's kernel here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Once you've downloaded and uncompressed the source, edit "/usr/src/linux-source-*/include/linux/input.h".&amp;nbsp; Search for ZOOMIN, ZOOMOUT, and SPELLCHECK and change these constants to match the following:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#define KEY_ZOOMIN         246     /* AC Zoom In */&lt;br /&gt;#define KEY_ZOOMOUT        247     /* AC Zoom Out */&lt;br /&gt;...&lt;br /&gt;#define KEY_SPELLCHECK     235     /* AL Spell Check */ &lt;br /&gt;&lt;/blockquote&gt;Keep in mind that if some other input device already uses these key codes, then you'll have a conflict. Otherwise, once you've recompiled your kernel, you should be able to access these buttons in Gnome now. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Additional Information&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;What does this do and why do we do it?&amp;nbsp; From my understanding, the reason this is a problem is X11 can't read key codes above a 255.&amp;nbsp; Although this is a bug with X11, we can modify the kernel to remap these keys to a value lower.&amp;nbsp; This enables X11 to read them and thus Gnome to use them.&lt;br /&gt;&lt;br /&gt;I dislike patch files for problems that are not going to be fixed, because they often break on the next kernel release.&amp;nbsp; This is why I chose to manually edit the file instead of offer a patch file&lt;br /&gt;&lt;br /&gt;If you recompile your kernel, you'll likely have to recompile any other third party drivers you have installed. For instance, I had to recompile my Nvidia driver after rebooting. I also had to purge the nvidia-common package.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mapping to Page Up / Down&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Next, I wanted to map 246 and 247 to page up and page down respectively. To do this, I edited my ~/.Xmodmap file to include:&lt;br /&gt;&lt;blockquote&gt;keycode 254 = Prior&lt;br /&gt;keycode 255 = Next&lt;br /&gt;&lt;/blockquote&gt;You can activate this by running "xmodmap ~/.Xmodmap" or adding the command to startup applications.&amp;nbsp; However, the next time you log in, I think you'll get an option to enable this automatically without having to add it to startup apps.&amp;nbsp; (I haven't setup xmodmap in a while, because I already use it to swap caplocks and escape... yes, I'm a vim user.)&lt;br /&gt;&lt;br /&gt;Good luck.&amp;nbsp; Feel free to leave problems, suggestions, or any thoughts in the comments.&lt;br /&gt;&lt;br /&gt;Edit:&lt;br /&gt;I should note that I have since reverted to a stock kernel. For some reason the recompiled kernel would kill my mouse periodically.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-8884360238329714913?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/8884360238329714913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/microsoft-natural-ergonomic-keyboard-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/8884360238329714913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/8884360238329714913'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/microsoft-natural-ergonomic-keyboard-in.html' title='Microsoft Natural Ergonomic Keyboard in Linux'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-1923224283228125313</id><published>2009-10-21T11:54:00.000-04:00</published><updated>2009-10-21T11:56:26.092-04:00</updated><title type='text'>Hello World</title><content type='html'>I'm tired of running into technical problems, finding a solution, and not having a place to publish my solutions.  So, in hopes of saving others a headache, I'm starting this blog to list technical solutions I find to various problems I encounter.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-1923224283228125313?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/1923224283228125313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/hello-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/1923224283228125313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/1923224283228125313'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/hello-world.html' title='Hello World'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646636489710030687.post-6333048268128884742</id><published>2009-10-21T08:56:00.002-04:00</published><updated>2009-10-21T12:24:36.673-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='port'/><category scheme='http://www.blogger.com/atom/ns#' term='mac os x'/><category scheme='http://www.blogger.com/atom/ns#' term='64bit'/><category scheme='http://www.blogger.com/atom/ns#' term='snow leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='osx'/><category scheme='http://www.blogger.com/atom/ns#' term='wine'/><title type='text'>Mac OS X Snow Leopard Port Wine</title><content type='html'>Currently, wine is not happy with my 64bit upgrade to Snow Leopard.  Just for the record, I find no fault in either port or wine for this, because I was an early adopter.  I upgraded port with a simple reinstall. (I know there are more elegant solutions than this, but I was being lazy.) After upgrading port, installing wine resulted in the following error:&lt;div&gt;&lt;blockquote&gt;Error: wine 1.0.1 is not compatible with Mac OS X 10.6 or later. Until wine 1.2 is released, please install wine-devel instead.&lt;/blockquote&gt;This is pretty straightforward.  Obviously, the next step was "port install wine-devel". However, I was promptly stopped with another error in the following format:&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;Error: You cannot install wine-devel for the architecture(s) i386&lt;/div&gt;&lt;div&gt;Error: because /opt/local/lib/libjpeg.dylib only contains the architecture(s) x86_64.&lt;/div&gt;&lt;div&gt;Error: Try reinstalling the port that provides /opt/local/lib/libjpeg.dylib with the +universal variant.&lt;/div&gt;&lt;div&gt;Error: Target org.macports.extract returned: incompatible architectures in dependencies&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;I'm not too familiar with port or the complexities of 64bit architectures working with 32bit binaries, but I do understand the principle behind OS X's universal (fat) binaries. After googling around a bit I discovered that the way to compile in the universal format is with the following command:&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;sudo port upgrade --enforce-variants jpeg +universal&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;The part that hung me up was figuring out which package was associated with that file.  After digging around in the man page I found the following solution:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;port provides /opt/local/lib/libjpeg.dylib&lt;/blockquote&gt;That's it! Just keep installing the dependencies and retrying "sudo port install wine-devel".  After about eight dependencies are recompiled, you'll be finished.  Good luck.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;P.S. If this is not the most elegant solution, since I'm sure it's not, feel free to leave a comment and I'll correct my entry.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4646636489710030687-6333048268128884742?l=etherealpanda.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://etherealpanda.blogspot.com/feeds/6333048268128884742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/mac-os-x-snow-leopard-port-wine.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/6333048268128884742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646636489710030687/posts/default/6333048268128884742'/><link rel='alternate' type='text/html' href='http://etherealpanda.blogspot.com/2009/10/mac-os-x-snow-leopard-port-wine.html' title='Mac OS X Snow Leopard Port Wine'/><author><name>Ben Heiskell</name><uri>http://www.blogger.com/profile/04052340408374886122</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
