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

5 Responses to “Compiling p7zip for OSX 10.4”


  1. 1 _ _

    First

  2. 2 Andrea

    Yaawn. You need to update more b/c your girlfriend is getting bored. Just slightly >: )

  3. 3 bikefridaywalter

    why don’t you just use 7zX?

  4. 4 iamstuffed

    I wanted a command line utility, which is probably why I never found 7zX during my search. I downloaded 7zX and it seems that it’s only a drag and drop utility. Thanks for the suggestion.

  5. 5 jchien

    Thanks, Stuffed. Found this post through Google and used this to compile p7zip 4.58 on Leopard. I also wanted the command line functionality of 7zip.

Leave a Reply