spidermonkey-shlibs build failure

Christian Ebert <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Phloxic Productions https://phloxic.productions
Message-ID <[email protected]>
Hi,

On Mac OS Catalina 10.15.7 (19H1419) spidermonkey-shlibs fail to 
build like so:

[...]
sudo -u fink-bld [ENV] sh -c /tmp/fink.OEpJQ
[ -r /opt/sw/fink/dists/stable/main/finkinfo/libs/spidermonkey.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink.t__Xx
sed -e 's,@FINKPREFIX@,/opt/sw,g' /opt/sw/fink/dists/stable/main/finkinfo/libs/spidermonkey.patch | patch -p2
patching file Makefile.ref
patching file config/Darwin.mk
patching file config/Linux_All.mk
patching file config.mk
patching file fdlibm/Makefile.ref
patching file jsprf.c
patching file rules.mk
sudo -u fink-bld [ENV] sh -c /tmp/fink.Xqkqr
/tmp/fink.tyGfm
#!/bin/sh -ev

make -j1 -f Makefile.ref LIBDIR="/lib" SO_SUFFIX="dylib" JS_THREADSAFE=1 JS_HAS_FILE_OBJECT=1
cat: ../../dist/Darwin_OPT.OBJ/nspr/Version: No such file or directory
cd editline; /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.ref all
gcc -o Darwin_OPT.OBJ/editline.o -c -Wall -Wno-format -no-cpp-precomp -fno-common -pipe -DXP_UNIX -O -DJS_THREADSAFE -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN -DJS_C_STRINGS_ARE_UTF8  -UDEBUG -DNDEBUG -UDEBUG_fink-bld  -DJSFILE  -DANSI_ARROWS -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY editline.c
In file included from <built-in>:366:
<command line>:12:18: warning: extra tokens at end of #undef directive [-Wextra-tokens]
#undef DEBUG_fink-bld
                  ^
                  //
editline.c:314:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)Prompt);
             ^~~~~~~~~~~~~~~~~~~~
editline.c:507:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)NEWLINE);
             ^~~~~~~~~~~~~~~~~~~~~
editline.c:508:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)Prompt);
             ^~~~~~~~~~~~~~~~~~~~
editline.c:660:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)Prompt);
             ^~~~~~~~~~~~~~~~~~~~
editline.c:665:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)Prompt);
             ^~~~~~~~~~~~~~~~~~~~
editline.c:1026:13: warning: passing 'const CHAR *' (aka 'const unsigned char *') to parameter of type 'CHAR *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
     TTYputs((CONST CHAR *)Prompt);
             ^~~~~~~~~~~~~~~~~~~~
editline.c:1038:13: error: implicit declaration of function 'getpid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
         (void)kill(getpid(), s);
                    ^
editline.c:1051:29: warning: passing 'CHAR *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
     if (H.Size && strcmp(p, H.Lines[H.Size - 1]) == 0)
                             ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/string.h:77:43: note: passing argument to parameter '__s2' here
int      strcmp(const char *__s1, const char *__s2);
                                               ^
8 warnings and 1 error generated.
make[1]: *** [Darwin_OPT.OBJ/editline.o] Error 1
make: *** [all] Error 2
### execution of /tmp/fink.tyGfm failed, exit code 2
### execution of /tmp/fink.Xqkqr failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-spidermonkey-1.7.0-4
(Reading database ... 164978 files and directories currently installed.)
Removing fink-buildlock-spidermonkey-1.7.0-4 ...
Failed: phase compiling: spidermonkey-1.7.0-4 failed

Before reporting any errors, please run "fink selfupdate" and try again.

If you continue to have issues, please check to see if the FAQ on Fink's 
website solves the problem.  If not, ask on one (not both, please) of
these mailing lists:

	The Fink Users List <[email protected]>
	The Fink Beginners List <[email protected]>.

Please try to include the complete error message in your report.  This
generally consists of a compiler line starting with e.g. "gcc" or "g++"
followed by the actual error output from the compiler.

Also include the following system information:
Package manager version: 0.45.3
Distribution version: selfupdate-git Sat Sep 25 11:21:44 2021, 10.15, x86_64
Trees: local/main stable/main local/injected
Xcode.app: 12.4
Xcode command-line tools: 12.4.0.0.1.1610135815
Max. Fink build jobs:  1


Maybe noteworthy: This happened right after the latest Catalina 
security update to 10.15.7. I had to install xcode CLI tools 
manually because they were not found by pkgutil 
--pkg-info=com.apple.pkg.CLTools_Executables. By manually I mean 
via download from Apple Dev and installer. xcode-select --install 
claimed they were already there ...

TIA

Christian

-- 
LAST SHIP HOME                      --->> https://lastshiphome.de
Official Selection                          DOK.fest München 2018
German Ocean Film Award                        CineMare Kiel 2019
Best Documentary Feature   Wales International Film Festival 2020


_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.