Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438776 - www-apache/mod_gnutls-0.5.10 - gnutls_hooks.c:753:7: error: 'conn_rec' has no member named 'remote_addr'
Summary: www-apache/mod_gnutls-0.5.10 - gnutls_hooks.c:753:7: error: 'conn_rec' has no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-10-18 09:09 UTC by Joerg Neikes
Modified: 2013-01-03 19:10 UTC (History)
1 user (show)

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


Attachments
mod_gnutls-0.5.10-apache-api.patch (mod_gnutls-0.5.10-apache-api.patch,439 bytes, patch)
2012-10-18 09:18 UTC, Joerg Neikes
Details | Diff
mod_gnutls-0.5.10.ebuild (mod_gnutls-0.5.10.ebuild,1010 bytes, text/plain)
2012-10-18 09:19 UTC, Joerg Neikes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2012-10-18 09:09:18 UTC
Portage 2.1.11.29 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.5.3-gentoo-xen-dom0 x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-xen-dom0-x86_64-Intel-R-_Xeon-R-_CPU_L5630_@_2.13GHz-with-gentoo-2.2
Timestamp of tree: Thu, 18 Oct 2012 08:15:01 +0000
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo scarabeus dev-zero sunrise virtualization
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de dk fi jp it tr nl fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/scarabeus /var/lib/layman/dev-zero /var/lib/layman/sunrise /var/lib/layman/virtualization"
SYNC="rsync://mirror.aixtema.de/gentoo-portage"
USE="X acl acm alsa amd64 apache apache2 api bcmath berkdb bzip2 bzlib calendar cli cracklib crypt ctype cups curl curlwrappers cxx dba dbase dbus dbx dio dri dvd emacs encode exif extras fam flask flatfile fortran ftp fuse gd gdbm gmp gnutls gpm gtk hal hvm iconv idn imap ioemu ipv6 iscsi jpeg kvm ldap lxde macvtap mad maildir mhash mime mmx mng modules mudflap multilib mysql ncurses nls nptl nptlonly opengl openmp openssl pam pcre pdf pdflib php pic png posix pppd pulseaudio pygrub readline samba screen sdl session sharedext simplexml snmp soap sockets spell sse sse2 ssl sysvipc tcpd tidy tiff truetype unicode usb vhost vhosts virt-network vnc xen xml xml2 xmlrpc xpm xsl xsm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 cgi cgid 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de dk fi jp it tr nl fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm cris i386 m32 m68k microblaze microblazeel mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa vga intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Joerg Neikes 2012-10-18 09:10:18 UTC
Portage 2.1.11.29 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.5.3-gentoo-xen-dom0 x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-xen-dom0-x86_64-Intel-R-_Xeon-R-_CPU_L5630_@_2.13GHz-with-gentoo-2.2
Timestamp of tree: Thu, 18 Oct 2012 08:15:01 +0000
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo scarabeus dev-zero sunrise virtualization
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de dk fi jp it tr nl fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/scarabeus /var/lib/layman/dev-zero /var/lib/layman/sunrise /var/lib/layman/virtualization"
SYNC="rsync://mirror.aixtema.de/gentoo-portage"
USE="X acl acm alsa amd64 apache apache2 api bcmath berkdb bzip2 bzlib calendar cli cracklib crypt ctype cups curl curlwrappers cxx dba dbase dbus dbx dio dri dvd emacs encode exif extras fam flask flatfile fortran ftp fuse gd gdbm gmp gnutls gpm gtk hal hvm iconv idn imap ioemu ipv6 iscsi jpeg kvm ldap lxde macvtap mad maildir mhash mime mmx mng modules mudflap multilib mysql ncurses nls nptl nptlonly opengl openmp openssl pam pcre pdf pdflib php pic png posix pppd pulseaudio pygrub readline samba screen sdl session sharedext simplexml snmp soap sockets spell sse sse2 ssl sysvipc tcpd tidy tiff truetype unicode usb vhost vhosts virt-network vnc xen xml xml2 xmlrpc xpm xsl xsm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 cgi cgid 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de dk fi jp it tr nl fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm cris i386 m32 m68k microblaze microblazeel mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa vga intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Joerg Neikes 2012-10-18 09:11:27 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -march=core2 -O2 -pipe -U_FORTIFY_SOURCE -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.8 -march=core2 -O2 -pipe -U_FORTIFY_SOURCE -MT libmod_gnutls_la-gnutls_hooks.lo -MD -MP -MF .deps/libmod_gnutls_la-gnutls_hooks.Tpo -c gnutls_hooks.c  -fPIC -DPIC -o .libs/libmod_gnutls_la-gnutls_hooks.o
gnutls_hooks.c: In function 'mgs_select_virtual_server_cb':
gnutls_hooks.c:184:3: warning: 'gnutls_certificate_type_set_priority' is deprecated (declared at /usr/include/gnutls/compat.h:347) [-Wdeprecated-declarations]
gnutls_hooks.c:189:3: warning: 'gnutls_certificate_type_set_priority' is deprecated (declared at /usr/include/gnutls/compat.h:347) [-Wdeprecated-declarations]
gnutls_hooks.c: In function 'mgs_hook_post_config':
gnutls_hooks.c:429:3: warning: 'gnutls_certificate_server_set_retrieve_function' is deprecated (declared at /usr/include/gnutls/compat.h:163) [-Wdeprecated-declarations]
gnutls_hooks.c:337:6: warning: variable 'first_run' set but not used [-Wunused-but-set-variable]
gnutls_hooks.c: In function 'create_gnutls_handle':
gnutls_hooks.c:724:2: warning: 'gnutls_protocol_set_priority' is deprecated (declared at /usr/include/gnutls/compat.h:344) [-Wdeprecated-declarations]
gnutls_hooks.c: In function 'mgs_hook_pre_connection':
gnutls_hooks.c:753:7: error: 'conn_rec' has no member named 'remote_addr'
gnutls_hooks.c:753:49: error: 'conn_rec' has no member named 'remote_ip'
gnutls_hooks.c: At top level:
../include/mod_gnutls.h:151:16: warning: 'write_flush' declared 'static' but never defined [-Wunused-function]
make[1]: *** [libmod_gnutls_la-gnutls_hooks.lo] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/www-apache/mod_gnutls-0.5.10/work/mod_gnutls-0.5.10/src'
make: *** [all-recursive] Fehler 1
emake failed
 * ERROR: www-apache/mod_gnutls-0.5.10 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 1029:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=www-apache/mod_gnutls-0.5.10'`,
 * the complete build log and the output of `emerge -pqv '=www-apache/mod_gnutls-0.5.10'`.
 * The complete build log is located at '/var/tmp/portage/www-apache/mod_gnutls-0.5.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apache/mod_gnutls-0.5.10/temp/environment'.
 * Working directory: '/var/tmp/portage/www-apache/mod_gnutls-0.5.10/work/mod_gnutls-0.5.10'
 * S: '/var/tmp/portage/www-apache/mod_gnutls-0.5.10/work/mod_gnutls-0.5.10'

