Skip Menu |

This queue is for tickets about the Net-Pcap CPAN distribution.

Report information
The Basics
Id: 127685
Status: open
Priority: 0/
Queue: Net-Pcap

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.18
Fixed in: (no value)



Subject: Compilation error on fedora 28
The module cannot be built on fedora 28: ... gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -g -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib64/perl5/CORE" -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c ... stubs.inc:357:8: error: redefinition of ‘struct pcap_rmtauth’ struct pcap_rmtauth { ^~~~~~~~~~~~ In file included from /usr/include/pcap.h:43, from Pcap.xs:32: /usr/include/pcap/pcap.h:788:8: note: originally defined here struct pcap_rmtauth ^~~~~~~~~~~~ In file included from Pcap.xs:43: stubs.inc:363:10: error: conflicting types for ‘pcap_open’ pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err); ^~~~~~~~~ In file included from /usr/include/pcap.h:43, from Pcap.xs:32: /usr/include/pcap/pcap.h:835:18: note: previous declaration of ‘pcap_open’ was here PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags, ^~~~~~~~~ In file included from Pcap.xs:43: stubs.inc:364:10: error: conflicting types for ‘pcap_open’ pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) { ^~~~~~~~~ In file included from /usr/include/pcap.h:43, from Pcap.xs:32: /usr/include/pcap/pcap.h:835:18: note: previous declaration of ‘pcap_open’ was here PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags, ^~~~~~~~~ ...
Dne So 17.lis.2018 09:42:11, SREZIC napsal(a): Show quoted text
> The module cannot be built on fedora 28: > > ... > gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format- > security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS > -fexceptions -fstack-protector-strong -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection > -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -g -DVERSION=\"0.18\" > -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib64/perl5/CORE" -DHAVE_BLANK > -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP > -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL > -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION > -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE > -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK > -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION > -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD > -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK > -DHAVE_PCAP_SET_DATALINK Pcap.c > ... > stubs.inc:357:8: error: redefinition of ‘struct pcap_rmtauth’ > struct pcap_rmtauth { > ^~~~~~~~~~~~ > In file included from /usr/include/pcap.h:43, > from Pcap.xs:32: > /usr/include/pcap/pcap.h:788:8: note: originally defined here > struct pcap_rmtauth > ^~~~~~~~~~~~ > In file included from Pcap.xs:43: > stubs.inc:363:10: error: conflicting types for ‘pcap_open’ > pcap_t * pcap_open(const char *source, int snaplen, int flags, int > read_timeout, struct pcap_rmtauth *auth, char *err); > ^~~~~~~~~ > In file included from /usr/include/pcap.h:43, > from Pcap.xs:32: > /usr/include/pcap/pcap.h:835:18: note: previous declaration of > ‘pcap_open’ was here > PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int > flags, > ^~~~~~~~~ > In file included from Pcap.xs:43: > stubs.inc:364:10: error: conflicting types for ‘pcap_open’ > pcap_t * pcap_open(const char *source, int snaplen, int flags, int > read_timeout, struct pcap_rmtauth *auth, char *err) { > ^~~~~~~~~ > In file included from /usr/include/pcap.h:43, > from Pcap.xs:32: > /usr/include/pcap/pcap.h:835:18: note: previous declaration of > ‘pcap_open’ was here > PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int > flags, > ^~~~~~~~~ > ...
Fedora uses this <https://bugzilla.redhat.com/show_bug.cgi?id=1612860#c3> patch for Net-Pcap to build with libpcap-1.9.0.
On 2018-11-19 02:44:56, ppisar wrote: Show quoted text
> Dne So 17.lis.2018 09:42:11, SREZIC napsal(a):
> > The module cannot be built on fedora 28: > > > > ... > > gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall > > -Werror=format- > > security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS > > -fexceptions -fstack-protector-strong -grecord-gcc-switches > > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic > > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection > > -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -g -DVERSION=\"0.18\" > > -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib64/perl5/CORE" -DHAVE_BLANK > > -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP > > -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL > > -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION > > -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE > > -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS > > -DHAVE_PCAP_GETNONBLOCK > > -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION > > -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD > > -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK > > -DHAVE_PCAP_SET_DATALINK Pcap.c > > ... > > stubs.inc:357:8: error: redefinition of ‘struct pcap_rmtauth’ > > struct pcap_rmtauth { > > ^~~~~~~~~~~~ > > In file included from /usr/include/pcap.h:43, > > from Pcap.xs:32: > > /usr/include/pcap/pcap.h:788:8: note: originally defined here > > struct pcap_rmtauth > > ^~~~~~~~~~~~ > > In file included from Pcap.xs:43: > > stubs.inc:363:10: error: conflicting types for ‘pcap_open’ > > pcap_t * pcap_open(const char *source, int snaplen, int flags, int > > read_timeout, struct pcap_rmtauth *auth, char *err); > > ^~~~~~~~~ > > In file included from /usr/include/pcap.h:43, > > from Pcap.xs:32: > > /usr/include/pcap/pcap.h:835:18: note: previous declaration of > > ‘pcap_open’ was here > > PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int > > flags, > > ^~~~~~~~~ > > In file included from Pcap.xs:43: > > stubs.inc:364:10: error: conflicting types for ‘pcap_open’ > > pcap_t * pcap_open(const char *source, int snaplen, int flags, int > > read_timeout, struct pcap_rmtauth *auth, char *err) { > > ^~~~~~~~~ > > In file included from /usr/include/pcap.h:43, > > from Pcap.xs:32: > > /usr/include/pcap/pcap.h:835:18: note: previous declaration of > > ‘pcap_open’ was here > > PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int > > flags, > > ^~~~~~~~~ > > ...
> > Fedora uses this > <https://bugzilla.redhat.com/show_bug.cgi?id=1612860#c3> patch for > Net-Pcap to build with libpcap-1.9.0.
Thanks. This is now in my distroprefs collection: https://github.com/eserte/srezic-cpan-distroprefs/blob/master/Net-Pcap.yml#L18