Beware of .tar.gz.1

So last night I went to upgrade this WordPress software to version 2.1. I used wget to get the latest.tar.gz from wordpress.org, and then I proceeded with the upgrade. Sadly, it did not work right away. I have done a number of upgrades and they all went very smoothly, so I was distressed. I googled around for the error message I was getting, “It doesn’t look like you’ve installed WP yet. Try running install.php.” It turns out this does happen sometimes and the typical problem is that the user_level of the admin user in table wp_users gets reset to 0, when in fact it should be 10. I entered the SQL commands manually to update this, and things once again worked. It was then that I realized what happened; I had just downgraded to version 1.5 by accident, because a latest.tar.gz already existed in my download directory. The new one was automatically named latest.tar.gz.1. Grr! Fortunately, I did make a backup before attempting the upgrade, so I restored version 2.0.5, and then did the upgrade to 2.1 without incident. Oops.

Advertisements

-mpreferred-stack-boundary=2 is not between 4 and 12

I received this error trying to cross-compile a kernel module for i386 on an x86-64 system. I had already cross-compiled and successfully booted an i386 kernel, so I thought my environment was setup correctly. Anyways, using the following Makefile, I received the following errors.

KDIR:=/lib/modules/$(shell uname -r)/build

obj-m := util.o

default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
$(RM) .*.cmd *.mod.c *.o *.ko -r .tmp* *~

$ ARCH=i386 make
make -C /home/jmmccune/Desktop/linux-2.6.20-rc5 SUBDIRS=/mnt/code/kmod modules
make[1]: Entering directory `/home/jmmccune/Desktop/linux-2.6.20-rc5′
CC [M] /mnt/code/kmod/util.o
/mnt/code/kmod/util.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12
make[2]: *** [/mnt/code/kmod/util.o] Error 1
make[1]: *** [_module_/mnt/code/kmod] Error 2
make[1]: Leaving directory `/home/jmmccune/Desktop/linux-2.6.20-rc5′
make: *** [default] Error 2

The problem turned out to be with the clean: entry in the Makefile. I had made the clean: line in the above Makefile manually, thinking that deleting the necessary local files was sufficient. Apparently that is not the case. Using this instead, everything works:


clean:
make -C $(KDIR) M=$(PWD) clean

Senuti

So I got a new Macbook Pro and I decided to make it the primary home of my photos and movies, instead of my Mac Mini. Copying my photos was as simple as copying the entire “~/Pictures/iPhoto Library” folder to the same location on the new machine. Do take care that iPhoto is not running while you do this.

To move my music over, I used Senuti, which, like its name implies, is basically iTunes backwards. It treats the iPod as the center of the universe, and let’s you selectively move things to the local iTunes library. Things can include your entire music library, all playlists, and all metadata like ratings and number of times played. I got slightly confused by its instructions, thinking I was supposed to drag things from the Senuti window to the iTunes window. That’s not true, just drag them around within Senuti. Also, take care to change Senuti’s preferences such that either (1) iTunes does not automatically manage your song files and folders, or (2) Senuti copies the files directly into your “~/Music/iTunes/iTunes Music” folder. I went with the later, since I like having iTunes automatically manage my files and folders. If you don’t do one of these things, you end up with two copies of everything. Learn more at the Senuti FAQ.