>>> Failed to emerge www-apache/mod_gnutls-0.5.10, Log file:

>>>  '/var/tmp/portage/www-apache/mod_gnutls-0.5.10/temp/build.log'

 * Messages for package www-apache/mod_gnutls-0.5.10:

 * ERROR: www-apache/mod_gnutls-0.5.10 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 1029:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
Comment 3 Joerg Neikes 2012-10-18 09:15:03 UTC
Problem is a api change of apache-api.
Patch folows.
Comment 4 Joerg Neikes 2012-10-18 09:18:12 UTC
mkdir  /etc/portage/patches/www-apache/mod_gnutls-0.5.10 -p
cp mod_gnutls-0.5.10-apache-api.patch /etc/portage/patches/www-apache/mod_gnutls-0.5.10
and change ebuild for user patches!

inherit eutils


src_prepare() {
    epatch_user
}
Comment 5 Joerg Neikes 2012-10-18 09:18:58 UTC
Created attachment 326816 [details, diff]
mod_gnutls-0.5.10-apache-api.patch
Comment 6 Joerg Neikes 2012-10-18 09:19:55 UTC
Created attachment 326818 [details]
mod_gnutls-0.5.10.ebuild

changed mod_gnutls-0.5.10.ebuild with user patch load
Comment 7 Joerg Neikes 2012-10-18 11:52:38 UTC
(In reply to comment #5)
> Created attachment 326816 [details, diff] [details, diff]
> mod_gnutls-0.5.10-apache-api.patch

Installed apache versions:

www-servers/apache-2.4.3
app-admin/apache-tools-2.4.3
dev-libs/apr-1.4.6
dev-libs/apr-util-1.4.1
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-18 14:21:39 UTC
Comment on attachment 326818 [details]
mod_gnutls-0.5.10.ebuild

--- mod_gnutls-0.5.10.ebuild    2012-10-12 09:02:10.000000000 +0200
+++ -   2012-10-18 16:21:28.846112865 +0200
@@ -23,8 +23,15 @@
 
 DOCFILES="NEWS NOTICE README README.ENV"
 
+inherit eutils
+
 need_apache2
 
+src_prepare() {
+       epatch_user
+}
+
+
 src_configure() {
        econf --with-apxs="${APXS}"
 }
Comment 9 Pacho Ramos gentoo-dev 2013-01-03 19:10:21 UTC
+*mod_gnutls-0.5.10-r1 (03 Jan 2013)
+
+  03 Jan 2013; Pacho Ramos <pacho@gentoo.org>
+  +files/mod_gnutls-0.5.10-httpd24.patch,
+  +files/mod_gnutls_apr_memcache_m4_dirty.patch, +mod_gnutls-0.5.10-r1.ebuild:
+  Apply Fedora patches to fix apache-2.4 compat and fix buggy m4
+