* Package:    dev-db/cdb-0.75-r5:0
 * Repository: gentoo
 * Maintainer: hattya@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking 'cdb-0.75.tar.gz' to /var/tmp/portage/dev-db/cdb-0.75-r5/work
>>> Source unpacked in /var/tmp/portage/dev-db/cdb-0.75-r5/work
>>> Preparing source in /var/tmp/portage/dev-db/cdb-0.75-r5/work/cdb-0.75 ...
  [ ok ]
  [ ok ]
  [ ok ]
  [ ok ]
  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-db/cdb-0.75-r5/work/cdb-0.75 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-db/cdb-0.75-r5/work/cdb-0.75 ...
make -j2 
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo exec "`head -n 1 conf-ld`" \
'-o "$main" "$main".o ${1+"$@"}' \
) > load
chmod 755 load
( cat warn-auto.sh; \
echo exec "`head -n 1 conf-cc`" '-c ${1+"$@"}' \
) > compile
chmod 755 compile
( cat warn-auto.sh; \
echo CC=\'`head -n 1 conf-cc`\'; \
echo LD=\'`head -n 1 conf-ld`\'; \
cat find-systype.sh; \
) | sh > systype
cat warn-auto.sh cdbmake-12.sh \
| sed s}HOME}"`head -n 1 conf-home`"}g \
> cdbmake-12
chmod 755 cdbmake-12
cat warn-auto.sh cdbmake-sv.sh \
| sed s}HOME}"`head -n 1 conf-home`"}g \
> cdbmake-sv
chmod 755 cdbmake-sv
cat warn-auto.sh rts.sh \
| sed s}HOME}"`head -n 1 conf-home`"}g \
> rts
chmod 755 rts
./compile testzero.c
./compile install.c
In file included from install.c:6:
exit.h:4:13: error: conflicting types for ‘_exit’; have ‘void(void)’
    4 | extern void _exit();
      |             ^~~~~
In file included from buffer.h:4,
                 from install.c:2:
/usr/include/unistd.h:624:13: note: previous declaration of ‘_exit’ with type ‘void(int)’
  624 | extern void _exit (int __status) __attribute__ ((__noreturn__));
      |             ^~~~~
install.c: In function ‘h’:
install.c:14:6: warning: old-style function definition [-Wold-style-definition]
   14 | void h(home,uid,gid,mode)
      |      ^
install.c: In function ‘d’:
install.c:29:6: warning: old-style function definition [-Wold-style-definition]
   29 | void d(home,subdir,uid,gid,mode)
      |      ^
install.c: In function ‘c’:
install.c:52:6: warning: old-style function definition [-Wold-style-definition]
   52 | void c(home,subdir,file,uid,gid,mode)
      |      ^
install.c:69:21: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
   69 |   buffer_init(&ssin,read,fdin,inbuf,sizeof inbuf);
      |                     ^~~~
      |                     |
      |                     ssize_t (*)(int,  void *, long unsigned int) {aka long int (*)(int,  void *, long unsigned int)}
buffer.h:18:34: note: expected ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} but argument is of type ‘ssize_t (*)(int,  void *, long unsigned int)’ {aka ‘long int (*)(int,  void *, long unsigned int)’}
   18 | extern void buffer_init(buffer *,ssize_t (*)(),int,char *,unsigned int);
      |                                  ^~~~~~~~~~~~~
In file included from /usr/include/unistd.h:1217:
/usr/include/bits/unistd.h:26:1: note: ‘read’ declared here
   26 | read (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), size_t __nbytes)
      | ^~~~
install.c:79:22: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
   79 |   buffer_init(&ssout,write,fdout,outbuf,sizeof outbuf);
      |                      ^~~~~
      |                      |
      |                      ssize_t (*)(int,  const void *, size_t) {aka long int (*)(int,  const void *, long unsigned int)}
buffer.h:18:34: note: expected ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} but argument is of type ‘ssize_t (*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const void *, long unsigned int)’}
   18 | extern void buffer_init(buffer *,ssize_t (*)(),int,char *,unsigned int);
      |                                  ^~~~~~~~~~~~~
/usr/include/unistd.h:378:16: note: ‘write’ declared here
  378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
install.c: In function ‘z’:
install.c:102:6: warning: old-style function definition [-Wold-style-definition]
  102 | void z(home,subdir,file,len,uid,gid,mode)
      |      ^
install.c:121:22: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
  121 |   buffer_init(&ssout,write,fdout,outbuf,sizeof outbuf);
      |                      ^~~~~
      |                      |
      |                      ssize_t (*)(int,  const void *, size_t) {aka long int (*)(int,  const void *, long unsigned int)}
buffer.h:18:34: note: expected ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} but argument is of type ‘ssize_t (*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const void *, long unsigned int)’}
   18 | extern void buffer_init(buffer *,ssize_t (*)(),int,char *,unsigned int);
      |                                  ^~~~~~~~~~~~~
/usr/include/unistd.h:378:16: note: ‘write’ declared here
  378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
install.c: In function ‘main’:
install.c:148:3: error: too many arguments to function ‘_exit’; expected 0, have 1
  148 |   _exit(0);
      |   ^~~~~ ~
exit.h:4:13: note: declared here
    4 | extern void _exit();
      |             ^~~~~
make: *** [Makefile:196: install.o] Error 1
 * ERROR: dev-db/cdb-0.75-r5::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-db/cdb-0.75-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/cdb-0.75-r5::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-db/cdb-0.75-r5:20251208-040507.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-db/cdb-0.75-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/cdb-0.75-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/cdb-0.75-r5/work/cdb-0.75'
 * S: '/var/tmp/portage/dev-db/cdb-0.75-r5/work/cdb-0.75'