Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919503 - net-analyzer/dsniff-2.4_beta1_p30 - ./urlsnarf.c: error: passing argument 3 of pcap_next_ex from incompatible pointer type [-Wincompatible-pointer-typ
Summary: net-analyzer/dsniff-2.4_beta1_p30 - ./urlsnarf.c: error: passing argument 3 o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-09 10:38 UTC by Toralf Förster
Modified: 2024-10-31 20:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.78 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,113.12 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
environment (environment,77.49 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,34.89 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,6.92 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
net-analyzer:dsniff-2.4_beta1_p30:20231209-054242.log (net-analyzer:dsniff-2.4_beta1_p30:20231209-054242.log,45.45 KB, text/plain)
2023-12-09 10:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,117.82 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.52 KB, application/x-xz)
2023-12-09 10:38 UTC, Toralf Förster
Details
fixes gcc warnings and adds const to a variable (port-to-c99.patch,717 bytes, patch)
2023-12-13 01:55 UTC, Christopher Fore
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 2023-12-09 10:38:48 UTC
                 from ./tcpnice.c:21:
/usr/include/pcap/pcap.h:395:18: note: declared here
  395 | PCAP_API char   *pcap_lookupdev(char *);
      |                  ^~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fno-diagnostics-color -D_BSD_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/share/dsniff/\" -I/usr/include/tirpc  -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include  -I./missing -c ./webmitm.c
./urlsnarf.c: In function main:
./urlsnarf.c:346:42: error: passing argument 3 of pcap_next_ex from incompatible pointer type [-Wincompatible-pointer-types]
  346 |         while ((rc = pcap_next_ex(p, &h, &d)) == 1) {
      |                                          ^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231123-170505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1
  [2]   rust-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 4dbaa54e73eb5af54d6cf2b897b41bc3a7ba3724
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 9 03:02:02 2023 +0000

    2023-12-09 03:02:02 UTC

emerge -qpvO net-analyzer/dsniff
[ebuild  N    ] net-analyzer/dsniff-2.4_beta1_p30  USE="X"
Comment 1 Toralf Förster gentoo-dev 2023-12-09 10:38:49 UTC
Created attachment 878497 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-09 10:38:51 UTC
Created attachment 878498 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-09 10:38:52 UTC
Created attachment 878499 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-09 10:38:53 UTC
Created attachment 878500 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-09 10:38:54 UTC
Created attachment 878501 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-09 10:38:55 UTC
Created attachment 878502 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-09 10:38:56 UTC
Created attachment 878503 [details]
net-analyzer:dsniff-2.4_beta1_p30:20231209-054242.log
Comment 8 Toralf Förster gentoo-dev 2023-12-09 10:38:57 UTC
Created attachment 878504 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-09 10:38:58 UTC
Created attachment 878505 [details]
temp.tar.xz
Comment 10 Christopher Fore 2023-12-13 01:55:18 UTC
Created attachment 878998 [details, diff]
fixes gcc warnings and adds const to a variable
Comment 11 Larry the Git Cow gentoo-dev 2023-12-15 03:25:33 UTC
The bug has been closed via the following commit(s):

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

commit f69e68db135958c271d24c5bb9277671e2910605
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2023-12-13 02:37:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 03:15:34 +0000

    net-analyzer/dsniff: add 2.4_beta1_p31, fix GCC 14 compile
    
    Patch attached fixes compilation on GCC 14 and some warnings about print
    formatting.
    
    Closes: https://bugs.gentoo.org/919503
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/34258
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/dsniff/Manifest                       |  1 +
 net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild    | 74 ++++++++++++++++++++++
 .../files/dsniff-2.4_beta1_p31-c99-fixes.patch     | 36 +++++++++++
 3 files changed, 111 insertions(+)