Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640012 - mail-filter/opendmarc-1.1.3 - opendmarc_dns.c: In function 'dmarc_dns_get_record': opendmarc_dns.c:315:13: error: 'answerlen' undeclared (first use in this function)
Summary: mail-filter/opendmarc-1.1.3 - opendmarc_dns.c: In function 'dmarc_dns_get_rec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-06 11:01 UTC by Nico Baggus
Modified: 2018-12-10 10:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,16.90 KB, text/plain)
2017-12-06 11:01 UTC, Nico Baggus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Baggus 2017-12-06 11:01:16 UTC
Created attachment 508460 [details]
build.log

during upgrading Gentoo to 17.0 (emerge -e @world) 
opedmarc fails to build:   Time to move to newer version?
   
make[3]: Entering directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3/libopendmarc/docs'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3/libopendmarc/docs'
make[3]: Entering directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3/libopendmarc'
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..  -DCONFIG_BASE=\"/etc\"  -O2 -march=pentium4 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -c -o opendmarc_dns.lo opendmarc_dns.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -DCONFIG_BASE=\"/etc\" -O2 -march=pentium4 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -c opendmarc_dns.c  -fPIC -DPIC -o .libs/opendmarc_dns.o
In file included from opendmarc_internal.h:73:0,
                 from opendmarc_dns.c:12:
opendmarc_dns.c: In function 'dmarc_dns_get_record':
opendmarc_dns.c:315:13: error: 'answerlen' undeclared (first use in this function)
    GETSHORT(answerlen, cur_ptr);
             ^
