Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Hi, Peter. That went nicely, thank you! > I've pushed a fix to master that should remove all these references to > sys_errlist and sys_nerr. They have been replaced by the C90 strerror() > instead. > Please try and see if it fixes your build issue. > Peter > -- > Peter Howkins > peter.howkins@... > https://www.marutan.net/ ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
On Sun, 25 Oct 2020 at 18:16, Нина Диденко wrote: > Hi, Chase! > Thanks, that way I got a little further. > The problem is that there are other places in CDE source that use now > deprecated sys_nerr and sys_errlist. > I've pushed a fix to master that should remove all these references to sys_errlist and sys_nerr. They have been replaced by the C90 strerror() instead. Please try and see if it fixes your build issue. Peter -- Peter Howkins peter.howk...@marutan.net https://www.marutan.net/ ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Hi, Chase! Thanks, that way I got a little further. The problem is that there are other places in CDE source that use now deprecated sys_nerr and sys_errlist. cde/programs/dtimsstart/remote.c:extern char*sys_errlist[]; cde/programs/dtimsstart/start.c:extern char *sys_errlist[]; cde/programs/dtimsstart/start.c:(errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0); cde/programs/dtimsstart/start.c:(errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0); cde/programs/dtcm/dtcm/dnd.c:extern char*sys_errlist[]; cde/programs/dtcm/libDtCmP/util.c: (void) fprintf(stderr, ":%s", sys_errlist[saveerr]); cde/programs/dthelp/parser.ccdf/volumegen/Volumegen.c:/* extern char *sys_errlist[]; */ cde/programs/dtinfo/dtinfo/src/external-api/comm.c:extern char *sys_errlist[]; cde/programs/dtinfo/dtinfo/src/external-api/comm.c: &sys_errlist[errno], &num_params); cde/programs/dtlogin/dm.h: sys_errlist */ cde/programs/dtlogin/dm.h:extern char *sys_errlist[]; /* system error msgs */ cde/lib/DtTerm/TermView/TermViewGlobalDialog.c:#include /* for errno and sys_errlist[] */ cde/lib/DtTerm/TermView/TermViewTerminalDialog.c:#include /* for errno and sys_errlist[] */ cde/lib/DtTerm/TermView/TermViewMenu.c:#include/* for errno and sys_errlist[] */ cde/lib/tt/lib/tt_options.h: * global symbol sys_errlist is defined in errno.h. cde/lib/tt/bin/dbck/spec.C: return ((e= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error") gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I. -I../../lib -I../.. -I../../exports/include -I../../imports/motif/include -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 -DFUNCPROTO=15 -DNARROWPROTO -DNLS -c -o start.o start.c start.c: In function 'invoke_ims': start.c:603:13: error: 'sys_nerr' undeclared (first use in this function) 603 | (errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0); | ^~~~ start.c:603:13: note: each undeclared identifier is reported only once for each function it appears in start.c:603:25: error: 'sys_errlist' undeclared (first use in this function) 603 | (errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0); | ^~~ make[3]: *** [: start.o] Error 1 make[3]: Leaving directory '/build/code-fc700e2/cde/programs/dtimsstart' make[2]: *** [Makefile:743: all] Error 2 make[2]: Leaving directory '/build/code-fc700e2/cde/programs' make[1]: *** [xmakefile:740: all] Error 2 make[1]: Leaving directory '/build/code-fc700e2/cde' make: *** [Makefile:72: World] Error 2 builder for '/nix/store/ghcyd134akcnvbkz28wxbd02z5cpr5i0-cde-2.3.2.drv' failed with exit code 2 error: build of '/nix/store/ghcyd134akcnvbkz28wxbd02z5cpr5i0-cde-2.3.2.drv' failed сб, 24 окт. 2020 г. в 23:17, Chase : > Nina, > This appears to be an issue with the old outdated ksh that we use, this > problem shouldn't exist on the updated master-ksh93-upgrade branch if you > would like to try using that for the time being until it gets merged. > > Thank you for your time, > -Chase > > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, October 21, 2020 10:38 AM, Нина Диденко < > nina.dide...@gmail.com> wrote: > > Meh... > > https://sourceware.org/glibc/wiki/Release/2.32#Deprectation_sys_errlist.2C__sys_errlist.2C_sys_nerr.2C_and__sys_nerr > > ср, 21 окт. 2020 г. в 18:33, Нина Диденко : > >> Thanks, Michael! >> >> Now I'm getting the following error: >> >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> ./ksh93/lib/libast.a(fmterror.o): in function `fmterror': >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_nerr' >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_errlist' >> collect2: error: ld returned 1 exit status >> make[3]: *** [Makefile:793: dtksh] Error 1 >> make[3]: Leaving directory '/build/cde-2.3.2/programs/dtksh' >> make[2]: *** [Makefile:737: all] Error 2 >> make[2]: Leaving directory '/build/cde-2.3.2/programs' >> make[1]: *** [xmakefile:734: all] Error 2 >> make[1]: Leaving directory '/build/cde-2.3.2' >> make: *** [Makefile:61: World] Error 2 >> builder for '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' >> failed with exit code 2 >> error: build of >> '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' failed >> >> I wonder what is the proper way to fix this. I seen some projects used >> hacks like this https://github.com/OpenXRay/xray-16/issues/667 >> >> ср, 21 окт. 2020 г. в 16:14
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Nina, This appears to be an issue with the old outdated ksh that we use, this problem shouldn't exist on the updated master-ksh93-upgrade branch if you would like to try using that for the time being until it gets merged. Thank you for your time, -Chase ‐‐‐ Original Message ‐‐‐ On Wednesday, October 21, 2020 10:38 AM, Нина Диденко wrote: > Meh... > https://sourceware.org/glibc/wiki/Release/2.32#Deprectation_sys_errlist.2C__sys_errlist.2C_sys_nerr.2C_and__sys_nerr > > ср, 21 окт. 2020 г. в 18:33, Нина Диденко : > >> Thanks, Michael! >> >> Now I'm getting the following error: >> >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> ./ksh93/lib/libast.a(fmterror.o): in function `fmterror': >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_nerr' >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_errlist' >> collect2: error: ld returned 1 exit status >> make[3]: *** [Makefile:793: dtksh] Error 1 >> make[3]: Leaving directory '/build/cde-2.3.2/programs/dtksh' >> make[2]: *** [Makefile:737: all] Error 2 >> make[2]: Leaving directory '/build/cde-2.3.2/programs' >> make[1]: *** [xmakefile:734: all] Error 2 >> make[1]: Leaving directory '/build/cde-2.3.2' >> make: *** [Makefile:61: World] Error 2 >> builder for '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' >> failed with exit code 2 >> error: build of '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' >> failed >> >> I wonder what is the proper way to fix this. I seen some projects used hacks >> like this https://github.com/OpenXRay/xray-16/issues/667 >> >> ср, 21 окт. 2020 г. в 16:14, Michael Griffin : >> >>> I had this problem on Fedora. I installed the rpcgen package and was able >>> to compile through that section. >>> >>> Name : rpcgen >>> Version : 1.4 >>> Release : 4.fc32 >>> Architecture : x86_64 >>> Size : 53 k >>> Source : rpcsvc-proto-1.4-4.fc32.src.rpm >>> Repository : fedora >>> Summary : RPC protocol compiler >>> URL : https://github.com/thkukuk/rpcsvc-proto >>> License : BSD and LGPLv2+ >>> Description : rpcgen is a tool that generates C code to implement an RPC >>> : protocol. The input to rpcgen is a language similar to C known as >>> : RPC Language (Remote Procedure Call Language). >>> >>> By my hand, I am, >>> >>> Michael E. Griffin >>> >>> On Wed, Oct 21, 2020 at 3:55 AM Нина Диденко wrote: >>> Hi. According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS distro, CDE 2.3.2 now fails to build, Could anyone please provide a fix? make[3]: Entering directory '/build/cde-2.3.2/lib/csa' rm -f agent.o gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I. -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc -I../.. -I../../exports/include -I../../imports/motif/include -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" -DRELMINOR="4" -fPIC agent.c agent.c: In function '_DtCm_init_agent': agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); | ^ | AGENTVERS_2 agent.c:150:43: note: each undeclared identifier is reported only once for each function it appears in agent.c:157:46: error: 'update_callback' undeclared (first use in this function) 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, | ^~~ agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use in this function); did you mean 'cmcb_update_callback_2'? 158 | (char *(*)())_DtCm_update_callback_1, (xdrproc_t)_DtCm_xdr_Table_Res_4, | ^~~ | cmcb_update_callback_2 agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use in this function); did you mean '_DtCm_xdr_Appt_Status_4'? 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { | ^~~ | _DtCm_xdr_Appt_Status_4 agent.c: In function '_DtCm_destroy_agent': agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 192 | (void) pmap_unset(_DtCm_transient, AGENTVERS); | ^ | AGENTVERS_2 agent.c: At top level: agent.c:297:1: error: unknown type name 'Update_Status' 297 | Update_Status *
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Yeah, that requires higher levels of expertise than I have. The last time I successfully compiled it was on Fedora 29 or 30. By my hand, I am, Michael E. Griffin On Wed, Oct 21, 2020 at 11:38 AM Нина Диденко wrote: > Meh... > > https://sourceware.org/glibc/wiki/Release/2.32#Deprectation_sys_errlist.2C__sys_errlist.2C_sys_nerr.2C_and__sys_nerr > > ср, 21 окт. 2020 г. в 18:33, Нина Диденко : > >> Thanks, Michael! >> >> Now I'm getting the following error: >> >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> ./ksh93/lib/libast.a(fmterror.o): in function `fmterror': >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_nerr' >> /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: >> /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: >> undefined reference to `sys_errlist' >> collect2: error: ld returned 1 exit status >> make[3]: *** [Makefile:793: dtksh] Error 1 >> make[3]: Leaving directory '/build/cde-2.3.2/programs/dtksh' >> make[2]: *** [Makefile:737: all] Error 2 >> make[2]: Leaving directory '/build/cde-2.3.2/programs' >> make[1]: *** [xmakefile:734: all] Error 2 >> make[1]: Leaving directory '/build/cde-2.3.2' >> make: *** [Makefile:61: World] Error 2 >> builder for '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' >> failed with exit code 2 >> error: build of >> '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' failed >> >> I wonder what is the proper way to fix this. I seen some projects used >> hacks like this https://github.com/OpenXRay/xray-16/issues/667 >> >> ср, 21 окт. 2020 г. в 16:14, Michael Griffin : >> >>> I had this problem on Fedora. I installed the rpcgen package and was >>> able to compile through that section. >>> >>> Name : rpcgen >>> Version : 1.4 >>> Release : 4.fc32 >>> Architecture : x86_64 >>> Size : 53 k >>> Source : rpcsvc-proto-1.4-4.fc32.src.rpm >>> Repository : fedora >>> Summary : RPC protocol compiler >>> URL : https://github.com/thkukuk/rpcsvc-proto >>> License : BSD and LGPLv2+ >>> Description : rpcgen is a tool that generates C code to implement an RPC >>> : protocol. The input to rpcgen is a language similar to C >>> known as >>> : RPC Language (Remote Procedure Call Language). >>> >>> By my hand, I am, >>> >>> Michael E. Griffin >>> >>> >>> On Wed, Oct 21, 2020 at 3:55 AM Нина Диденко >>> wrote: >>> Hi. According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS distro, CDE 2.3.2 now fails to build, Could anyone please provide a fix? make[3]: Entering directory '/build/cde-2.3.2/lib/csa' rm -f agent.o gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I. -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc -I../.. -I../../exports/include -I../../imports/motif/include -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" -DRELMINOR="4"-fPIC agent.c agent.c: In function '_DtCm_init_agent': agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); | ^ | AGENTVERS_2 agent.c:150:43: note: each undeclared identifier is reported only once for each function it appears in agent.c:157:46: error: 'update_callback' undeclared (first use in this function) 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, | ^~~ agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use in this function); did you mean 'cmcb_update_callback_2'? 158 | (char *(*)())_DtCm_update_callback_1, (xdrproc_t)_DtCm_xdr_Table_Res_4, | ^~~ | cmcb_update_callback_2 agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use in this function); did you mean '_DtCm_xdr_Appt_Status_4'? 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { | ^~~ | _DtCm_xdr_Appt_Status_4 agent.c: In function '_DtCm_destroy_agent': agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Meh... https://sourceware.org/glibc/wiki/Release/2.32#Deprectation_sys_errlist.2C__sys_errlist.2C_sys_nerr.2C_and__sys_nerr ср, 21 окт. 2020 г. в 18:33, Нина Диденко : > Thanks, Michael! > > Now I'm getting the following error: > > /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: > ./ksh93/lib/libast.a(fmterror.o): in function `fmterror': > /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: > undefined reference to `sys_nerr' > /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: > /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: > undefined reference to `sys_errlist' > collect2: error: ld returned 1 exit status > make[3]: *** [Makefile:793: dtksh] Error 1 > make[3]: Leaving directory '/build/cde-2.3.2/programs/dtksh' > make[2]: *** [Makefile:737: all] Error 2 > make[2]: Leaving directory '/build/cde-2.3.2/programs' > make[1]: *** [xmakefile:734: all] Error 2 > make[1]: Leaving directory '/build/cde-2.3.2' > make: *** [Makefile:61: World] Error 2 > builder for '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' > failed with exit code 2 > error: build of > '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' failed > > I wonder what is the proper way to fix this. I seen some projects used > hacks like this https://github.com/OpenXRay/xray-16/issues/667 > > ср, 21 окт. 2020 г. в 16:14, Michael Griffin : > >> I had this problem on Fedora. I installed the rpcgen package and was >> able to compile through that section. >> >> Name : rpcgen >> Version : 1.4 >> Release : 4.fc32 >> Architecture : x86_64 >> Size : 53 k >> Source : rpcsvc-proto-1.4-4.fc32.src.rpm >> Repository : fedora >> Summary : RPC protocol compiler >> URL : https://github.com/thkukuk/rpcsvc-proto >> License : BSD and LGPLv2+ >> Description : rpcgen is a tool that generates C code to implement an RPC >> : protocol. The input to rpcgen is a language similar to C >> known as >> : RPC Language (Remote Procedure Call Language). >> >> By my hand, I am, >> >> Michael E. Griffin >> >> >> On Wed, Oct 21, 2020 at 3:55 AM Нина Диденко >> wrote: >> >>> Hi. >>> According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS >>> distro, CDE 2.3.2 now fails to build, >>> Could anyone please provide a fix? >>> >>> make[3]: Entering directory '/build/cde-2.3.2/lib/csa' >>> rm -f agent.o >>> gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings >>> -Wno-unused-result -ansi -I. >>> -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc >>> -I../.. -I../../exports/include -I../../imports/motif/include >>> -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include >>> -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE >>>-D_BSD_SOURCE -D_SVID_SOURCE >>> -D__NO_STRING_INLINES -D__NO_MATH_INLINES >>> -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 >>> -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME >>> -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" >>> -DRELMINOR="4"-fPIC agent.c >>> agent.c: In function '_DtCm_init_agent': >>> agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this >>> function); did you mean 'AGENTVERS_2'? >>> 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); >>> | ^ >>> | AGENTVERS_2 >>> agent.c:150:43: note: each undeclared identifier is reported only once >>> for each function it appears in >>> agent.c:157:46: error: 'update_callback' undeclared (first use in this >>> function) >>> 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, >>> | ^~~ >>> agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use >>> in this function); did you mean 'cmcb_update_callback_2'? >>> 158 | (char *(*)())_DtCm_update_callback_1, >>> (xdrproc_t)_DtCm_xdr_Table_Res_4, >>> | ^~~ >>> | cmcb_update_callback_2 >>> agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use >>> in this function); did you mean '_DtCm_xdr_Appt_Status_4'? >>> 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { >>> | ^~~ >>> | _DtCm_xdr_Appt_Status_4 >>> agent.c: In function '_DtCm_destroy_agent': >>> agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this >>> function); did you mean 'AGENTVERS_2'? >>> 192 | (void) pmap_unset(_DtCm_transient, AGENTVERS); >>> |^ >>> |AGENTVERS_2 >>> agent.c: At top level: >>> agent.c:297:1: error: unknown type name 'Update_Status' >>> 2
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Thanks, Michael! Now I'm getting the following error: /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: ./ksh93/lib/libast.a(fmterror.o): in function `fmterror': /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: undefined reference to `sys_nerr' /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: /build/cde-2.3.2/programs/dtksh/ksh93/src/lib/libast/string/fmterror.c:102: undefined reference to `sys_errlist' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:793: dtksh] Error 1 make[3]: Leaving directory '/build/cde-2.3.2/programs/dtksh' make[2]: *** [Makefile:737: all] Error 2 make[2]: Leaving directory '/build/cde-2.3.2/programs' make[1]: *** [xmakefile:734: all] Error 2 make[1]: Leaving directory '/build/cde-2.3.2' make: *** [Makefile:61: World] Error 2 builder for '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' failed with exit code 2 error: build of '/nix/store/yn0bax5w8lqspwcx86p21shsnp6mcmcx-cde-2.3.2.drv' failed I wonder what is the proper way to fix this. I seen some projects used hacks like this https://github.com/OpenXRay/xray-16/issues/667 ср, 21 окт. 2020 г. в 16:14, Michael Griffin : > I had this problem on Fedora. I installed the rpcgen package and was able > to compile through that section. > > Name : rpcgen > Version : 1.4 > Release : 4.fc32 > Architecture : x86_64 > Size : 53 k > Source : rpcsvc-proto-1.4-4.fc32.src.rpm > Repository : fedora > Summary : RPC protocol compiler > URL : https://github.com/thkukuk/rpcsvc-proto > License : BSD and LGPLv2+ > Description : rpcgen is a tool that generates C code to implement an RPC > : protocol. The input to rpcgen is a language similar to C > known as > : RPC Language (Remote Procedure Call Language). > > By my hand, I am, > > Michael E. Griffin > > > On Wed, Oct 21, 2020 at 3:55 AM Нина Диденко > wrote: > >> Hi. >> According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS >> distro, CDE 2.3.2 now fails to build, >> Could anyone please provide a fix? >> >> make[3]: Entering directory '/build/cde-2.3.2/lib/csa' >> rm -f agent.o >> gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings >> -Wno-unused-result -ansi -I. >> -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc >> -I../.. -I../../exports/include -I../../imports/motif/include >> -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include >> -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE >>-D_BSD_SOURCE -D_SVID_SOURCE >> -D__NO_STRING_INLINES -D__NO_MATH_INLINES >> -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 >> -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME >> -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" >> -DRELMINOR="4"-fPIC agent.c >> agent.c: In function '_DtCm_init_agent': >> agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this >> function); did you mean 'AGENTVERS_2'? >> 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); >> | ^ >> | AGENTVERS_2 >> agent.c:150:43: note: each undeclared identifier is reported only once >> for each function it appears in >> agent.c:157:46: error: 'update_callback' undeclared (first use in this >> function) >> 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, >> | ^~~ >> agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use in >> this function); did you mean 'cmcb_update_callback_2'? >> 158 | (char *(*)())_DtCm_update_callback_1, >> (xdrproc_t)_DtCm_xdr_Table_Res_4, >> | ^~~ >> | cmcb_update_callback_2 >> agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use in >> this function); did you mean '_DtCm_xdr_Appt_Status_4'? >> 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { >> | ^~~ >> | _DtCm_xdr_Appt_Status_4 >> agent.c: In function '_DtCm_destroy_agent': >> agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this >> function); did you mean 'AGENTVERS_2'? >> 192 | (void) pmap_unset(_DtCm_transient, AGENTVERS); >> |^ >> |AGENTVERS_2 >> agent.c: At top level: >> agent.c:297:1: error: unknown type name 'Update_Status' >> 297 | Update_Status * >> | ^ >> agent.c: In function '_DtCm_update_callback_1': >> agent.c:300:9: error: unknown type name 'Update_Status' >> 300 | static Update_Status status = update_succeeded; >> | ^ >> agent.c:300:32: error: 'update_succeeded' undecl
Re: [cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
I had this problem on Fedora. I installed the rpcgen package and was able to compile through that section. Name : rpcgen Version : 1.4 Release : 4.fc32 Architecture : x86_64 Size : 53 k Source : rpcsvc-proto-1.4-4.fc32.src.rpm Repository : fedora Summary : RPC protocol compiler URL : https://github.com/thkukuk/rpcsvc-proto License : BSD and LGPLv2+ Description : rpcgen is a tool that generates C code to implement an RPC : protocol. The input to rpcgen is a language similar to C known as : RPC Language (Remote Procedure Call Language). By my hand, I am, Michael E. Griffin On Wed, Oct 21, 2020 at 3:55 AM Нина Диденко wrote: > Hi. > According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS > distro, CDE 2.3.2 now fails to build, > Could anyone please provide a fix? > > make[3]: Entering directory '/build/cde-2.3.2/lib/csa' > rm -f agent.o > gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings > -Wno-unused-result -ansi -I. > -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc > -I../.. -I../../exports/include -I../../imports/motif/include > -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include > -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE >-D_BSD_SOURCE -D_SVID_SOURCE > -D__NO_STRING_INLINES -D__NO_MATH_INLINES > -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 > -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME > -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" > -DRELMINOR="4"-fPIC agent.c > agent.c: In function '_DtCm_init_agent': > agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this > function); did you mean 'AGENTVERS_2'? > 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); > | ^ > | AGENTVERS_2 > agent.c:150:43: note: each undeclared identifier is reported only once for > each function it appears in > agent.c:157:46: error: 'update_callback' undeclared (first use in this > function) > 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, > | ^~~ > agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use in > this function); did you mean 'cmcb_update_callback_2'? > 158 | (char *(*)())_DtCm_update_callback_1, > (xdrproc_t)_DtCm_xdr_Table_Res_4, > | ^~~ > | cmcb_update_callback_2 > agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use in > this function); did you mean '_DtCm_xdr_Appt_Status_4'? > 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { > | ^~~ > | _DtCm_xdr_Appt_Status_4 > agent.c: In function '_DtCm_destroy_agent': > agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this > function); did you mean 'AGENTVERS_2'? > 192 | (void) pmap_unset(_DtCm_transient, AGENTVERS); > |^ > |AGENTVERS_2 > agent.c: At top level: > agent.c:297:1: error: unknown type name 'Update_Status' > 297 | Update_Status * > | ^ > agent.c: In function '_DtCm_update_callback_1': > agent.c:300:9: error: unknown type name 'Update_Status' > 300 | static Update_Status status = update_succeeded; > | ^ > agent.c:300:32: error: 'update_succeeded' undeclared (first use in this > function) > 300 | static Update_Status status = update_succeeded; > |^~~~ > agent.c:312:15: error: 'AGENTVERS' undeclared (first use in this > function); did you mean 'AGENTVERS_2'? > 312 | cbi->vers = AGENTVERS; > | ^ > | AGENTVERS_2 > agent.c: In function '_DtCm_handle_callback': > agent.c:472:20: error: 'AGENTVERS' undeclared (first use in this > function); did you mean 'AGENTVERS_2'? > 472 | if (ptr->vers == AGENTVERS) > |^ > |AGENTVERS_2 > make[3]: *** [Makefile:789: agent.o] Error 1 > make[3]: Leaving directory '/build/cde-2.3.2/lib/csa' > make[2]: *** [Makefile:735: all] Error 2 > make[2]: Leaving directory '/build/cde-2.3.2/lib' > make[1]: *** [xmakefile:734: all] Error 2 > make[1]: Leaving directory '/build/cde-2.3.2' > make: *** [Makefile:61: World] Error 2 > builder for '/nix/store/4cg9k04l90b1gqzbfm9chpwj6n42la2m-cde-2.3.2.drv' > failed with exit code 2 > error: build of > '/nix/store/4cg9k04l90b1gqzbfm9chpwj6n42la2m-cde-2.3.2.drv' failed > ___ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourcefo
[cdesktopenv-devel] CDE 2.3.2 fails to build with glibc 2.32
Hi. According to git bisect, after updating glibc from 2.31 to 2.32 in NixOS distro, CDE 2.3.2 now fails to build, Could anyone please provide a fix? make[3]: Entering directory '/build/cde-2.3.2/lib/csa' rm -f agent.o gcc -g -pipe -c -O2 -fno-strict-aliasing -Wno-write-strings -Wno-unused-result -ansi -I. -I/nix/store/wn4skrmv9gbag04pyj76c7qaw7x4cdq1-libtirpc-1.2.7-rc4-dev/include/tirpc -I../.. -I../../exports/include -I../../imports/motif/include -I/nix/store/ky9k6ifn9mn09lq6bb2q9npz4nx4459z-x11ProjectRoot/include -D__linux__ -D__x86_64__ -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=5 -DOSMINORVERSION=4 -DFUNCPROTO=15 -DNARROWPROTO -D_REENTRANT -DXUSE_MTSAFE_API -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N -DREL="54" -DRELMAJOR="5" -DRELMINOR="4"-fPIC agent.c agent.c: In function '_DtCm_init_agent': agent.c:150:43: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 150 | (void)pmap_unset(_DtCm_transient, AGENTVERS); | ^ | AGENTVERS_2 agent.c:150:43: note: each undeclared identifier is reported only once for each function it appears in agent.c:157:46: error: 'update_callback' undeclared (first use in this function) 157 | if (registerrpc(_DtCm_transient, AGENTVERS, update_callback, | ^~~ agent.c:158:19: error: '_DtCm_update_callback_1' undeclared (first use in this function); did you mean 'cmcb_update_callback_2'? 158 | (char *(*)())_DtCm_update_callback_1, (xdrproc_t)_DtCm_xdr_Table_Res_4, | ^~~ | cmcb_update_callback_2 agent.c:159:17: error: '_DtCm_xdr_Update_Status' undeclared (first use in this function); did you mean '_DtCm_xdr_Appt_Status_4'? 159 | (xdrproc_t)_DtCm_xdr_Update_Status) == -1) { | ^~~ | _DtCm_xdr_Appt_Status_4 agent.c: In function '_DtCm_destroy_agent': agent.c:192:44: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 192 | (void) pmap_unset(_DtCm_transient, AGENTVERS); |^ |AGENTVERS_2 agent.c: At top level: agent.c:297:1: error: unknown type name 'Update_Status' 297 | Update_Status * | ^ agent.c: In function '_DtCm_update_callback_1': agent.c:300:9: error: unknown type name 'Update_Status' 300 | static Update_Status status = update_succeeded; | ^ agent.c:300:32: error: 'update_succeeded' undeclared (first use in this function) 300 | static Update_Status status = update_succeeded; |^~~~ agent.c:312:15: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 312 | cbi->vers = AGENTVERS; | ^ | AGENTVERS_2 agent.c: In function '_DtCm_handle_callback': agent.c:472:20: error: 'AGENTVERS' undeclared (first use in this function); did you mean 'AGENTVERS_2'? 472 | if (ptr->vers == AGENTVERS) |^ |AGENTVERS_2 make[3]: *** [Makefile:789: agent.o] Error 1 make[3]: Leaving directory '/build/cde-2.3.2/lib/csa' make[2]: *** [Makefile:735: all] Error 2 make[2]: Leaving directory '/build/cde-2.3.2/lib' make[1]: *** [xmakefile:734: all] Error 2 make[1]: Leaving directory '/build/cde-2.3.2' make: *** [Makefile:61: World] Error 2 builder for '/nix/store/4cg9k04l90b1gqzbfm9chpwj6n42la2m-cde-2.3.2.drv' failed with exit code 2 error: build of '/nix/store/4cg9k04l90b1gqzbfm9chpwj6n42la2m-cde-2.3.2.drv' failed ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel