Problems compiling xfsdump on Debian unstable
I am trying to compile the latest xfsdump from the git repository.
While I can compile it on Debian stable (jessie) and testing(stretch), I have problems compiling it on Debian unstable.
I think the problem is because of new software on Debian unstable.
One fragment of the errors that I get when linking the .o files:
cldmgr.o: In function `cldmgr_create':/home/cal/source.xfsdump/git-xfsdump/dump/cldmgr.c:82: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/cldmgr.c:101: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/cldmgr.c:86: undefined reference to `_'
content_common.o: In function `Media_prompt_change':/home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:65: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:69: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:74: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:80: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:83: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:85: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:86: undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:106:
undefined reference to `_' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:112:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:117:
undefined reference to `_' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:121:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:108:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:109:
undefined reference to `_' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:112:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:117:
undefined reference to `_' /home/cal/source.xfsdump/git-xfsdump/dump/content_common.c:121:
undefined reference to `assert'
dlog.o: In function `dlog_string_query_print':/home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:362: undefined reference to `assert'
dlog.o: In function `promptinput':/home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:508: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:486: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:503: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:513: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:499: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:490: undefined reference to _'
dlog.o: In function `dlog_init':/home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:60: undefined reference to `assert'
dlog.o: In function `dlog_multi_query':/home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:189: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:221: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:257: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:213: undefined reference to _'
dlog.o: In function `dlog_string_query':/home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:298: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/dlog.c:310: undefined reference to _'
drive.o: In function `drive_alloc':/home/cal/source.xfsdump/git-xfsdump/dump/drive.c:359: undefined reference to `assert'
drive.o: In function `drive_init1':/home/cal/source.xfsdump/git-xfsdump/dump/drive.c:91: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:145: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:218: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:223: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:172: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:186: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:110: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:155: undefined reference to _' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:132: undefined reference to `_'
drive.o: In function `drive_allochdrs':/home/cal/source.xfsdump/git-xfsdump/dump/drive.c:414: undefined reference to assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive.c:400: undefined reference to assert'
drive_scsitape.o: In function `do_get_align_cnt':/home/cal/source.xfsdump/git-xfsdump/dump/drive_scsitape.c:2132:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive_scsitape.c:2133:
undefined reference to `assert' /home/cal/source.xfsdump/git-xfsdump/dump/drive_scsitape.c:2134:
undefined reference to `assert'
Software on testing that may makes a difference:
gcc --version
gcc (Debian 4.9.3-3) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
dpkg --status xfslibs-dev
Package: xfslibs-dev
Status: install ok installed
Priority: extra
Section: libdevel
Installed-Size: 80
Maintainer: XFS Development Team <[email protected]>
Architecture: amd64
Source: xfsprogs
Version: 3.2.1
Depends: libc6-dev | libc-dev, uuid-dev, xfsprogs (>= 3.0.0)
Breaks: xfsprogs (<< 3.0.0)
Description: XFS filesystem-specific static libraries and headers
On Debian unstable:
gcc --version
gcc (Debian 5.2.1-23) 5.2.1 20151028
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0 2 Dom Nov 01 15:02:32 CWD=~/source.xfsdump/git-xfsdump [email protected][3895]>dpkg --status xfslibs-dev
Package: xfslibs-dev
Status: install ok installed
Priority: extra
Section: libdevel
Installed-Size: 219
Maintainer: XFS Development Team <[email protected]>
Architecture: amd64
Source: xfsprogs
Version: 4.2.0
Depends: libc6-dev | libc-dev, uuid-dev, xfsprogs (>= 3.0.0)
Breaks: xfsprogs (<< 3.0.0)
Description: XFS filesystem-specific static libraries and headers
Why is important to me to compile xfsdump on unstable. Because it was removed from Debian testing and
because of that the amanda software was removed too. As the maintainer of amanda for Debian I am doing
my best to fix this problem.
I am not on the list.
Kind regards
Jose M Calhariz
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Jose M Calhariz
I am trying to compile the latest xfsdump from the git repository.
While I can compile it on Debian stable (jessie) and testing(stretch), I have problems compiling it on Debian unstable.
I think the problem is because of new software on Debian unstable.
Known issue - xfsdump had an unhealthy dependency on the unclean header files that shipped with xfsprogs. We sanitised the xfsprogs headers in 4.2.0, and didn't notice that xfsdump started complaining because my build machine was still using 3.2.4 headers to build xfsdump.
I have patches under review to fix the xfsdump problems, I'll be doing a release of it as soon as the review is finished...
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Hi Jose,
----- Original Message -----
Quoted 1 line
I am trying to compile the latest xfsdump from the git repository.
The underlying problem was related to changes in xfsprogs header files which had unanticipated dependencies in xfsdump - Dave has been working through all these issues (iow, removing the unanticipated dependencies, by updating xfsdump code) and the next release of xfsdump will resolve this build failure. It's not a trivial change though, so our best bet (IMO) is to wait on those upstream changes from Dave and then get a new package build into unstable & testing.
cheers.
--
Nathan
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs