[MacPorts] #48792: dvdisaster: build failure OS X 10.7 Intel Mac
MacPorts
noreply at macports.org
Tue Sep 19 16:27:58 UTC 2023
#48792: dvdisaster: build failure OS X 10.7 Intel Mac
-------------------------+-----------------------
Reporter: RobK88 | Owner: mklein-de
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: dvdisaster |
-------------------------+-----------------------
Comment (by RobK88):
As noted above, `dvdisaster` will build just fine on Lion using
`clang-9.0`. But it will NOT build using `clang-15` or `clang-16`. See
attached `main-clang-16.log`.
In particular, one sees:
{{{
Compiling: codec.c
2 warnings generated.
make: *** read jobs pipe: Resource temporarily unavailable. Stop.
make: *** Waiting for unfinished jobs....
Compiling: decimate.c
codec.c:184:7: error: call to undeclared library function 'memcpy' with
type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do
not support implicit function declarations [-Wimplicit-function-
declaration]
memcpy(tile_db[idx], new_tile, sizeof(tile));
^
codec.c:184:7: note: include the header <string.h> or explicitly provide a
declaration for 'memcpy'
codec.c:328:47: error: call to undeclared library function 'strerror' with
type 'char *(int)'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
Stop("Write error in bz2 library: %s\n",strerror(errno));
^
codec.c:328:47: note: include the header <string.h> or explicitly provide
a declaration for 'strerror'
2 warnings generated.
codec.c:401:26: error: call to undeclared library function 'strlen' with
type 'unsigned long (const char *)'; ISO C99 and later do not support
implicit function declarations [-Wimplicit-function-declaration]
unsigned int len = strlen(pi->name);
^
codec.c:401:26: note: include the header <string.h> or explicitly provide
a declaration for 'strlen'
codec.c:518:7: error: call to undeclared library function 'strncmp' with
type 'int (const char *, const char *, unsigned long)'; ISO C99 and later
do not support implicit function declarations [-Wimplicit-function-
declaration]
if(strncmp(header, ".pngpack", 8))
^
codec.c:518:7: note: include the header <string.h> or explicitly provide a
declaration for 'strncmp'
codec.c:698:8: error: call to undeclared library function 'memcmp' with
type 'int (const void *, const void *, unsigned long)'; ISO C99 and later
do not support implicit function declarations [-Wimplicit-function-
declaration]
if(!memcmp(pi->checksum, checksum, 16))
^
codec.c:698:8: note: include the header <string.h> or explicitly provide a
declaration for 'memcmp'
5 errors generated.
gmake[1]: *** [Makefile:87: codec.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
Compiling: md5.c
decimate.c:34:15: error: call to undeclared library function 'strlen' with
type 'unsigned long (const char *)'; ISO C99 and later do not support
implicit function declarations [-Wimplicit-function-declaration]
char tname[strlen(thumb_dir)+strlen(name)+2];
^
decimate.c:34:15: note: include the header <string.h> or explicitly
provide a declaration for 'strlen'
decimate.c:50:4: error: call to undeclared library function 'memcpy' with
type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do
not support implicit function declarations [-Wimplicit-function-
declaration]
memcpy(thumb, pi, sizeof(Image));
^
decimate.c:50:4: note: include the header <string.h> or explicitly provide
a declaration for 'memcpy'
2 errors generated.
gmake[1]: *** [Makefile:87: decimate.o] Error 1
md5.c:162:25: warning: 'memset' call operates on objects of type 'struct
MD5Context' while the size is based on a different type 'struct MD5Context
*' [-Wsizeof-pointer-memaccess]
memset(ctx, 0, sizeof (ctx)); /* In case it's sensitive */
~~~ ^~~
md5.c:162:25: note: did you mean to dereference the argument to 'sizeof'
(and multiply it by the number of elements)?
memset(ctx, 0, sizeof (ctx)); /* In case it's sensitive */
^~~
1 warning generated.
Unpacking images (may take a while) ... /opt/local/bin/bash: line 1:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_dvdisaster/dvdisaster/work/dvdisaster-0.72.3/tools/pngpack:
No such file or directory
common de en ru - done
2 warnings generated.
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_dvdisaster/dvdisaster/work/dvdisaster-0.72.3'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_dvdisaster/dvdisaster/work/dvdisaster-0.72.3"
&& /usr/bin/make -j4 -w all CC=/opt/local/bin/clang-mp-16
Exit code: 2
Error: Failed to build dvdisaster: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_dvdisaster/dvdisaster/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port dvdisaster failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/48792#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list