Monthly Archive for March, 2008

Compiling p7zip for OSX 10.4

p7zip is a unix command line version of the 7-zip program.  Generally, the algorithm used by 7-zip to compress files (LZMA) produces smaller files than zip, gzip, and bzip2.  Recently I tried installing it on my work laptop, an Apple MacBook Pro, by downloading and compiling from source (version 4.57).  Compilation finished just fine but whenever I tried running the command line utility, it would crap out and give the following message:

dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
Trace/BPT trap

After searching for a little bit, the fix for this is simple: just remove the -s flag from the ALLFLAGS=${OPTFLAGS} line in makefile.machine. Recompile the code, install it, and it works fine. According to the gcc man page, the -s removes “all symbol table and relocation information from the executable”. This is probably just a problem with the compiler on OSX Tiger.

make
sudo make install