You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RDRView fails to build on Linux Home Manager, nixpkgs-unstable, and possibly other configurations.
Steps to reproduce
Be on nixpkgs-unstable
Run nix-shell -p rdrview
Expected behaviour
A sucessful rdrview build, followed by its output appearing in PATH of the opened nix-shell
Screenshots
No response
Relevant log output
stas@thinkpad-t14 ~> nix-shell -p rdrviewthis derivation will be built: /nix/store/0rly7kvpqhflvw5fj1qkcbi5rdp8wncy-rdrview-unstable-2021-05-30.drvthese 10 paths will be fetched (3.37 MiB download, 36.80 MiB unpacked): /nix/store/ycivdldi9ddnh3a6gkybx6sfv416k0r0-ed-1.20.2 /nix/store/qh8jxbp98py266w8555hx4y9qpxfrfz0-file-5.46 /nix/store/5xw6dvhrg7b9sf9bixnw9b248qg8kpjs-gnu-config-2024-01-01 /nix/store/0lrk3s24y2l74zagz13mv0n7yp8zbqzg-gnumake-4.4.1 /nix/store/6rcrf9yjwbswc4hwwdzwhczzxq0r6mi6-libseccomp-2.5.5 /nix/store/68r41aczy00qs24vximhv13c1mmnxhrm-libseccomp-2.5.5-dev /nix/store/78z7sr6w7jv856axivb9fxwivklvaivf-patch-2.7.6 /nix/store/4mlhkyz4nkdpvr4hsa656wmh778i8wji-source /nix/store/acjcsq0iim1lg14f8jvka05dhhz70c2c-stdenv-linux /nix/store/b4mv6ph8hj4y9qx5xf7zhqyb2fzpqhci-update-autotools-gnu-config-scripts-hookcopying path '/nix/store/5xw6dvhrg7b9sf9bixnw9b248qg8kpjs-gnu-config-2024-01-01' from 'https://cache.nixos.org'...copying path '/nix/store/qh8jxbp98py266w8555hx4y9qpxfrfz0-file-5.46' from 'https://cache.nixos.org'...copying path '/nix/store/ycivdldi9ddnh3a6gkybx6sfv416k0r0-ed-1.20.2' from 'https://cache.nixos.org'...copying path '/nix/store/0lrk3s24y2l74zagz13mv0n7yp8zbqzg-gnumake-4.4.1' from 'https://cache.nixos.org'...copying path '/nix/store/4mlhkyz4nkdpvr4hsa656wmh778i8wji-source' from 'https://cache.nixos.org'...copying path '/nix/store/6rcrf9yjwbswc4hwwdzwhczzxq0r6mi6-libseccomp-2.5.5' from 'https://cache.nixos.org'...copying path '/nix/store/b4mv6ph8hj4y9qx5xf7zhqyb2fzpqhci-update-autotools-gnu-config-scripts-hook' from 'https://cache.nixos.org'...copying path '/nix/store/68r41aczy00qs24vximhv13c1mmnxhrm-libseccomp-2.5.5-dev' from 'https://cache.nixos.org'...copying path '/nix/store/78z7sr6w7jv856axivb9fxwivklvaivf-patch-2.7.6' from 'https://cache.nixos.org'...copying path '/nix/store/acjcsq0iim1lg14f8jvka05dhhz70c2c-stdenv-linux' from 'https://cache.nixos.org'...building '/nix/store/0rly7kvpqhflvw5fj1qkcbi5rdp8wncy-rdrview-unstable-2021-05-30.drv'...Running phase: unpackPhaseunpacking source archive /nix/store/4mlhkyz4nkdpvr4hsa656wmh778i8wji-sourcesource root is sourceRunning phase: patchPhaseRunning phase: updateAutotoolsGnuConfigScriptsPhaseRunning phase: configurePhaseno configure script, doing nothingRunning phase: buildPhasebuild flags: -j16 SHELL=/nix/store/4fvc5fm8bszmkydng1ivrvr5cbvr1g60-bash-5.2p37/bin/bashgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/content.o -c src/content.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/iterator.o -c src/iterator.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/node.o -c src/node.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/prep_article.o -c src/prep_article.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/rdrview.o -c src/rdrview.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/readability.o -c src/readability.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/readerable.o -c src/readerable.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/regex.o -c src/regex.cgcc -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing -I/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include -I/nix/store/nd48qvqc9iyiczc4nd7nwvz2417lwz0f-libxml2-2.13.5-dev/include/libxml2 -o src/sandbox.o -c src/sandbox.csrc/content.c: In function 'trim_and_unescape':src/content.c:54:19: error: implicit declaration of function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 54 | trimmed = malloc(strlen(start) + 1); | ^~~~~~src/content.c:28:1: note: include '<stdlib.h>' or provide a declaration of 'malloc' 27 | #include "rdrview.h" +++ |+#include <stdlib.h> 28 |src/content.c:54:19: warning: incompatible implicit declaration of built-in function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 54 | trimmed = malloc(strlen(start) + 1); | ^~~~~~src/content.c:54:19: note: include '<stdlib.h>' or provide a declaration of 'malloc'src/content.c:80:33: error: implicit declaration of function 'atoi' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 80 | *dest = atoi(src); | ^~~~src/content.c:90:9: error: implicit declaration of function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 90 | free(*str); | ^~~~src/content.c:90:9: note: include '<stdlib.h>' or provide a declaration of 'free'src/content.c:90:9: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;]src/content.c:90:9: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c: In function 'parse_meta_attrs':src/readability.c:139:17: error: implicit declaration of function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 139 | free(*field); | ^~~~src/readability.c:30:1: note: include '<stdlib.h>' or provide a declaration of 'free' 29 | #include "rdrview.h" +++ |+#include <stdlib.h> 30 |src/readability.c:139:17: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 139 | free(*field); | ^~~~src/readability.c:139:17: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c:140:18: error: implicit declaration of function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 140 | *field = malloc(strlen(content) + 1); | ^~~~~~src/readability.c:140:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'src/readability.c:140:18: warning: incompatible implicit declaration of built-in function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;]src/readability.c:140:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'make: *** [Makefile:27: src/content.o] Error 1make: *** Waiting for unfinished jobs....src/readability.c: In function 'get_article_title':src/readability.c:203:17: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 203 | free(title); | ^~~~src/readability.c:203:17: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c:209:17: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 209 | free(original); | ^~~~src/readability.c:209:17: note: include '<stdlib.h>' or provide a declaration of 'free'src/prep_article.c: In function 'attr_num':src/prep_article.c:39:23: error: implicit declaration of function 'atoi' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 39 | ret = atoi((char *)value); | ^~~~src/node.c: In function 'allocate_node_info':src/node.c:35:26: error: implicit declaration of function 'calloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 35 | node->_private = calloc(1, sizeof(struct node_info)); | ^~~~~~src/node.c:27:1: note: include '<stdlib.h>' or provide a declaration of 'calloc' 26 | #include "rdrview.h" +++ |+#include <stdlib.h> 27 |src/node.c:35:26: warning: incompatible implicit declaration of built-in function 'calloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 35 | node->_private = calloc(1, sizeof(struct node_info)); | ^~~~~~src/node.c:35:26: note: include '<stdlib.h>' or provide a declaration of 'calloc'src/node.c: In function 'free_node_info':src/node.c:46:9: error: implicit declaration of function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 46 | free(node->_private); | ^~~~src/node.c:46:9: note: include '<stdlib.h>' or provide a declaration of 'free'src/node.c:46:9: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;]src/node.c:46:9: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c: In function 'extract_text_direction':src/readability.c:1018:30: warning: incompatible implicit declaration of built-in function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1018 | metadata.direction = malloc(strlen((char *)direction) + 1); | ^~~~~~src/readability.c:1018:30: note: include '<stdlib.h>' or provide a declaration of 'malloc'make: *** [Makefile:27: src/node.o] Error 1src/readability.c: In function 'parse_srcset':src/readability.c:1510:16: error: implicit declaration of function 'calloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 1510 | ents = calloc(url_bound + 1, sizeof(*ents)); | ^~~~~~src/readability.c:1510:16: note: include '<stdlib.h>' or provide a declaration of 'calloc'src/readability.c:1510:16: warning: incompatible implicit declaration of built-in function 'calloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;]src/readability.c:1510:16: note: include '<stdlib.h>' or provide a declaration of 'calloc'src/readability.c:1517:23: warning: incompatible implicit declaration of built-in function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1517 | url = malloc(len); | ^~~~~~src/readability.c:1517:23: note: include '<stdlib.h>' or provide a declaration of 'malloc'src/readability.c:1524:25: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1524 | free(url); | ^~~~src/readability.c:1524:25: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c: In function 'build_srcset':make: *** [Makefile:27: src/prep_article.o] Error 1src/readability.c:1569:18: warning: incompatible implicit declaration of built-in function 'malloc' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1569 | srcset = malloc(len); | ^~~~~~src/readability.c:1569:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'src/readability.c: In function 'free_srcset':src/readability.c:1597:17: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1597 | free(curr->url); | ^~~~src/readability.c:1597:17: note: include '<stdlib.h>' or provide a declaration of 'free'src/readability.c:1601:9: warning: incompatible implicit declaration of built-in function 'free' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 1601 | free(ents); | ^~~~src/readability.c:1601:9: note: include '<stdlib.h>' or provide a declaration of 'free'make: *** [Makefile:27: src/readability.o] Error 1src/rdrview.c: In function 'url_to_file':src/rdrview.c:240:9: warning: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations8;;] 240 | if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS, protocols)) | ^~In file included from src/rdrview.c:38:/nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include/curl/curl.h:1761:3: note: declared here 1761 | CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181, | ^~~~~~~~~~~~~~~~~error: builder for '/nix/store/0rly7kvpqhflvw5fj1qkcbi5rdp8wncy-rdrview-unstable-2021-05-30.drv' failed with exit code 2; last 10 log lines: > src/readability.c:1601:9: note: include '<stdlib.h>' or provide a declaration of 'free' > make: *** [Makefile:27: src/readability.o] Error 1 > src/rdrview.c: In function 'url_to_file': > src/rdrview.c:240:9: warning: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations8;;] > 240 | if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS, protocols)) > | ^~ > In file included from src/rdrview.c:38: > /nix/store/azfhp07yysbxvdhm78n43cjiwh1lb111-curl-8.11.1-dev/include/curl/curl.h:1761:3: note: declared here > 1761 | CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181, > | ^~~~~~~~~~~~~~~~~ For full logs, run 'nix-store -l /nix/store/0rly7kvpqhflvw5fj1qkcbi5rdp8wncy-rdrview-unstable-2021-05-30.drv'.
Additional context
No response
System metadata
system: "x86_64-linux"
host os: Linux 6.12.11-100.fc40.x86_64, Fedora Linux, 40.20250206.0 (Sway Atomic), nobuild
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.18.2
channels(root): "nixpkgs"
nixpkgs: /home/stas/.nix-defexpr/channels/nixpkgs
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
I assert that this is a bug and not a support request.
Nixpkgs version
Describe the bug
RDRView fails to build on Linux Home Manager, nixpkgs-unstable, and possibly other configurations.
Steps to reproduce
nix-shell -p rdrview
Expected behaviour
A sucessful rdrview build, followed by its output appearing in PATH of the opened nix-shell
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.12.11-100.fc40.x86_64, Fedora Linux, 40.20250206.0 (Sway Atomic), nobuild
yes
yes
nix-env (Nix) 2.18.2
"nixpkgs"
/home/stas/.nix-defexpr/channels/nixpkgs
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
No response
The text was updated successfully, but these errors were encountered: