Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829245 - net-libs/libbtbb-2020.12.1 - /.../pcap.c: error: expected expression before ) token
Summary: net-libs/libbtbb-2020.12.1 - /.../pcap.c: error: expected expression before )...
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: 2021-12-15 09:43 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.88 KB, text/plain)
2021-12-15 09:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,162.94 KB, text/plain)
2021-12-15 09:43 UTC, Toralf Förster
Details
environment (environment,93.35 KB, text/plain)
2021-12-15 09:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.81 KB, application/x-bzip)
2021-12-15 09:43 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.65 KB, application/x-bzip)
2021-12-15 09:43 UTC, Toralf Förster
Details
net-libs:libbtbb-2020.12.1:20211215-082746.log (net-libs:libbtbb-2020.12.1:20211215-082746.log,10.43 KB, text/plain)
2021-12-15 09:43 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.05 KB, application/x-bzip)
2021-12-15 09:43 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 2021-12-15 09:43:12 UTC
too long lines were shrinked:

  205 |                 btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (u_char *)&pcap_pkt.bredr_bb_header);
      |                                                                      ^~~~~~
      |                                                                      putchar
/var/tmp/portage/net-libs/libbtbb-2020.12.1/work/libbtbb-2020-12-R1/lib/src/pcap.c:205:70: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/net-libs/libbtbb-2020.12.1/work/libbtbb-2020-12-R1/lib/src/pcap.c:205:78: error: expected expression before ')' token
  205 |                 btbb_pcap_dump(h->pcap_file, &pcap_pkt.pcap_header, (u_char *)&pcap_pkt.bredr_bb_header);
      |                                                                              ^
/var/tmp/portage/net-libs/libbtbb-2020.12.1/work/libbtbb-2020-12-R1/lib/src/pcap.c: In function 'lell_pcap_append_packet':
/var/tmp/portage/net-libs/libbtbb-2020.12.1/work/libbtbb-2020-12-R1/lib/src/pcap.c:334:70: error: 'u_char' undeclared (first use in this function); did you mean 'putchar'?

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211213-184654

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

php cli:

  HEAD of ::gentoo
commit 6dd8b735ba14f8d83e08e027651bf0e7caa8bc5f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 15 08:06:57 2021 +0000

    2021-12-15 08:06:56 UTC

emerge -qpvO net-libs/libbtbb
[ebuild  N    ] net-libs/libbtbb-2020.12.1  USE="-static-libs -wireshark-plugins"
Comment 1 Toralf Förster gentoo-dev 2021-12-15 09:43:13 UTC
Created attachment 759100 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-15 09:43:15 UTC
Created attachment 759101 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-15 09:43:16 UTC
Created attachment 759102 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-15 09:43:17 UTC
Created attachment 759103 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-15 09:43:18 UTC
Created attachment 759104 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-15 09:43:19 UTC
Created attachment 759105 [details]
net-libs:libbtbb-2020.12.1:20211215-082746.log
Comment 7 Toralf Förster gentoo-dev 2021-12-15 09:43:20 UTC
Created attachment 759106 [details]
temp.tar.bz2
Comment 8 Petr Vaněk gentoo-dev 2022-08-23 11:55:34 UTC
This basically duplicates https://bugs.gentoo.org/715758.
Comment 9 Toralf Förster gentoo-dev 2022-08-23 13:41:08 UTC

*** This bug has been marked as a duplicate of bug 715758 ***
Comment 10 Larry the Git Cow gentoo-dev 2022-09-01 02:06:28 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(+)