Skip to content
Archive of entries posted by

Email servers and the MAIL FROM syntax

If you’re into chatting with SMTP servers via telnet ( only for debugging purposes, I swear :p ), be aware that some new email servers strictly interpret RFC 2821 and appears to reject MAIL FROM and RCPT TO addresses of the form foo@example.com. Instead, it will return a 555 5.5.2 Syntax error. The proper solution [...]

Romance of the Three Kingdoms XI game event stills

In Koei’s Romance of the Three Kingdoms XI for Windows PC (non PUK, English edition), there are a total of 30 event stills ( basically, pictures of important events during a campaign, viewable under Settings -> Reference -> View Event Stills ). Upon collecting all 30 and winning any scenario to unite China, you will [...]

redhillonrails_core and broken MySQL empty string defaults

While hacking on a side project in Ruby on Rails, I ran across this weird error when trying to insert new data: ActiveRecord::StatementInvalid: Mysql::Error: Column ‘attr2′ cannot be null: INSERT INTO `foo` (`attr1`, `attr2`) … VALUES (’1′, NULL) where attr2 is a varchar (or t.string, in Rails lingo) and set to not null default ” [...]

APR and 32-bit/64-bit universal binary compilation

When compiling APR, the Apache Portable Runtime 1.3.3 (as a part of Subversion 1.5.3 as I am doing here, or not) on OS X 10.5 Leopard, you may encounter the following error at compile time. /bin/sh /tmp/subversion-1.5.3/apr/libtool –silent –mode=compile gcc-4.2 -Os -arch i386 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I/tmp/subversion-1.5.3/apr/include/arch/unix -I./include/arch/unix -I/tmp/subversion-1.5.3/apr/include/arch/unix -I/tmp/subversion-1.5.3/apr/include -o [...]

using ffmpeg for cutting media files – and the gotchas involved

So here I was, trying to complete some ordinary transcoding / media file cutting tasks with ffmpeg. Turns out there are some weird gotchas when using some versions of ffmpeg (in my case, SVN-r10571) on the commandline. Problem 1: transcoding to mp3 insists on using 64kbits/s or 128kbits/s bitrate So a simple task is to [...]

Subversion and undefined symbols

This is fast turning out to be a blog about compiling open source software. Maybe I should change the title. You may get this error while trying to compile Subversion 1.5.2:ld: Undefined symbols:_svn_fs_txn_root_base_revision referenced from libsvn expected to be defined in libsvn_svn_fs_change_txn_props referenced from libsvn expected to be defined in libsvn_svn_fs_get_mergeinfo referenced from libsvn expected [...]

GNUMake 3.80 and failed malloc

Wacky compilation error: Creating config.mak and config.h… make(4162) malloc: *** vm_allocate(size=4272971776) failed (error code=3) make(4162) malloc: *** error: can’t allocate region make(4162) malloc: *** set a breakpoint in szone_error to debug make[1]: *** virtual memory exhausted. Stop. This error has nothing to do with the particular code you’re compiling. Turns out GNU Make 3.80 has [...]

AVCodecContext, Perian, and the Xcode dylib fetish

The Context So recently I was trying to interact with an avi file with a video stream encoded in H.264 and an audio stream encoded in MP3. To my surprise, my trusty Perian 1.1 failed to even play the video and gave me a black screen (though the audio played just fine). With some Google-fu, [...]

transcode 1.0.5 invalid immediate error on Intel OS X

If you’re compiling transcode 1.0.5 from source on OS X Intel (for some odd reason, as I’ve just had to do on 10.5.4), your compile run may blow up in aclib with: tcmemcpy.c:30:missing or invalid immediate expression `0b111′ taken as 0 tcmemcpy.c:30:suffix or operands invalid for `and’ tcmemcpy.c:42:missing or invalid immediate expression `0b1000′ taken as [...]

libpng12.*.dylib related compile failures on OS X 10.5

If you’ve been having problems compiling various Unix packages on OS X 10.5.4, and that your compile run fails mysteriously with something like: i686-apple-darwin9-gcc: /usr/X11/lib/libpng12.0.26.0.dylib: No such file or directory One strange yet very likely explanation: your libtool archive file /usr/X11/lib/libpng12.la is lying about the location of the shared library for libpng12 — namely, that [...]