Wednesday, May 22, 2013

Ports extracting on old freebsd (7.2 my), xz inappropriate file type or format

Before starting compiling libarchive, i put spawn.h to /usr/include, because in my system it doesn't existed.

CC     libarchive/filter_fork_posix.lo
libarchive/filter_fork_posix.c:61:21: error: spawn.h: No such file or directory
*** Error code 1

Stop in /usr/ports/archivers/libarchive/work/libarchive-3.1.2.
*** Error code 1

# cd /usr/include/
# wget https://gist.github.com/OmIkRoNiXz/5625492/raw/71b8edba74636f513a0e301a2da12caa2d68f417/spawn.h

Now i can install libarchive.

# cd /usr/ports/archivers/libarchive 
# make install clean

# ln -sf /usr/local/bin/bsdtar /usr/bin/tar

And it all!

4 comments:

snak-pak said...

Thanks, I had the same problem and this was helpful!

snak-pak said...
This comment has been removed by the author.
warbenekar1 said...

Had the same issue on 7.4 - thanks.
Glad to have that working again.

rex.zhasm's space said...

that's just what i need!
thanks dude.