Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build failure - snprintb.o



This appears to be a result of __RENAME being used on getlastlogx(). Running 'cc -E' shows

        ...
        struct lastlogx *getlastlogx(const char *, __uid_t, struct lastlogx *)
            no renaming in kernel or standalone environment;
        ...

while the source for that part of utmpx.h says

        #ifndef __LIBC12_SOURCE__
        struct lastlogx *getlastlogx(const char *, uid_t, struct lastlogx *)
            __RENAME(__getlastlogx13);
        #endif



On Tue, 16 Dec 2008, Paul Goyette wrote:

Sources updated a few minutes ago...  This is on port-amd64 machine...

/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Os -momit-leaf-frame-pointer -ffreestanding -Werror -m32 -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/arch/i386 -DBOOTXX -I /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../lib -I /build/netbsd-local/obj/amd64/sys/arch/i386/stand/bootxx/bootxx_ffsv1 -DBOOTXX_SECTORS=15 -DPRIMARY_LOAD_ADDRESS=0x600 -DSECONDARY_LOAD_ADDRESS=0x10000 -DXXfs_open=ffsv1_open -DXXfs_close=ffsv1_close -DXXfs_read=ffsv1_read -DXXfs_stat=ffsv1_stat -DFS=ffsv1 -DNO_LBA_CHECK -nostdinc -D_STANDALONE -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../../ -DLIBSA_SINGLE_FILESYSTEM=xxfs -DLIBSA_NO_TWIDDLE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -DLIBSA_SINGLE_DEVICE=blkdev -DLIBKERN_OPTIMISE_SPACE -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" -D"devopen(f,n,fl)=(*(fl)=(void *)n,0)" -DLIBSA_NO_DISKLABEL_MSGS -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/quad -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/string -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/arch/i386/string -nostdinc -isystem /build/netbsd-local/dest/amd64/usr/include -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/quad -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/string -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/arch/i386/string -I/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/include -nostdinc -isystem /build/netbsd-local/dest/amd64/usr/include -c /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c -o snprintb.o
In file included from /build/netbsd-local/dest/amd64/usr/include/util.h:42,
from /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:49: /build/netbsd-local/dest/amd64/usr/include/utmpx.h: In function 'getlastlogx': /build/netbsd-local/dest/amd64/usr/include/utmpx.h:130: error: expected declaration specifiers before 'no' In file included from /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:49: /build/netbsd-local/dest/amd64/usr/include/util.h:66: error: storage class specified for parameter 'pw_policy_t' /build/netbsd-local/dest/amd64/usr/include/util.h:101: error: expected declaration specifiers before 'pw_policy_t' /build/netbsd-local/dest/amd64/usr/include/util.h:102: error: expected ')' before 'char' In file included from /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:50: /build/netbsd-local/dest/amd64/usr/include/errno.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no' /build/netbsd-local/dest/amd64/usr/include/errno.h:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no' /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:191: error: old-style parameter declarations in prototyped function definition /build/netbsd-local/dest/amd64/usr/include/utmpx.h:129: error: parameter name omitted /build/netbsd-local/dest/amd64/usr/include/utmpx.h:129: error: parameter name omitted /build/netbsd-local/dest/amd64/usr/include/utmpx.h:129: error: parameter name omitted /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:191: error: expected '{' at end of input
cc1: warnings being treated as errors
/build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libutil/snprintb.c:191: warning: no return statement in function returning non-void
*** [snprintb.o] Error code 1
1 error
nbmake: stopped in /build/netbsd-local/obj/amd64/sys/arch/i386/stand/bootxx/lib/kern *** [/build/netbsd-local/obj/amd64/sys/arch/i386/stand/bootxx/bootxx_ffsv1/lib/kern/libkern.a] Error code 2
1 error
nbmake: stopped in /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1
*** [dependall] Error code 2
1 error
nbmake: stopped in /build/netbsd-local/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1
*** [dependall-bootxx_ffsv1] Error code 2
1 error
nbmake: stopped in /build/netbsd-local/src/sys/arch/i386/stand/bootxx

----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
|                  |                          | pgoyette%netbsd.org@localhost  |
----------------------------------------------------------------------

----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
|                  |                          | pgoyette%netbsd.org@localhost  |
----------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index