Tux beats windows
Site Informations
SITE ADMINISTRATOR:
Gillen Daniel
VISITORS:
xmount 0.6.0 not building
forum.png


Submitted by fab on Tue, 07/15/2014 - 11:34

I'm in progress to update xmount to 0.6.0 for the Fedora Package Collection. Now I'm running in to build issues:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4dDJD2
+ umask 022
[snip]
checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for fuse... yes
checking libewf.h usability... yes
checking libewf.h presence... yes
checking for libewf.h... yes
checking afflib/afflib.h usability... yes
checking afflib/afflib.h presence... yes
checking for afflib/afflib.h... yes
checking for an ANSI C-conforming const... yes
checking for int64_t... yes
[snip]
make all-am
make[1]: Entering directory `/home/fab/Documents/repos/packages/xmount/xmount-0.6.0'
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -lz -c -o xmount-md5.o `test -f 'md5.c' || echo './'`md5.c
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -lz -c -o xmount-xmount.o `test -f 'xmount.c' || echo './'`xmount.c
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -lz -c -o xmount-aaff.o `test -f 'libaaff/aaff.c' || echo './'`libaaff/aaff.c
xmount.c: In function 'GetOrigImageSize':
xmount.c:648:7: warning: passing argument 2 of 'ddSize' from incompatible pointer type [enabled by default]
if((rc=ddSize(hDdFile,size))!=DD_OK) {
^
In file included from xmount.c:68:0:
libdd/dd.h:31:5: note: expected 'long long unsigned int *' but argument is of type 'uint64_t *'
int ddSize (t_pdd pdd, unsigned long long *pSize);
^
xmount.c:680:9: warning: passing argument 2 of 'AaffSize' from incompatible pointer type [enabled by default]
if((rc=AaffSize(hAaffFile,size))!=AAFF_OK) {
^
In file included from xmount.c:70:0:
libaaff/aaff.h:31:5: note: expected 'long long unsigned int *' but argument is of type 'uint64_t *'
int AaffSize (t_pAaff pAaff, unsigned long long *pSize);
^
xmount.c: In function 'GetOrigImageData':
xmount.c:800:7: warning: pointer targets in passing argument 3 of 'ddRead' differ in signedness [-Wpointer-sign]
if((rc=ddRead(hDdFile,offset,buf,ToRead))!=DD_OK) {
^
In file included from xmount.c:68:0:
libdd/dd.h:32:5: note: expected 'unsigned char *' but argument is of type 'char *'
int ddRead (t_pdd pdd, unsigned long long Seek, unsigned char *pBuffer, unsigned int Count);
^
xmount.c:849:9: warning: pointer targets in passing argument 3 of 'AaffRead' differ in signedness [-Wpointer-sign]
if((rc=AaffRead(hAaffFile,offset,buf,ToRead))!=AAFF_OK) {
^
In file included from xmount.c:70:0:
libaaff/aaff.h:32:5: note: expected 'unsigned char *' but argument is of type 'char *'
int AaffRead (t_pAaff pAaff, unsigned long long Seek, unsigned char *pBuffer, unsigned int Count);
^
xmount.c:856:9: warning: pointer targets in passing argument 2 of 'af_read' differ in signedness [-Wpointer-sign]
if(af_read(hAffFile,buf,ToRead)!=ToRead) {
^
In file included from xmount.c:63:0:
/usr/include/afflib/afflib.h:230:11: note: expected 'unsigned char *' but argument is of type 'char *'
ssize_t af_read(AFFILE *af,unsigned char *buf,ssize_t count);
^
xmount.c: In function 'GetVirtFileAttr':
xmount.c:1643:5: warning: pointer targets in passing argument 1 of 'GetVirtImageSize' differ in signedness [-Wpointer-sign]
if(!GetVirtImageSize(&(stbuf->st_size))) {
^
xmount.c:718:12: note: expected 'uint64_t *' but argument is of type '__off_t *'
static int GetVirtImageSize(uint64_t *size) {
^
xmount.c: In function 'CalculateInputImageHash':
xmount.c:2241:5: warning: pointer targets in passing argument 2 of 'md5_append' differ in signedness [-Wpointer-sign]
md5_append(&md5_state,buf,HASH_AMOUNT);
^
In file included from xmount.c:73:0:
md5.h:83:6: note: expected 'const md5_byte_t *' but argument is of type 'char *'
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
^
xmount.c:2242:5: warning: pointer targets in passing argument 2 of 'md5_finish' differ in signedness [-Wpointer-sign]
md5_finish(&md5_state,hash);
^
In file included from xmount.c:73:0:
md5.h:90:6: note: expected 'md5_byte_t *' but argument is of type 'char *'
void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
^
xmount.c: In function 'InitVirtImageInfoFile':
xmount.c:2527:8: warning: unused variable 'buf' [-Wunused-variable]
char buf[200];
^
xmount.c: In function 'main':
xmount.c:2916:7: warning: passing argument 3 of 'ddOpen' from incompatible pointer type [enabled by default]
if((rc=ddOpen(&hDdFile,InputFilenameCount,ppInputFilenames))!=DD_OK) {
^
In file included from xmount.c:68:0:
libdd/dd.h:29:5: note: expected 'const char **' but argument is of type 'char **'
int ddOpen (t_pdd *ppdd, unsigned FilenameArrLen, const char **pFilenameArr);
^
libaaff/aaff.c: In function 'AaffRead':
libaaff/aaff.c:426:22: warning: 'FoundPage' may be used uninitialized in this function [-Wmaybe-uninitialized]
if ((FoundPage % pAaff->Interleave) == 0)
^
libaaff/aaff.c:417:23: note: 'FoundPage' was declared here
unsigned long long FoundPage;
^
gcc -fno-strict-aliasing -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -lz -Wl,-z,relro -o xmount xmount-md5.o xmount-xmount.o xmount-aaff.o -lafflib -lfuse -pthread
xmount-xmount.o: In function `GetOrigImageSize':
/home/fab/Documents/repos/packages/xmount/xmount-0.6.0/xmount.c:648: undefined reference to `ddSize'
xmount-xmount.o: In function `GetOrigImageData':
/home/fab/Documents/repos/packages/xmount/xmount-0.6.0/xmount.c:800: undefined reference to `ddRead'
xmount-xmount.o: In function `main':
/home/fab/Documents/repos/packages/xmount/xmount-0.6.0/xmount.c:2916: undefined reference to `ddOpen'
/home/fab/Documents/repos/packages/xmount/xmount-0.6.0/xmount.c:3088: undefined reference to `ddClose'
collect2: error: ld returned 1 exit status
make[1]: *** [xmount] Error 1
make[1]: Leaving directory `/home/fab/Documents/repos/packages/xmount/xmount-0.6.0'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.iDH6DX (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.iDH6DX (%build)

Perhaps you can point me in the right direction to fix this. Thanks

Comments

Submitted by gida on Tue, 07/15/2014 - 20:11

I have an idea but need to investigate this further. Will post as soon as I know what's going wrong.

Submitted by gida on Sun, 09/28/2014 - 16:30

This problem should be fixed now in v0.7.0.