Error compiling TPP 4.5.2 in Fedora 16 libarchive

115 views
Skip to first unread message

GATTACA

unread,
Mar 30, 2012, 10:16:50 AM3/30/12
to spctools-discuss
Hello.

I'm trying to install the latest-n-greatest version of TPP (4.5.2) on
a Fedora 16 (64bit) linux box. This is a fresh install that is fully
updated.

I ran the centos prerequisite script to ensure I had all the required
packages.

I then went to the src directory and began the compile with: make

Eventually I get a long list of errors. Here is just the top snippet:
/usr/local/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libtpp.a(tpp_tarball.o): In function
`tarball_info::allocate_archive_entry_hdr(char const*, unsigned int)':
tpp_tarball.cpp:(.text+0x21): undefined reference to
`archive_entry_new'
tpp_tarball.cpp:(.text+0x2f): undefined reference to
`archive_entry_set_pathname'
tpp_tarball.cpp:(.text+0x3d): undefined reference to
`archive_entry_set_atime'
tpp_tarball.cpp:(.text+0x48): undefined reference to
`archive_entry_set_gid'
tpp_tarball.cpp:(.text+0x52): undefined reference to
`archive_entry_set_size'
tpp_tarball.cpp:(.text+0x5d): undefined reference to
`archive_entry_set_mode'
/usr/local/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libtpp.a(tpp_tarball.o): In function
`tpp_tarball::create_memberfile(char const*, char const*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
tpp_tarball.cpp:(.text+0x4ff): undefined reference to
`archive_entry_free'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libtpp.a(tpp_tarball.o): In function `tarball_read_next(tarinfo*,
char**)':
tpp_tarball.cpp:(.text+0xb5b): undefined reference to
`archive_entry_pathname'
tpp_tarball.cpp:(.text+0xbe6): undefined reference to
`archive_entry_pathname'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libtpp.a(tpp_tarball.o): In function
`read_dta_or_out_from_tgz_file(char*, char*, char*, int)':
tpp_tarball.cpp:(.text+0xf01): undefined reference to
`archive_entry_pathname'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read.o): In function
`archive_read_new':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read.c:88: undefined reference to
`archive_entry_new'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read.o): In function
`archive_read_next_header':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read.c:306: undefined reference to
`archive_entry_clear'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read.o): In function
`archive_read_finish':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read.c:661: undefined reference to
`archive_entry_free'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read_support_format_ar.o): In
function `ar_parse_common_header':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:414: undefined reference
to `archive_entry_set_mtime'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:416: undefined reference
to `archive_entry_set_uid'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:418: undefined reference
to `archive_entry_set_gid'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:420: undefined reference
to `archive_entry_set_mode'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:426: undefined reference
to `archive_entry_set_size'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read_support_format_ar.o): In
function `archive_read_format_ar_read_header':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:276: undefined reference
to `archive_entry_copy_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:278: undefined reference
to `archive_entry_mode'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:277: undefined reference
to `archive_entry_set_mode'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:403: undefined reference
to `archive_entry_copy_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:318: undefined reference
to `archive_entry_copy_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:349: undefined reference
to `archive_entry_set_size'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:371: undefined reference
to `archive_entry_copy_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:380: undefined reference
to `archive_entry_copy_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:385: undefined reference
to `archive_entry_mode'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_ar.c:384: undefined reference
to `archive_entry_set_mode'
/usr/local/apps/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libarchive.a(libarchive_la-archive_read_support_format_cpio.o): In
function `archive_read_format_cpio_read_header':
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_cpio.c:243: undefined reference
to `archive_entry_set_pathname'
/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7/
libarchive/archive_read_support_format_cpio.c:247: undefined reference
to `archive_entry_filetype'

There is a lot more but you get the idea.
I downloaded and tried to compile from the SVN (revision 5782) but
that also failed.

Any suggestions what might be wrong or how to fix it?


Thanks

GATTACA

unread,
Mar 30, 2012, 4:25:28 PM3/30/12
to spctools-discuss
In case it helps:

I looked at the first error encountered:
/usr/local/tpp/TPP-4.5.2/src/../build/RedHat-x86_64/
libtpp.a(tpp_tarball.o): In function
`tarball_info::allocate_archive_entry_hdr(char const*, unsigned int)':
tpp_tarball.cpp:(.text+0x21): undefined reference to
`archive_entry_new'

In the tpp_tarball.cpp file it looks like for some reason, the
compiler isn't finding the libarchive header files.

I also tried replacing the libarchive tar ball inside the extern
directory but that didn't help.

I tried downgrading to TPP 4.5.1 but that also failed to compile.

Any suggestions are welcome.

Joseph Slagel

unread,
Mar 30, 2012, 4:57:40 PM3/30/12
to spctools...@googlegroups.com
I'd start by seeing if there were libarchive build issues.  Try changing to the libarchive directory (/usr/local/apps/tpp/TPP-4.5.2/build/RedHat-x86_64/libarchive-2.2.7) and "make clean; ./configure -disable-shared; make all" to see if it builds cleanly.


--
You received this message because you are subscribed to the Google Groups "spctools-discuss" group.
To post to this group, send email to spctools...@googlegroups.com.
To unsubscribe from this group, send email to spctools-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spctools-discuss?hl=en.


GATTACA

unread,
Mar 30, 2012, 7:17:31 PM3/30/12
to spctools-discuss
Thanks Joseph.
Good advice!

It looks like libarchive is the culprit. I get the following error:


In file included from libarchive/archive_entry.c:55:0:
/usr/include/linux/ext2_fs.h:178:41: error: unknown type name
'umode_t'
make[1]: *** [libarchive/libarchive_la-archive_entry.lo] Error 1


Searching the web I found a post about this error:
http://comments.gmane.org/gmane.comp.file-systems.ext4/31668
It looks to be a Fedora problem.

The last date is March 27 2012 so they haven't resolved it yet.



On Mar 30, 4:57 pm, Joseph Slagel <Joseph.Sla...@systemsbiology.org>
wrote:

GATTACA

unread,
Mar 31, 2012, 10:48:56 AM3/31/12
to spctools-discuss
In case anyone else runs into this problem:
I was able to get TPP to compile by installing these packages.
Here is the full command (as root):

yum install e2fsprogs-devel e2fsprogs e2fsprogs-libs e2fsprogs-static

The ext2_fs.h issue I was encountering was fixed with one of these
packages.

Thanks again Joseph for your help, I was able to solve it once you
pointed me in the right direction.
Reply all
Reply to author
Forward
0 new messages