Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932312 - net-proxy/squidguard-1.6.0-r1 - [llvm] ./sg.h: error: unknown type name DB_INFO
Summary: net-proxy/squidguard-1.6.0-r1 - [llvm] ./sg.h: error: unknown type name DB_INFO
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-05-20 17:01 UTC by Toralf Förster
Modified: 2025-02-10 09:30 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.84 KB, text/plain)
2024-05-20 17:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,93.03 KB, text/plain)
2024-05-20 17:01 UTC, Toralf Förster
Details
environment (environment,89.61 KB, text/plain)
2024-05-20 17:01 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-05-20 17:01 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.51 KB, application/x-xz)
2024-05-20 17:01 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.19 KB, application/x-xz)
2024-05-20 17:01 UTC, Toralf Förster
Details
net-proxy:squidguard-1.6.0-r1:20240520-165833.log (net-proxy:squidguard-1.6.0-r1:20240520-165833.log,9.41 KB, text/plain)
2024-05-20 17:01 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,197.91 KB, text/plain)
2024-05-20 17:01 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,37.27 KB, application/x-xz)
2024-05-20 17:01 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.16 KB, application/x-xz)
2024-05-20 17:01 UTC, Toralf Förster
Details
squidguard-1.6.0-stdlib.patch (squidguard-1.6.0-stdlib.patch,1.24 KB, patch)
2025-01-14 18:44 UTC, joergd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-05-20 17:01:22 UTC
too long lines were shrinked:

clang -I.. -I. -I. -I/usr/include/db5.3 -I/usr/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include -c main.c
clang -I.. -I. -I. -I/usr/include/db5.3 -I/usr/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include -c sgLog.c
clang -I.. -I. -I. -I/usr/include/db5.3 -I/usr/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include -c sgDb.c
clang -I.. -I. -I. -I/usr/include/db5.3 -I/usr/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include -c HTParse.c
clang -I.. -I. -I. -I/usr/include/db5.3 -I/usr/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DLDAP_DEPRECATED -I/usr/include/db5.3 -I/usr/include -c sgDiv.c
In file included from sgDb.c:19:
./sg.h:209:3: error: unknown type name 'DB_INFO'
  209 |   DB_INFO dbinfo;
      |   ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20240518-162212

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.6+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.6+libcxx
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1
  [2]   php8.3 *
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit 841f3576c49e74ffa60685210ee1f19bf7a9670b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon May 20 16:33:55 2024 +0000

    2024-05-20 16:33:53 UTC

emerge -qpvO net-proxy/squidguard
[ebuild  N    ] net-proxy/squidguard-1.6.0-r1  USE="-ldap"
Comment 1 Toralf Förster gentoo-dev 2024-05-20 17:01:23 UTC
Created attachment 893582 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-20 17:01:25 UTC
Created attachment 893583 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-05-20 17:01:26 UTC
Created attachment 893584 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-05-20 17:01:27 UTC
Created attachment 893585 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-05-20 17:01:28 UTC
Created attachment 893586 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-20 17:01:29 UTC
Created attachment 893587 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-20 17:01:29 UTC
Created attachment 893588 [details]
net-proxy:squidguard-1.6.0-r1:20240520-165833.log
Comment 8 Toralf Förster gentoo-dev 2024-05-20 17:01:31 UTC
Created attachment 893589 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-05-20 17:01:32 UTC
Created attachment 893590 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2024-05-20 17:01:33 UTC
Created attachment 893591 [details]
var.tmp.clang.tar.xz
Comment 11 joergd 2025-01-14 18:44:48 UTC
Created attachment 916546 [details, diff]
squidguard-1.6.0-stdlib.patch

Please try replacing files/squidguard-1.6.0-stdlib.patch with the attached squidguard-1.6.0-stdlib.patch
Comment 12 NHO 2025-01-16 14:33:00 UTC
That was not enough, nothing defined HAVE_STDLIB_H
configure.ac also needed AC_INCLUDES_DEFAULT
Comment 13 Larry the Git Cow gentoo-dev 2025-02-10 09:25:59 UTC
The bug has been referenced in the following commit(s):

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

commit d62dd665656426d5e0e21d55da493db14559c61f
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-16 14:36:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 09:24:00 +0000

    net-proxy/squidguard: update EAPI 7 -> 8, fix implicit defines in configure
    
    Nothing defined HAVE_STDLIB_H, so configure test failed, so wrong version of
    BerkleyDB was chosen, so compilation failed.
    Also included extended patch of stdlib.h in configure from the bug tracker,
    with all attribution.
    
    Closes: https://bugs.gentoo.org/898084
    Bug: https://bugs.gentoo.org/932312
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40160
    Signed-off-by: Sam James <sam@gentoo.org>

 .../squidguard/files/squidguard-1.6.0-C23.patch    |  37 ++++++++
 .../squidguard/files/squidguard-1.6.0-stdlib.patch |  40 +++++++-
 net-proxy/squidguard/squidguard-1.6.0-r2.ebuild    | 104 +++++++++++++++++++++
 3 files changed, 177 insertions(+), 4 deletions(-)