Opened 3 years ago

Closed 3 years ago

#63250 closed defect (fixed)

memcacheq @0.2.0_2: error: implicit declaration of function 'daemonize'

Reported by: cooljeanius (Eric Gallager) Owned by: cofyc.jackson@…
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: bigsur catalina haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: memcacheq

Description

Another victim of -Werror=implicit-function-declaration being on by default now:

/usr/bin/clang -DHAVE_CONFIG_H -I.   -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include -I/opt/local/include/db47 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk  -pipe -Os -std=gnu89 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -MT daemon.o -MD -MP -MF .deps/daemon.Tpo -c -o daemon.o daemon.c
mv -f .deps/hash.Tpo .deps/hash.Po
mv -f .deps/thread.Tpo .deps/thread.Po
mv -f .deps/daemon.Tpo .deps/daemon.Po
memcacheq.c:2222:15: error: implicit declaration of function 'daemonize' [-Werror,-Wimplicit-function-declaration]
        res = daemonize(maxcore, settings.verbose);
              ^
memcacheq.c:2222:15: note: did you mean 'daemon'?
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdlib.h:292:6: note: 'daemon' declared here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
         ^
1 error generated.
make[1]: *** [memcacheq.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/item.Tpo .deps/item.Po
mv -f .deps/hashtable.Tpo .deps/hashtable.Po
mv -f .deps/bdb.Tpo .deps/bdb.Po
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_memcacheq/memcacheq/work/memcacheq-0.2.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_memcacheq/memcacheq/work/memcacheq-0.2.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_memcacheq/memcacheq/work/memcacheq-0.2.0" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build memcacheq: command execution failed
DEBUG: Error code: CHILDSTATUS 89829 2

Change History (3)

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

Cc: cofyc.jackson@… removed
Owner: set to cofyc.jackson@…
Status: newassigned

New upstream URL is https://github.com/stvchu/memcacheq. See also #53467. "New" version 0.2.1 (from 2014) is available there and the port should be updated to that but it does not fix this. I have filed a bug report: https://github.com/stvchu/memcacheq/issues/7

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

Cc: ryandesign added
Keywords: haspatch added

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

Resolution: fixed
Status: assignedclosed

In ef77dd88a739291dcf7c1db96d7c065a9da7198b/macports-ports (master):

memcacheq: Update to 0.2.1; fix implicit func decl

Update to 0.2.1. Fix implicit function declaration. Indicate BSD
license. Project has moved to GitHub.

Closes: #63250
See: #53467

Note: See TracTickets for help on using tickets.