Opened 18 months ago
Last modified 18 months ago
#67497 new defect
javascript-lint @0.3.0: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations
Reported by: | ulrichkapp | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | javascript-lint |
Description
Terminal output:
---> Fetching archive for javascript-lint ---> Attempting to fetch javascript-lint-0.3.0_0.darwin_22.x86_64.tbz2 from https://fra.de.packages.macports.org/javascript-lint ---> Attempting to fetch javascript-lint-0.3.0_0.darwin_22.x86_64.tbz2 from https://packages.macports.org/javascript-lint ---> Attempting to fetch javascript-lint-0.3.0_0.darwin_22.x86_64.tbz2 from https://cph.dk.packages.macports.org/javascript-lint ---> Building javascript-lint Error: Failed to build javascript-lint: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_javascript-lint/javascript-lint/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port javascript-lint failed
and in the logfile the following output is stored:
… :info:build 37 warnings and 1 error generated. :info:build make[1]: *** [Darwin_DBG.OBJ/editline.o] Error 1 :info:build make: *** [all] Error 2 :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_javascript-lint/javascript-lint/work/jsl-0.3.0/src" && /usr/bin/make -j1 -f Makefile.ref CC=/usr/bin/clang :info:build Exit code: 2 :error:build Failed to build javascript-lint: command execution failed :debug:build Error code: CHILDSTATUS 21002 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_javascript-lint/javascript-lint/main.log for details.
Attachments (1)
Change History (8)
comment:1 Changed 18 months ago by ulrichkapp
comment:2 follow-up: 4 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
Please attach the main.log. The relevant error is before the portion of the log you pasted.
comment:3 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
We also see failures on the macOS 11, 12, and 13 buildbot workers.
On 11 and 12:
editline.c:1038:13: error: implicit declaration of function 'getpid' is invalid in C99 [-Werror,-Wimplicit-function-declaration] (void)kill(getpid(), s); ^
On 13:
editline.c:1038:13: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void)kill(getpid(), s); ^
Amazingly, this port was added to MacPorts 16 years ago and has never been updated so it's not surprising that code that old won't build anymore.
The project has continued to be updated but inexplicably no longer seems to provide any releases. Even the 0.3.0 release we are currently offering is not available from the project anymore. I'm inquiring about that with them.
Changed 18 months ago by ulrichkapp
This is the complete mail.log file for this.
comment:4 Changed 18 months ago by ulrichkapp
Replying to ryandesign:
Please attach the main.log. The relevant error is before the portion of the log you pasted.
I attached the main.log file now. – Hope it helps.
Thanks!
comment:5 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
Thanks. Your log shows the same errors we got on the buildbot.
comment:6 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Can't install javascript-lint, ends with error: → javascript-lint @0.3.0: error: implicit declaration of function 'getpid' is invalid in C99 |
---|
comment:7 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
Summary: | javascript-lint @0.3.0: error: implicit declaration of function 'getpid' is invalid in C99 → javascript-lint @0.3.0: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations |
---|
by the way: the directory exists and the rights are set correctly.