Re: di fails to build
Derek Homeier <[email protected]> Wed, 8 May 2024 16:57:28 +0200
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
On 8 May 2024, at 4:13 PM, Scott Hannahs <[email protected]> wrote: > > Thanks! I will try to dig into if di should have USE_ETC_FILESYSTEMS set or not. I think that variable is specific to the di project. The fact that it is not set during the configure stage either True or False seems to be a fundamental issue. Digging around the preceding code this looks actually more like a thing for AIX and similar systems; I would now expect that DI_MOUNT_FILE should be defined through one of the other options above – if there is even an equivalent to /etc/mnttab on macOS. But the actual error comes from a function trying to read from DI_MOUNT_FILE below, so may still be related. Cheers, Derek > > cc -O2 -I/opt/sw/include -Os -DDI_LOCALE_DIR=\"/opt/sw/share/locale\" -fno-common -Wextra -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-float-equal -Wno-shift-sign-overflow -Wno-stringop-overflow -Wno-stringop-truncation -Wno-poison-system-directories -Wformat -Wformat-security -Werror=format-security -Werror,-Wunused-command-line-argument -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-protector-all -DPIE -fPIE -Wno-unknown-warning-option -Weverything -Wno-padded -Wno-format-nonliteral -Wno-cast-align -Wno-system-headers -Wno-disabled-macro-expansion -c digetentries.c ... fail > > digetentries.c:180:11: warning: 'USE_ETC_FILESYSTEMS' is not defined, evaluates to 0 [-Wundef] > # if (USE_ETC_FILESYSTEMS) > ^ > digetentries.c:580:22: error: variable has incomplete type 'struct mnttab' > struct mnttab mntEntry; > ^ > digetentries.c:580:12: note: forward declaration of 'struct mnttab' > struct mnttab mntEntry; > ^ > digetentries.c:590:39: error: invalid application of 'sizeof' to an incomplete type 'struct mnttab' > while (fread ((char *) &mntEntry, sizeof (struct mnttab), 1, f) == 1) > ^ ~~~~~~~~~~~~~~~ > digetentries.c:580:12: note: forward declaration of 'struct mnttab' > struct mnttab mntEntry; > ^ > digetentries.c:600:45: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] > sizeof (diDiskInfo_t) * *diCount); > ~ ^~~~~~~~ > digetentries.c:616:6: warning: '_mem_struct_mnttab_mntopts' is not defined, evaluates to 0 [-Wundef] > # if _mem_struct_mnttab_mntopts > ^ _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users