Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689544 - net-analyzer/barnyard2-1.13 USE='odbc -mysql -postgres' : spo_database.c:3547:3: error: result undeclared (first use in this function)
Summary: net-analyzer/barnyard2-1.13 USE='odbc -mysql -postgres' : spo_database.c:3547...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-09 16:54 UTC by Toralf Förster
Modified: 2019-07-10 05:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.11 KB, text/plain)
2019-07-09 16:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.84 KB, text/plain)
2019-07-09 16:54 UTC, Toralf Förster
Details
environment (environment,62.09 KB, text/plain)
2019-07-09 16:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.65 KB, application/x-bzip)
2019-07-09 16:54 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.81 KB, application/x-bzip)
2019-07-09 16:54 UTC, Toralf Förster
Details
net-analyzer:barnyard2-1.13:20190708-233620.log (net-analyzer:barnyard2-1.13:20190708-233620.log,22.00 KB, text/plain)
2019-07-09 16:54 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.37 KB, application/x-bzip)
2019-07-09 16:54 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-07-09 16:54:22 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil  -DENABLE_ODBC  -O2 -pipe -march=native -Wall -c -o spo_database.o spo_database.c
spo_database.c: In function ‘Insert’:
spo_database.c:3547:3: error: ‘result’ undeclared (first use in this function)
 3547 |   result = 0;
      |   ^~~~~~
spo_database.c:3547:3: note: each undeclared identifier is reported only once for each function it appears in

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-test-20190706-171233

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)





emerge -qpvO net-analyzer/barnyard2
[ebuild  N    ] net-analyzer/barnyard2-1.13  USE="odbc -debug -gre -mpls -mysql -postgres -sguil"
Comment 1 Toralf Förster gentoo-dev 2019-07-09 16:54:25 UTC
Created attachment 582270 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-07-09 16:54:28 UTC
Created attachment 582272 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-07-09 16:54:30 UTC
Created attachment 582274 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-07-09 16:54:33 UTC
Created attachment 582276 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-07-09 16:54:35 UTC
Created attachment 582278 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-07-09 16:54:38 UTC
Created attachment 582280 [details]
net-analyzer:barnyard2-1.13:20190708-233620.log
Comment 7 Toralf Förster gentoo-dev 2019-07-09 16:54:41 UTC
Created attachment 582282 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2019-07-10 04:47:51 UTC
src/output-plugins/spo_database.c:3446:
#if defined(ENABLE_MYSQL) || defined(ENABLE_POSTGRESQL)
    int result = 0;
...
src/output-plugins/spo_database.c:3537:
#ifdef ENABLE_ODBC
...
        result = 0;

And a similar problem in src/output-plugins/spo_database_cache.c
Comment 9 Larry the Git Cow gentoo-dev 2019-07-10 05:00:42 UTC
The bug has been closed via the following commit(s):

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

commit 031718f3e315223e30ef654b56b655752d5b7ca4
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-07-10 04:59:59 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-07-10 05:00:39 +0000

    net-analyzer/barnyard2: Fix USE="-* odbc"
    
    Package-Manager: Portage-2.3.68, Repoman-2.3.16
    Fixes: https://bugs.gentoo.org/689544
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/barnyard2/barnyard2-1.13.ebuild       |  1 +
 .../barnyard2/files/barnyard2-1.13-odbc.patch      | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)