The FAQ says not to report build errors, however this is not a development
snapshot but the openbsd 5.5 release source with erratas applied.

If this is fixed in a development snapshot then I am sorry for the
disturbance.


In:
/usr/src/sys/arch/amd64/amd64/machdep.c: line 1862

The following code block generates the build error (warnings not allowed)
The variable cdp is set no matter what the config options are.

cdp is only referenced if you build with com ports or BOOTINFO_DEBUG

Without com ports enabled in the kernel config or BOOTINFO_DEBUG the build
will fail with a warning.


                                bios_consdev_t *cdp =
                                    (bios_consdev_t*)q->ba_arg;
#if NCOM > 0
                                static const int ports[] =
                                    { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
                                int unit = minor(cdp->consdev);
                                int consaddr = cdp->consaddr;
                                if (consaddr == -1 && unit >= 0 &&
                                    unit < (sizeof(ports)/sizeof(ports[0])))
                                        consaddr = ports[unit];
                                if (major(cdp->consdev) == 8 &&
                                    consaddr != -1) {
                                        comconsunit = unit;
                                        comconsaddr = consaddr;
                                        comconsrate = cdp->conspeed;
                                        comconsiot = X86_BUS_SPACE_IO;

                                        /* Probe the serial port this time.
*/
                                        cninit();
                                }
#endif
#ifdef BOOTINFO_DEBUG
                                printf(" console 0x%x:%d",
                                    cdp->consdev, cdp->conspeed);
#endif



br,
Øyvind Jægtnes

Reply via email to