At the risk of necroing a presumably dead thread, this error also occurs under Raspbian Buster on a RasPi4.
-----Original Message----- From: Michael Griffin <gondarli...@gmail.com> Sent: Wednesday, June 26, 2019 10:02 AM To: cdesktopenv-devel@lists.sourceforge.net Subject: Re: [cdesktopenv-devel] dtksh fails to build on Fedora 30 It appears these lines are the offending code, but I cannot determine why. ----- begin ----- fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){ unsigned int ma = major(idevice(st)); unsigned int mi = minor(idevice(st)); static char buf[18]; if (ma == '#' && isalnum(mi)) { /* * Plan? Nein! */ buf[0] = ma; buf[1] = mi; buf[2] = 0; } else sfsprintf(buf, sizeof(buf), "%03d,%03d", ma, mi); return(buf); } ----- end ----- By my hand, I am, Michael E. Griffin On Tue, Jun 25, 2019 at 3:35 PM Michael Griffin <gondarli...@gmail.com> wrote: > > I agree, that's why I am posting to see if there are libraries I am > missing or if I might be doing it wrong (known to happen on occasion). > > By my hand, I am, > > Michael G > > On Tue, Jun 25, 2019 at 3:13 PM Edmond Orignac > <edmond.orig...@wanadoo.fr> wrote: > > > > These errors seem to result from missing include files. The > > major/minor functions > > > > are defined in sys/sysmacros.h on Ubuntu Linux, but maybe this is > > different in Fedora. > > > > The types Sfio_t off_t should be defined in ast include files > > (stdio.h for Sfio), so the error is more surprising. > > > > > > > > Le 25/06/2019 à 19:22, Michael Griffin a écrit : > > > I'm not sure if there is an error in the code or an the parsing of > > > the code, but while trying to build on Fedora 30, dtksh fails at > > > the point > > > below: > > > > > > ----- begin ----- > > > ... > > > + gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings > > > -Wno-unused-result '-DPROFILEPATH="/etc/dt/config/profile"' > > > '-DSUIDPROFILEPATH="/etc/dt/config/suid_profile"' > > > '-DSUIDEXECPATH="/usr/dt/bin/suid_exec"' > > > '-DCDE_INSTALLATION_TOP="/usr/dt"' -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=1' -I. -Iinclude -c > > > string/fmtdev.c > > > string/fmtdev.c: In function ‘fmtdev’: > > > string/fmtdev.c:99:38: error: expected expression before ‘;’ token > > > 99 | unsigned int ma = major(idevice(st)); > > > | ^ > > > string/fmtdev.c:100:38: error: expected expression before ‘;’ token > > > 100 | unsigned int mi = minor(idevice(st)); > > > | ^ > > > *** exit code 1 making fmtdev.o > > > libvdelta requires libast but libast had build errors libodelta > > > requires libast but libast had build errors pax requires libast > > > but libast had build errors build libcmd 950811 > > > + gcc -g -pipe -O2 -fno-strict-aliasing -Wno-write-strings > > > -Wno-unused-result '-DPROFILEPATH="/etc/dt/config/profile"' > > > '-DSUIDPROFILEPATH="/etc/dt/config/suid_profile"' > > > '-DSUIDEXECPATH="/usr/dt/bin/suid_exec"' > > > '-DCDE_INSTALLATION_TOP="/usr/dt"' -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=1' -I. > > > -I/home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/include/ > > > ast > > > -c cmdinit.c > > > ./cmdlib.h:111:44: error: unknown type name ‘Sfio_t’ > > > 111 | extern __MANGLE__ int rev_line __PROTO__((Sfio_t*, Sfio_t*, > > > off_t)); > > > | ^~~~~~ > > > cmdinit.c:57:22: note: in definition of macro ‘__PROTO__’ > > > 57 | #define __PROTO__(x) x > > > | ^ > > > ./cmdlib.h:111:53: error: unknown type name ‘Sfio_t’ > > > 111 | extern __MANGLE__ int rev_line __PROTO__((Sfio_t*, Sfio_t*, > > > off_t)); > > > | ^~~~~~ > > > cmdinit.c:57:22: note: in definition of macro ‘__PROTO__’ > > > 57 | #define __PROTO__(x) x > > > | ^ > > > ./cmdlib.h:111:62: error: unknown type name ‘off_t’ > > > 111 | extern __MANGLE__ int rev_line __PROTO__((Sfio_t*, Sfio_t*, > > > off_t)); > > > | > > > ^~~~~ > > > cmdinit.c:57:22: note: in definition of macro ‘__PROTO__’ > > > 57 | #define __PROTO__(x) x > > > | ^ > > > cmdinit.c: In function ‘cmdinit’: > > > cmdinit.c:99:11: warning: implicit declaration of function ‘strrchr’ > > > [-Wimplicit-function-declaration] > > > 99 | if (cp = strrchr(argv[0], '/')) cp++; > > > | ^~~~~~~ > > > cmdinit.c:99:11: warning: incompatible implicit declaration of > > > built-in function ‘strrchr’ > > > cmdinit.c:94:1: note: include ‘<string.h>’ or provide a declaration of > > > ‘strrchr’ > > > 93 | #include <cmdlib.h> > > > +++ |+#include <string.h> > > > 94 | > > > cmdinit.c:101:2: error: ‘error_info’ undeclared (first use in this > > > function) > > > 101 | error_info.id = cp; > > > | ^~~~~~~~~~ > > > cmdinit.c:101:2: note: each undeclared identifier is reported only > > > once for each function it appears in > > > *** exit code 1 making cmdinit.o > > > ksh93 requires libcmd but libcmd had build errors build libAST > > > 930519 > > > + mv > > > + /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/prob > > > + e/C/probe > > > /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/probe/ > > > C/probe.old > > > + 2> /dev/null > > > + cp C.probe > > > + /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/prob > > > + e/C/probe > > > + 2> /dev/null > > > + mv > > > + /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/make > > > + /PROBE.mk > > > /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/make/P > > > ROBE.mk.old > > > + 2> /dev/null > > > + cp PROBE.mk > > > + /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/lib/make > > > + /PROBE.mk > > > + 2> /dev/null > > > + proto -f /dev/null > > > + 1> h.23487.h > > > + cmp -s h.23487.h prototyped.h > > > + rm -f h.23487.h > > > + mv > > > + /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/include/ > > > + ast/prototyped.h > > > /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/include/as > > > t/prototyped.h.old > > > + 2> /dev/null > > > + cp prototyped.h > > > /home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93/include/as > > > t/prototyped.h > > > + 2> /dev/null > > > make[1]: *** No rule to make target 'src/cmd/ksh93/main.o', needed > > > by 'ksh93.o'. Stop. > > > make[1]: Leaving directory > > > '/home/z601793/cdesktopenv-code/cde/programs/dtksh/ksh93' > > > make: *** [Makefile:744: all] Error 2 > > > > > > ----- End ----- > > > > > > By my hand, I am, > > > > > > Michael G > > > > > > > > > _______________________________________________ > > > cdesktopenv-devel mailing list > > > cdesktopenv-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > > > > > > _______________________________________________ > > cdesktopenv-devel mailing list > > cdesktopenv-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel