From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Errors when updating IPFire-3.x pakfire Date: Thu, 28 Sep 2023 13:00:26 +0200 Message-ID: <80755019-9c83-45d7-b629-e87b4bd0cd35@ipfire.org> In-Reply-To: <7ED044B1-F7B0-4A23-BA9F-9DE452488945@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5707146419951190040==" List-Id: --===============5707146419951190040== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael, On 28/09/2023 11:10, Michael Tremer wrote: > Hello, >=20 > Sorry for not getting back quicker on this. >=20 >> On 25 Sep 2023, at 17:17, Adolf Belka wrote: >> >> Hi Michael, >> >> On 25/09/2023 17:15, Michael Tremer wrote: >>> Hello Adolf, >>> I am doing some larger rewrites of some parts of the code. So things migh= t break. >> I suspected so as there were a lot of new variables. >>> However, please pull again and let me know if this problem is fixed for y= ou. >> Have done so and it has built fine. >> >> I will resist doing a git pull for the moment until you flag up that you h= ave completed your rewrites. >=20 > Generally it would be great if you could be on a recent version, because I = want to know about the bugs you are running into. Okay. No problem. I just did a git pull and the make and make install went fine and pakfire-bu= ilder build beep/beep.nm built without any problems. However the make check has gone backwards as we are now back to only 2 out of= 28 tests passing. Regards, Adolf. >=20 > In case something goes wrong, you could simply roll back by a couple of com= mits and see if the problem disappears. >=20 > -Michael >=20 >> Regards, >> >> Adolf. >>> Best, >>> -Michael >>>> On 25 Sep 2023, at 15:47, Adolf Belka wrote: >>>> >>>> I did a git pull on my IPFire-3.x local repo and a lot of changes were u= ploaded. >>>> >>>> I then ran make -j$(nproc) and quite a few errors occurred. >>>> >>>> I then re-cloned the pakfire repo and went through the whole autogen.sh = and configure with no problems but again with the make there were errors as b= elow. >>>> >>>> Regards, >>>> Adolf >>>> >>>> >>>> make -j$(nproc) >>>> YACC src/libpakfire/parser/grammar.c >>>> updating src/libpakfire/parser/grammar.h >>>> make --no-print-directory all-recursive >>>> Making all in . >>>> LEX src/libpakfire/parser/scanner.c >>>> CC src/libpakfire/libpakfire_la-arch.lo >>>> CC src/libpakfire/libpakfire_la-archive.lo >>>> CC src/libpakfire/libpakfire_la-build.lo >>>> CC src/libpakfire/libpakfire_la-cgroup.lo >>>> CC src/libpakfire/libpakfire_la-compress.lo >>>> CC src/libpakfire/libpakfire_la-config.lo >>>> CC src/libpakfire/libpakfire_la-db.lo >>>> CC src/libpakfire/libpakfire_la-dependencies.lo >>>> CC src/libpakfire/libpakfire_la-digest.lo >>>> CC src/libpakfire/libpakfire_la-dist.lo >>>> CC src/libpakfire/libpakfire_la-downloader.lo >>>> CC src/libpakfire/libpakfire_la-fhs.lo >>>> CC src/libpakfire/libpakfire_la-file.lo >>>> src/libpakfire/file.c:90:10: warning: #warning TODO data [-Wcpp] >>>> 90 | #warning TODO data >>>> | ^~~~~~~ >>>> CC src/libpakfire/libpakfire_la-filelist.lo >>>> src/libpakfire/file.c: In function '__pakfire_file_check_cf_protection_a= arch64': >>>> src/libpakfire/file.c:2695:11: warning: #warning TODO [-Wcpp] >>>> 2695 | # warning TODO >>>> | ^~~~~~~ >>>> CC src/libpakfire/libpakfire_la-jail.lo >>>> CC src/libpakfire/libpakfire_la-key.lo >>>> CC src/libpakfire/libpakfire_la-linter.lo >>>> CC src/libpakfire/libpakfire_la-logging.lo >>>> CC src/libpakfire/libpakfire_la-mount.lo >>>> CC src/libpakfire/libpakfire_la-package.lo >>>> CC src/libpakfire/libpakfire_la-packager.lo >>>> CC src/libpakfire/libpakfire_la-packagelist.lo >>>> CC src/libpakfire/libpakfire_la-pakfire.lo >>>> CC src/libpakfire/libpakfire_la-parser.lo >>>> CC src/libpakfire/libpakfire_la-problem.lo >>>> CC src/libpakfire/libpakfire_la-progressbar.lo >>>> CC src/libpakfire/libpakfire_la-pwd.lo >>>> CC src/libpakfire/libpakfire_la-repo.lo >>>> CC src/libpakfire/libpakfire_la-repolist.lo >>>> CC src/libpakfire/libpakfire_la-scriptlet.lo >>>> CC src/libpakfire/libpakfire_la-snapshot.lo >>>> CC src/libpakfire/libpakfire_la-solution.lo >>>> CC src/libpakfire/libpakfire_la-string.lo >>>> CC src/libpakfire/libpakfire_la-transaction.lo >>>> CC src/libpakfire/libpakfire_la-ui.lo >>>> src/libpakfire/ui.c:91:34: warning: 'pakfire_ui_append_solution' defined= but not used [-Wunused-function] >>>> 91 | static struct pakfire_solution** pakfire_ui_append_solution( >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> src/libpakfire/ui.c:44:12: warning: 'pakfire_ui_enter_number' defined bu= t not used [-Wunused-function] >>>> 44 | static int pakfire_ui_enter_number(struct pakfire* pakfire, con= st char* question, >>>> | ^~~~~~~~~~~~~~~~~~~~~~~ >>>> CC src/libpakfire/libpakfire_la-util.lo >>>> CC src/libpakfire/parser/libpakfire_parser_la-grammar.lo >>>> CC src/libpakfire/parser/libpakfire_parser_la-scanner.lo >>>> CC src/libpakfire/libpakfire_internal_la-arch.lo >>>> CC src/libpakfire/libpakfire_internal_la-archive.lo >>>> CC src/libpakfire/libpakfire_internal_la-build.lo >>>> CC src/libpakfire/libpakfire_internal_la-cgroup.lo >>>> CC src/libpakfire/libpakfire_internal_la-compress.lo >>>> CC src/libpakfire/libpakfire_internal_la-config.lo >>>> CC src/libpakfire/libpakfire_internal_la-db.lo >>>> CC src/libpakfire/libpakfire_internal_la-dependencies.lo >>>> CC src/libpakfire/libpakfire_internal_la-digest.lo >>>> CC src/libpakfire/libpakfire_internal_la-dist.lo >>>> CC src/libpakfire/libpakfire_internal_la-downloader.lo >>>> CC src/libpakfire/libpakfire_internal_la-fhs.lo >>>> CC src/libpakfire/libpakfire_internal_la-file.lo >>>> src/libpakfire/file.c:90:10: warning: #warning TODO data [-Wcpp] >>>> 90 | #warning TODO data >>>> | ^~~~~~~ >>>> CC src/libpakfire/libpakfire_internal_la-filelist.lo >>>> src/libpakfire/file.c: In function '__pakfire_file_check_cf_protection_a= arch64': >>>> src/libpakfire/file.c:2695:11: warning: #warning TODO [-Wcpp] >>>> 2695 | # warning TODO >>>> | ^~~~~~~ >>>> CC src/libpakfire/libpakfire_internal_la-jail.lo >>>> CC src/libpakfire/libpakfire_internal_la-key.lo >>>> CC src/libpakfire/libpakfire_internal_la-linter.lo >>>> CC src/libpakfire/libpakfire_internal_la-logging.lo >>>> CC src/libpakfire/libpakfire_internal_la-mount.lo >>>> CC src/libpakfire/libpakfire_internal_la-package.lo >>>> CC src/libpakfire/libpakfire_internal_la-packager.lo >>>> CC src/libpakfire/libpakfire_internal_la-packagelist.lo >>>> CC src/libpakfire/libpakfire_internal_la-pakfire.lo >>>> CC src/libpakfire/libpakfire_internal_la-parser.lo >>>> CC src/libpakfire/libpakfire_internal_la-problem.lo >>>> CC src/libpakfire/libpakfire_internal_la-progressbar.lo >>>> CC src/libpakfire/libpakfire_internal_la-pwd.lo >>>> CC src/libpakfire/libpakfire_internal_la-repo.lo >>>> CC src/libpakfire/libpakfire_internal_la-repolist.lo >>>> CC src/libpakfire/libpakfire_internal_la-scriptlet.lo >>>> CC src/libpakfire/libpakfire_internal_la-snapshot.lo >>>> CC src/libpakfire/libpakfire_internal_la-solution.lo >>>> CC src/libpakfire/libpakfire_internal_la-string.lo >>>> CC src/libpakfire/libpakfire_internal_la-transaction.lo >>>> CC src/libpakfire/libpakfire_internal_la-ui.lo >>>> src/libpakfire/ui.c:91:34: warning: 'pakfire_ui_append_solution' defined= but not used [-Wunused-function] >>>> 91 | static struct pakfire_solution** pakfire_ui_append_solution( >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> src/libpakfire/ui.c:44:12: warning: 'pakfire_ui_enter_number' defined bu= t not used [-Wunused-function] >>>> 44 | static int pakfire_ui_enter_number(struct pakfire* pakfire, con= st char* question, >>>> | ^~~~~~~~~~~~~~~~~~~~~~~ >>>> CC src/libpakfire/libpakfire_internal_la-util.lo >>>> CCLD libpakfire-parser.la >>>> CC src/cli/lib/libcli_la-command.lo >>>> CC src/cli/lib/libcli_la-dump.lo >>>> src/cli/lib/dump.c: In function 'cli_dump_packagelist': >>>> src/cli/lib/dump.c:53:16: warning: implicit declaration of function 'pak= fire_packagelist_walk'; did you mean 'pakfire_packagelist_push'? [-Wimplicit-= function-declaration] >>>> 53 | return pakfire_packagelist_walk(list, __cli_dump_packag= e, &flags); >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~ >>>> | pakfire_packagelist_push >>>> src/cli/lib/dump.c:53:16: warning: nested extern declaration of 'pakfire= _packagelist_walk' [-Wnested-externs] >>>> CCLD libpakfire.la >>>> GEN src/scripts/pakfire-builder >>>> GEN src/scripts/pakfire-client >>>> GEN src/scripts/pakfire-daemon >>>> ASCIIDOC man/pakfire.xml >>>> ASCIIDOC man/pakfire-archive-format.xml >>>> ASCIIDOC man/pakfire-deps.xml >>>> GEN src/systemd/pakfire-daemon.service >>>> CC src/cli/pakfire/pakfire-main.o >>>> CC src/cli/pakfire/pakfire-check.o >>>> CC src/cli/pakfire/pakfire-clean.o >>>> CC src/cli/pakfire/pakfire-info.o >>>> CC src/cli/pakfire/pakfire-install.o >>>> src/cli/pakfire/install.c: In function =E2=80=98parse_argv=E2=80=99: >>>> src/cli/pakfire/install.c:77:53: error: =E2=80=98PAKFIRE_JOB_BEST=E2=80= =99 undeclared (first use in this function) >>>> 77 | config.job_flags |=3D PAKFIRE_J= OB_BEST; >>>> | ^~~~~~~~~~~~~~~~ >>>> src/cli/pakfire/install.c:77:53: note: each undeclared identifier is rep= orted only once for each function it appears in >>>> src/cli/pakfire/install.c:81:61: error: =E2=80=98PAKFIRE_TRANSACTION_ALL= OW_DOWNGRADE=E2=80=99 undeclared (first use in this function) >>>> 81 | config.transaction_flags |=3D P= AKFIRE_TRANSACTION_ALLOW_DOWNGRADE; >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> CC src/cli/pakfire/pakfire-provides.o >>>> src/cli/pakfire/install.c:85:61: error: =E2=80=98PAKFIRE_TRANSACTION_ALL= OW_UNINSTALL=E2=80=99 undeclared (first use in this function) >>>> 85 | config.transaction_flags |=3D P= AKFIRE_TRANSACTION_ALLOW_UNINSTALL; >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> src/cli/pakfire/install.c:89:61: error: =E2=80=98PAKFIRE_TRANSACTION_WIT= HOUT_RECOMMENDED=E2=80=99 undeclared (first use in this function) >>>> 89 | config.transaction_flags |=3D P= AKFIRE_TRANSACTION_WITHOUT_RECOMMENDED; >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> src/cli/pakfire/install.c: In function =E2=80=98cli_install=E2=80=99: >>>> src/cli/pakfire/install.c:115:13: warning: implicit declaration of funct= ion =E2=80=98pakfire_transaction_create=E2=80=99; did you mean =E2=80=98pakfi= re_transaction_count=E2=80=99? [-Wimplicit-function-declaration] >>>> 115 | r =3D pakfire_transaction_create(&transaction, pakfire,= config.transaction_flags); >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> | pakfire_transaction_count >>>> src/cli/pakfire/install.c:115:13: warning: nested extern declaration of = =E2=80=98pakfire_transaction_create=E2=80=99 [-Wnested-externs] >>>> src/cli/pakfire/install.c:123:21: warning: implicit declaration of funct= ion =E2=80=98pakfire_transaction_request=E2=80=99; did you mean =E2=80=98pakf= ire_transaction_run=E2=80=99? [-Wimplicit-function-declaration] >>>> 123 | r =3D pakfire_transaction_request(transaction, >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> | pakfire_transaction_run >>>> src/cli/pakfire/install.c:123:21: warning: nested extern declaration of = =E2=80=98pakfire_transaction_request=E2=80=99 [-Wnested-externs] >>>> src/cli/pakfire/install.c:124:33: error: =E2=80=98PAKFIRE_JOB_INSTALL=E2= =80=99 undeclared (first use in this function); did you mean =E2=80=98PAKFIRE= _CLI_INSTALL_H=E2=80=99? >>>> 124 | PAKFIRE_JOB_INSTALL, argv[i], c= onfig.job_flags); >>>> | ^~~~~~~~~~~~~~~~~~~ >>>> | PAKFIRE_CLI_INSTALL_H >>>> src/cli/pakfire/install.c:132:13: warning: implicit declaration of funct= ion =E2=80=98pakfire_transaction_solve=E2=80=99; did you mean =E2=80=98pakfir= e_transaction_count=E2=80=99? [-Wimplicit-function-declaration] >>>> 132 | r =3D pakfire_transaction_solve(transaction, 0, &proble= ms); >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~ >>>> | pakfire_transaction_count >>>> src/cli/pakfire/install.c:132:13: warning: nested extern declaration of = =E2=80=98pakfire_transaction_solve=E2=80=99 [-Wnested-externs] >>>> src/cli/pakfire/install.c:144:13: error: too few arguments to function = =E2=80=98pakfire_transaction_run=E2=80=99 >>>> 144 | r =3D pakfire_transaction_run(transaction); >>>> | ^~~~~~~~~~~~~~~~~~~~~~~ >>>> In file included from src/cli/pakfire/install.c:26: >>>> /usr/include/pakfire/transaction.h:39:5: note: declared here >>>> 39 | int pakfire_transaction_run(struct pakfire_transaction* transac= tion, int flags); >>>> | ^~~~~~~~~~~~~~~~~~~~~~~ >>>> make[2]: *** [Makefile:3842: src/cli/pakfire/pakfire-install.o] Error 1 >>>> make[2]: *** Waiting for unfinished jobs.... >>>> make[1]: *** [Makefile:4602: all-recursive] Error 1 >>>> make: *** [Makefile:2118: all] Error 2 >>>> >>>> --=20 >>>> Sent from my laptop >>>> >=20 --===============5707146419951190040==--