Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-9817

mail-filter/libmilter-1.0.2::net-kit rror: ‘RES_USE_INET6’ undeclared (first use in this function)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      >>> Emerging (5 of 35) mail-filter/libmilter-1.0.2::net-kit
       * sendmail.8.14.5.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                 [ ok ]
      >>> Unpacking source...
      >>> Unpacking sendmail.8.14.5.tar.gz to /var/tmp/portage/mail-filter/libmilter-1.0.2/work
      >>> Source unpacked in /var/tmp/portage/mail-filter/libmilter-1.0.2/work
      >>> Preparing source in /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5 ...
       * Applying libmilter-build-system.patch ...                                                                                                                                                                                          [ ok ]
       * Applying libmilter-sharedlib.patch ...                                                                                                                                                                                             [ ok ]
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5 ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5 ...
      /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/libmilter /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5
      make -j2 -j1 MILTER_SOVER=1.0.2
      /bin/sh ./Build   all
      Configuration: pfx=, os=Linux, rel=4.18.8-gentoo, rbase=4, rroot=4.18, arch=x86_64, sfx=, variant=optimized
      Using M4=/usr/bin/m4
      Creating /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter using /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/devtools/OS/Linux
      Including /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/devtools/Site/site.config.m4
      Making dependencies in /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter
      make[1]: Entering directory '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter'
      ln -f -s ../../libsm/errstring.c .
      ln -f -s ../../libsm/strl.c .
      rm -f sm_os.h
      ln -f -s ../../include/sm/os/sm_os_linux.h sm_os.h
      x86_64-pc-linux-gnu-gcc -M -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC main.c engine.c listener.c worker.c handler.c comm.c smfi.c signal.c sm_gethost.c monitor.c errstring.c strl.c    >> Makefile
      make[1]: Leaving directory '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter'
      Making in /var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter
      make[1]: Entering directory '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter'
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o main.o main.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o engine.o engine.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o listener.o listener.c
      listener.c: In function ‘mi_thread_handle_wrapper’:
      listener.c:579:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
        579 |  return (void *) mi_handle_session(arg);
            |         ^
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o worker.o worker.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o handler.o handler.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o comm.o comm.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o smfi.o smfi.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o signal.o signal.c
      x86_64-pc-linux-gnu-gcc -mtune=generic -Os -pipe -I. -I../../sendmail   -I../../include  -DNETUNIX -DNETINET -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf  -D_REENTRANT -fPIC -DXP_MT   -c -o sm_gethost.o sm_gethost.c
      In file included from ../../include/sendmail/sendmail.h:21,
                       from ../../sendmail/sendmail.h:44,
                       from sm_gethost.c:14:
      sm_gethost.c: In function ‘sm_getipnodebyname’:
      sm_gethost.c:58:18: error: ‘RES_USE_INET6’ undeclared (first use in this function)
         58 |   resv6 = bitset(RES_USE_INET6, _res.options);
            |                  ^~~~~~~~~~~~~
      ../../include/sm/bitops.h:55:40: note: in definition of macro ‘bitset’
         55 | # define bitset(bit, word) (((word) & (bit)) != 0)
            |                                        ^~~
      sm_gethost.c:58:18: note: each undeclared identifier is reported only once for each function it appears in
         58 |   resv6 = bitset(RES_USE_INET6, _res.options);
            |                  ^~~~~~~~~~~~~
      ../../include/sm/bitops.h:55:40: note: in definition of macro ‘bitset’
         55 | # define bitset(bit, word) (((word) & (bit)) != 0)
            |                                        ^~~
      make[1]: *** [<builtin>: sm_gethost.o] Error 1
      make[1]: Leaving directory '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/obj.Linux.4.18.8-gentoo.x86_64/libmilter'
      make: *** [Makefile:8: all] Error 2
       * ERROR: mail-filter/libmilter-1.0.2::net-kit failed (compile phase):
       *   emake failed
       *
       * If you need support, post the output of `emerge --info '=mail-filter/libmilter-1.0.2::net-kit'`,
       * the complete build log and the output of `emerge -pqv '=mail-filter/libmilter-1.0.2::net-kit'`.
       * The complete build log is located at '/var/tmp/portage/mail-filter/libmilter-1.0.2/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/mail-filter/libmilter-1.0.2/temp/environment'.
       * Working directory: '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5/libmilter'
       * S: '/var/tmp/portage/mail-filter/libmilter-1.0.2/work/sendmail-8.14.5'
      
      >>> Failed to emerge mail-filter/libmilter-1.0.2, Log file:
      
      

            Unassigned Unassigned
            tczaude tczaude
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: