Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715758 - net-libs/libbtbb-2018.12.1 : /.../pcap.c: error: unknown type name u_char
Summary: net-libs/libbtbb-2018.12.1 : /.../pcap.c: error: unknown type name u_char
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-04-01 13:12 UTC by Toralf Förster
Modified: 2022-09-01 02:06 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.58 KB, text/plain)
2020-04-01 13:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,211.41 KB, text/plain)
2020-04-01 13:12 UTC, Toralf Förster
Details
environment (environment,148.95 KB, text/plain)
2020-04-01 13:12 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.07 KB, application/x-bzip)
2020-04-01 13:13 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.69 KB, application/x-bzip)
2020-04-01 13:13 UTC, Toralf Förster
Details
net-libs:libbtbb-2018.12.1:20200401-125803.log (net-libs:libbtbb-2018.12.1:20200401-125803.log,11.97 KB, text/plain)
2020-04-01 13:13 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.85 KB, application/x-bzip)
2020-04-01 13:13 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 2020-04-01 13:12:48 UTC
[ 62%] Building C object lib/src/CMakeFiles/btbb.dir/pcap.c.o
cd /var/tmp/portage/net-libs/libbtbb-2018.12.1/work/libbtbb-2018-12-R1_build/lib/src && /usr/bin/x86_64-gentoo-linux-musl-gcc -DRELEASE=\2018-06-R1\ -DVERSION=\1.0\ -Dbtbb_EXPORTS   -DNDEBUG -O2 -pipe -march=native -std=gnu90 -fPIC   -Wall -o CMakeFiles/btbb.dir/pcap.c.o -c /var/tmp/portage/net-libs/libbtbb-2018.12.1/work/libbtbb-2018-12-R1/lib/src/pcap.c
/var/tmp/portage/net-libs/libbtbb-2018.12.1/work/libbtbb-2018-12-R1/lib/src/pcap.c:113:61: error: unknown type name u_char; did you mean char?
  113 | void btbb_pcap_dump(FILE *file, pcaprec_hdr_t *pcap_header, u_char *data) {
      |                                                             ^~~~~~
      |                                                             char

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200328-141627

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr  1 11:42:14 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO net-libs/libbtbb
[ebuild  N    ] net-libs/libbtbb-2018.12.1  USE="-extras -static-libs -wireshark-plugins" PYTHON_SINGLE_TARGET="python2_7"
Comment 1 Toralf Förster gentoo-dev 2020-04-01 13:12:52 UTC
Created attachment 628456 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-01 13:12:54 UTC
Created attachment 628458 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-01 13:12:57 UTC
Created attachment 628460 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-01 13:13:00 UTC
Created attachment 628462 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-01 13:13:03 UTC
Created attachment 628464 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-01 13:13:05 UTC
Created attachment 628466 [details]
net-libs:libbtbb-2018.12.1:20200401-125803.log
Comment 7 Toralf Förster gentoo-dev 2020-04-01 13:13:08 UTC
Created attachment 628468 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2022-08-23 13:41:08 UTC
*** Bug 829245 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2022-09-01 02:06:27 UTC
The bug has been closed via the following commit(s):

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

commit e0f44742d199c1806c2d1d6d0497f75fb65b2b9c
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-08-23 20:42:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-01 02:05:39 +0000

    net-libs/libbtbb: Fix unknown type u_char on musl
    
    Build fails with error: unknown type name u_char
    
    Closes: https://bugs.gentoo.org/829245
    Closes: https://bugs.gentoo.org/715758
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26549
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libbtbb/files/libbtbb-2020.12.1-musl-u-char.patch | 14 ++++++++++++++
 net-libs/libbtbb/libbtbb-2020.12.1-r1.ebuild               |  4 ++++
 2 files changed, 18 insertions(+)