Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63014 closed defect (fixed)

libquicktime: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'

Reported by: adrianch Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: catalina bigsur Cc:
Port: libquicktime

Description

Here's the console output:

$ sudo port install libquicktime
--->  Computing dependencies for libquicktime
--->  Fetching archive for libquicktime
--->  Attempting to fetch libquicktime-1.2.4_11.darwin_19.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libquicktime
--->  Attempting to fetch libquicktime-1.2.4_11.darwin_19.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/libquicktime
--->  Attempting to fetch libquicktime-1.2.4_11.darwin_19.x86_64.tbz2 from https://kmq.jp.packages.macports.org/libquicktime
--->  Building libquicktime
Error: Failed to build libquicktime: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

This is what I can see from the log:

:info:build /bin/sh ../../libtool --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/include/libpng16 -DLOCALE_DIR=\"/opt/local/share/locale\" -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64  -finline-functions -Wall -Winline -Wmissing-declarations -Wdeclaration-after-statement -fvisibility=hidden -MT qtpng.lo -MD -MP -MF .deps/qtpng.Tpo -c -o qtpng.lo qtpng.c
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/include/libpng16 -DLOCALE_DIR=\"/opt/local/share/locale\" -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -finline-functions -Wall -Winline -Wmissing-declarations -Wdeclaration-after-statement -fvisibility=hidden -MT qtpng.lo -MD -MP -MF .deps/qtpng.Tpo -c qtpng.c  -fno-common -DPIC -o .libs/qtpng.o
:info:build qtpng.c:74:5: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
:info:build     memcpy(data, codec->buffer + codec->buffer_position, length);
:info:build     ^
:info:build qtpng.c:74:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
:info:build qtpng.c:213:7: error: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
:info:build   if(!strcasecmp(key, "png_compression_level"))
:info:build       ^
:info:build qtpng.c:213:7: note: include the header <strings.h> or explicitly provide a declaration for 'strcasecmp'
:info:build 2 errors generated.
:info:build make[3]: *** [qtpng.lo] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/work/libquicktime-1.2.4/plugins/png'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/work/libquicktime-1.2.4/plugins'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/work/libquicktime-1.2.4'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/work/libquicktime-1.2.4'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libquicktime/libquicktime/work/libquicktime-1.2.4" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2
:error:build Failed to build libquicktime: command execution failed 

Change History (4)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: catalina bigsur added
Summary: Fail to install libquicktimelibquicktime: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'

Sure, we can fix the implicit declaration of function error. There are several other open issues about this port that may still exist after we fix this issue.

comment:2 Changed 3 years ago by adrianch

Hi,

Please note, besides 'memcpy', there is another compilation error in the log that I have posted:

error: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration].

Noted about other open issues that may cause failures with this port. Thanks for letting me know.

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In a26d95cea0a89c4dc1a3b73f536e2aa502d16c46/macports-ports (master):

libquicktime: Fix implicit declaration of functions

Closes: #63014

Port still doesn't build though. See other tickets.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Since this still doesn't build, use the libquicktime-devel port for now.

Note: See TracTickets for help on using tickets.