Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557592 - net-libs/gnutls-3.3.17 fails to build: #error option template version mismatches autoopts/options.h header
Summary: net-libs/gnutls-3.3.17 fails to build: #error option template version mismatc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
: 557898 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-14 16:22 UTC by Marcin Kowalski
Modified: 2015-08-19 13:34 UTC (History)
2 users (show)

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


Attachments
build log. (build.log,415.25 KB, text/plain)
2015-08-16 23:48 UTC, Alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kowalski 2015-08-14 16:22:11 UTC
During build of gnutls-3.3.17 i see the following problem : 


============================================================
In file included from /mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/psktool-args.c:43:0:
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/psktool-args.h:61:3: error: #error option template version mismatches autoopts/options.h header
 # error option template version mismatches autoopts/options.h header
   ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/psktool-args.h:62:3: error: unknown type name 'Choke'
   Choke Me.
   ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/psktool-args.h:62:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   Choke Me.
           ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/psktool-args.h:76:3: warning: data definition has no type or storage class
 } teOptIndex;
   ^
In file included from /mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/ocsptool-args.c:43:0:
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/ocsptool-args.h:61:3: error: #error option template version mismatches autoopts/options.h header
 # error option template version mismatches autoopts/options.h header
   ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/ocsptool-args.h:62:3: error: unknown type name 'Choke'
   Choke Me.
   ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/ocsptool-args.h:62:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   Choke Me.
           ^
/mnt/storage/tmp/net-libs-gnutls-3.3.17/work/gnutls-3.3.17/src/ocsptool-args.h:89:3: warning: data definition has no type or storage class
 } teOptIndex;
   ^
============================================================

The only sensible reference to the issue i found so far is https://lists.gnu.org/archive/html/gnutls-devel/2012-03/msg00031.html


Reproducible: Always

Steps to Reproduce:
1. use ~amd64
2. attempt building gnutls-3.3.17
3. observe the error



~amd64 system, will provide info as needed
Comment 1 Rafał Mużyło 2015-08-16 11:45:43 UTC
> will provide info as needed

Do so.
Comment 2 Rafał Mużyło 2015-08-16 11:46:43 UTC
*** Bug 557898 has been marked as a duplicate of this bug. ***
Comment 3 Rafał Mużyło 2015-08-16 11:49:04 UTC
bug 557898 was better documented, but the actual problem still looks the same.
Comment 4 Alexandre 2015-08-16 23:48:56 UTC
Created attachment 409208 [details]
build log.

MAKEOPTS="-j1 V=1"
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2015-08-19 08:52:32 UTC
Can you please try to rename ebuild to 3.3.17.1 and see if this version is better?
Comment 6 Alexandre 2015-08-19 12:29:02 UTC
 * ERROR: net-libs/gnutls-3.3.17.1::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/net-libs/gnutls-3.3.17.1/work/gnutls-3.3.17' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line 765:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 968:  Called __dyn_prepare
 *   phase-functions.sh, line 369:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=net-libs/gnutls-3.3.17.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/gnutls-3.3.17.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/gnutls-3.3.17.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/gnutls-3.3.17.1/temp/environment'.
 * Working directory: '/usr/lib64/python2.7/site-packages'
 * S: '/var/tmp/portage/net-libs/gnutls-3.3.17.1/work/gnutls-3.3.17'

Thanks!
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2015-08-19 12:39:42 UTC
Oh! sorry!

I do not know why this is in ebuild, please remove the following line.

S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
Comment 8 Alexandre 2015-08-19 13:03:18 UTC
net-libs/gnutls-3.3.17.1 compiled.   :-D

Thanks!
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2015-08-19 13:34:08 UTC
Thanks!