Opened 6 years ago

Last modified 6 years ago

#57225 closed defect

libewf won't build after port upgrade — at Version 1

Reported by: Klaskviker Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: testdisk

Description (last modified by jmroot (Joshua Root))

after port seftupdate && port upgrade outdated, libewf no longer builds on El Capitan as a dependency of testdisk:

Making all in src
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/work/testdisk-7.0/src'
  CC       autoset.o
  CC       common.o
  CC       crc.o
  CC       ewf.o
clangclang: : clangwarningclang: : warningwarning: warning: argument unused during compilation: '-fnested-functions'argument unused during compilation: '-fnested-functions'
: : argument unused during compilation: '-fnested-functions'argument unused during compilation: '-fnested-functions'


In file included from crc.c:29:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
In file included from autoset.c:27:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
1 warning generated.
In file included from ewf.c:52:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
1 warning generated.
} __attribute__ ((gcc_struct, __packed__));
                  ^
In file included from ewf.c:60:
In file included from /opt/local/include/libewf.h:25:
In file included from /opt/local/include/libewf/codepage.h:25:
/opt/local/include/libewf/types.h:172:9: warning: 'HAVE_OFF64_T' macro redefined [-Wmacro-redefined]
#define HAVE_OFF64_T    1
        ^
../config.h:261:9: note: previous definition is here
#define HAVE_OFF64_T 0
        ^
In file included from common.c:49:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
  CC       fnctdsk.o
ewf.c:182:4: error: use of undeclared identifier 'LIBEWF_OPEN_READ_WRITE'; did you mean 'LIBEWF_ACCESS_FLAG_WRITE'?
          LIBEWF_OPEN_READ_WRITE,
          ^~~~~~~~~~~~~~~~~~~~~~
          LIBEWF_ACCESS_FLAG_WRITE
/opt/local/include/libewf/definitions.h:43:2: note: 'LIBEWF_ACCESS_FLAG_WRITE' declared here
        LIBEWF_ACCESS_FLAG_WRITE                                = 0x02,
        ^
  CC       hdaccess.o
ewf.c:398:30: warning: unused parameter 'disk' [-Wunused-parameter]
static int fewf_sync(disk_t *disk)
                             ^
ewf.c:409:12: warning: implicit declaration of function 'libewf_handle_read_random' is invalid in C99 [-Wimplicit-function-declaration]
  taille = libewf_handle_read_random(
           ^
ewf.c:440:12: warning: implicit declaration of function 'libewf_handle_write_random' is invalid in C99 [-Wimplicit-function-declaration]
  taille = libewf_handle_write_random(
           ^
ewf.c:460:52: warning: unused parameter 'buffer' [-Wunused-parameter]
static int fewf_nopwrite(disk_t *disk, const void *buffer, const unsigned int count, const uint64_t offset)
                                                   ^
6 warnings and 1 error generated.
make[2]: *** [ewf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
clang: warningclang: : argument unused during compilation: '-fnested-functions'
warning: argument unused during compilation: '-fnested-functions'
In file included from fnctdsk.c:35:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
In file included from hdaccess.c:44:
./common.h:37:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
1 warning generated.
hdaccess.c:138:19: warning: unknown attribute 'gcc_struct' ignored [-Wunknown-attributes]
} __attribute__ ((gcc_struct, __packed__));
                  ^
hdaccess.c:579:62: warning: unused parameter 'hd_h' [-Wunused-parameter]
static void disk_get_geometry(CHSgeometry_t *geom, const int hd_h, const char *device, const int verbose)
                                                             ^
hdaccess.c:937:38: warning: unused parameter 'hd_h' [-Wunused-parameter]
static void disk_get_model(const int hd_h, disk_t *dev, const unsigned int verbose)
                                     ^
hdaccess.c:937:52: warning: unused parameter 'dev' [-Wunused-parameter]
static void disk_get_model(const int hd_h, disk_t *dev, const unsigned int verbose)
                                                   ^
hdaccess.c:937:76: warning: unused parameter 'verbose' [-Wunused-parameter]
static void disk_get_model(const int hd_h, disk_t *dev, const unsigned int verbose)
                                                                           ^
hdaccess.c:1291:56: warning: unused parameter 'buf' [-Wunused-parameter]
static int file_nopwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset)
                                                       ^
hdaccess.c:1521:41: warning: cast from 'unsigned char *' to 'unsigned long *' increases required alignment from 1 to 8 [-Wcast-align]
    if(memcmp(buffer,"DOSEMU",6)==0 && *(unsigned long*)(buffer+11)>0)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
hdaccess.c:1524:33: warning: cast from 'unsigned char *' to 'unsigned long *' increases required alignment from 1 to 8 [-Wcast-align]
      disk_car->geom.cylinders=*(unsigned long*)(buffer+15);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
hdaccess.c:1525:42: warning: cast from 'unsigned char *' to 'unsigned long *' increases required alignment from 1 to 8 [-Wcast-align]
      disk_car->geom.heads_per_cylinder=*(unsigned long*)(buffer+7);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
hdaccess.c:1526:40: warning: cast from 'unsigned char *' to 'unsigned long *' increases required alignment from 1 to 8 [-Wcast-align]
      disk_car->geom.sectors_per_head=*(unsigned long*)(buffer+11);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
hdaccess.c:1528:25: warning: cast from 'unsigned char *' to 'unsigned long *' increases required alignment from 1 to 8 [-Wcast-align]
      disk_car->offset=*(unsigned long*)(buffer+19);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
hdaccess.c:209:21: warning: unused function 'hd_glob_parse' [-Wunused-function]
static list_disk_t *hd_glob_parse(const char *device_pattern, list_disk_t *list_disk, const int verbose, const int testdisk_mode)
                    ^
1 warning generated.
13 warnings generated.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/work/testdisk-7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/work/testdisk-7.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/work/testdisk-7.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/work/testdisk-7.0" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build testdisk: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_testdisk/testdisk/main.log for details.
Error: rev-upgrade failed: Error rebuilding testdisk
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
sh-3.2# 

testdisk's dependencies (osxfuse) were previously built by copying MacOSX10.11.sdk into Xcode 8.2.1' SDK folder.

Change History (1)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Description: modified (diff)
Milestone: MacPorts 2.7.0
Priority: HighNormal
Note: See TracTickets for help on using tickets.