opendmarc_dns.c:315:13: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [Makefile:421: opendmarc_dns.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3/libopendmarc'
make[2]: *** [Makefile:457: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3/libopendmarc'
make[1]: *** [Makefile:410: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/mail-filter/opendmarc-1.1.3/work/opendmarc-1.1.3'
make: *** [Makefile:320: all] Error 2
 * ERROR: mail-filter/opendmarc-1.1.3::gentoo failed (compile phase):
 *   emake failed
 *
Comment 1 Nico Baggus 2017-12-06 11:05:50 UTC
 emerge -pqv '=mail-filter/opendmarc-1.1.3::gentoo'
[ebuild   R   ] mail-filter/opendmarc-1.1.3
Comment 2 Nico Baggus 2017-12-06 11:08:37 UTC
Portage 2.3.13 (python 3.5.4-final-0, default/linux/x86/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.9.34-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.34-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-gentoo-2.4.1
KiB Mem:     1028420 total,     25000 free
KiB Swap:    4201616 total,   3913692 free
Timestamp of repository gentoo: Wed, 06 Dec 2017 00:45:01 +0000
Head commit of repository gentoo: 2709f1821026d195978949c842d30bd893da63ec
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://data.noci.local/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude ChangeLog --delete-excluded

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

matrix
    location: /var/lib/layman/matrix
    masters: gentoo
    priority: 50

ruby
    location: /var/lib/layman/ruby
    masters: gentoo
    priority: 50

voyageur
    location: /var/lib/layman/voyageur
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs"
DISTDIR="/var/tmp/portdist"
EMERGE_DEFAULT_OPTS="--autounmask-write --quiet --keep-going --with-bdeps=y "
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="rsync://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ rsync://mirrors.telepoint.bg/gentoo/ http://mirrors.telepoint.bg/gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/ ftp://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
INSTALL_MASK="/lib/systemd/ /usr/lib/systemd /etc/systemd"
LANG="en_US.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="a52 aac accessibility acl acpi alsa apm asterisk audiofile audit avahi bash-completion berkdb branding bzip2 caps cdda cdr cleartype cli consolekit cracklib crypt cscope cups curl cxx dbus dga directfb dri dts dvd dvdr emboss encode exif exiscan exiscan-acl expat fam fastcgi fax fbcon firefox flac font-server fortran gd gdbm geoip gif glamor glib glut gmp gpm graphviz hal howl-compat ical iconv idn ieee1394 imap imlib iproute2 ipv6 jabber jadetex java jbig jpeg jpeg2k kerberos ladspa lcms ldap libnotify libsamplerate lighttpd lua lzma lzo mad memcache mhash mmx mmxext mng modules mp3 mp4 mpeg mysql mysqli ncurses netboot network nls nptl odbc ogg openexr openldap openmp pam parse-clocks pcre pdf perl pic png policykit posix ppds python qt3support quotas radius razor readline rle rrdcgi ruby sasl seccomp session skey slang sndfile snmp sox speex spell spf sqlite srs sse sse2 ssl startup-notification svg syslog tcpd tiff truetype udev udisks unicode urandom usb vim-syntax vorbis webdav wmf x264 x86 xattr xml xv xvid yaz zeroconf zlib" ABI_X86="32" ALSA_CARDS="intel8x0 usb-audio" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev mouse keyboard joystick" KERNEL="linux" L10N="en nl en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl en_GB en_US" NGINX_MODULES_HTTP="ssi replace sub scgi rewrite referrer proxy perl memcached gzip gzip_static geo geoip fastcgi dav charset browser auth_basic access push random_index realip referer upload userid empty_gif map limit_req limit_zone xslt addition autoindex image_filter uwsgi secure_link slowfs_cache mp4 flv cache_purge fancyindex auth_pam gunzip headers_more limit_conn metrics stub_status spdy security naxsi push_stream lua dav_ext" NGINX_MODULES_MAIL="imap" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vga vesa" XTABLES_ADDONS="account delude dhcpmac fuzzy geoip gradm iface ipmark ipp2p ipset ipv4options logmark lscan pknock psd steal tee condition quota2"
Unset:  CC, CPPFLAGS, CTARGET, CXX, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

mail-filter/opendmarc-1.1.3::gentoo was built with the following:
USE=""
Comment 3 Fabian Groffen gentoo-dev 2017-12-22 11:02:54 UTC
Could you please try building 1.3.2-r1 to see if this issue has been addressed already?

I can reproduce this on my system now, 1.3.2-r1 seems to compile for me though.

I've just pushed a fix for 1.1.3, I think stabilisation for 1.3.2 is a good idea.
Comment 4 Larry the Git Cow gentoo-dev 2017-12-22 11:04:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd68b762f17880871e949916b727c8e791c63593

commit bd68b762f17880871e949916b727c8e791c63593
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2017-12-22 11:04:15 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2017-12-22 11:04:32 +0000

    mail-filter/opendmarc: fix building older version with newer glibc
    
    Closes: https://bugs.gentoo.org/640012
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 mail-filter/opendmarc/opendmarc-1.1.3.ebuild | 5 +++++
 1 file changed, 5 insertions(+)
Comment 5 Nico Baggus 2017-12-23 00:51:00 UTC
Version 1.3.2-r1  builds & compiles.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-12-10 09:53:52 UTC
1.1.3 is working, as is 1.3.2-r1

But there are still the broken versions 1.3.0 and 1.3.1 in tree.

Maybe its a good time to start stabilizing 1.3.2-r1 and/or nuking 1.3.{0,1}
Comment 7 Larry the Git Cow gentoo-dev 2018-12-10 10:35:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7319c4e904277ecc9ec7fb8f0e1e91dbfdd75546

commit 7319c4e904277ecc9ec7fb8f0e1e91dbfdd75546
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2018-12-10 10:34:55 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2018-12-10 10:34:55 +0000

    mail-filter/opendmarc: cleanup and fix bugs #655728, #662112
    
    Bug: https://bugs.gentoo.org/640012
    Closes: https://bugs.gentoo.org/655728
    Closes: https://bugs.gentoo.org/662112
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 mail-filter/opendmarc/Manifest                     |  2 -
 mail-filter/opendmarc/files/opendmarc.service      |  5 +--
 mail-filter/opendmarc/opendmarc-1.3.0.ebuild       | 51 ----------------------
 ...marc-1.3.1.ebuild => opendmarc-1.3.2-r2.ebuild} | 37 +++++++++++-----
 4 files changed, 29 insertions(+), 66 deletions(-)