[CentOS] compiling libarchive

Fri Sep 5 14:26:27 UTC 2008
Peter Kjellstrom <cap at nsc.liu.se>

On Friday 05 September 2008, Mag Gam wrote:
> Got libarchive compiled fine, now trying to compile archivemount I
> keep getting this error now:
>
> gcc -D_FILE_OFFSET_BITS=64 -O2 -DNDEBUG -Wall -W -MM archivemount.c > dep
> gcc -larchive -lfuse -o archivemount archivemount.o

Unless I'm mistaken, order is significant. put "-larchive -lfuse" 
after "archivemount.o"

/Peter

> archivemount.o(.text+0x1474): In function `save':
> : undefined reference to `archive_write_set_compression_gzip'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20080905/baddb029/attachment-0005.sig>