% perlcc tcap -o tcap.out [millions of lines of spam deleted] % ldd tcap: -lgdbm.2 => /usr/local/lib/libgdbm.so.2.0 (0x400bd000) -lm.0 => /usr/lib/libm.so.0.1 (0x400c3000) -lc.23 => /usr/lib/libc.so.23.1 (0x400d7000) /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/IO/IO.so (0x40181000) /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/Fcntl/Fcntl.so (0x401850 00) It occurs to me that people are going to want a static way to build these. Right now, everything links against those two Perl shared library files. That's not going to make folks happy, because they still can't run these anywhere without a full perl installation. In fact, they won't be able to run them anywhere that doesn't have nearly THE SAME installation! It's not good enough just to add a -static. That works for the system ones, but not for the Perl ones. It seems to me that something in the build process is going to have to change. One has to be able to load those from *.a or *.o files, not just from *.so files. Oh, (fyi Simon) those last two aren't needed. This builds fine: cc -static -fno-strict-aliasing -I/usr/local/include -I/usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/CORE -o tcap.out tcap.c -L/usr/local/lib -L/usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/CORE -lperl -lgdbm -lm -lc /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/DynaLoader/DynaLoader.a --tomThread Next