Skip Menu |

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

Report information
The Basics
Id: 111167
Status: open
Priority: 0/
Queue: Net-ARP

People
Owner: Nobody in particular
Requestors: jpalao [...] personasytecnicas.com
Cc:
AdminCc:

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



Subject: OS X Compilation patch Net-ARP 1.0.9
Date: Wed, 13 Jan 2016 20:44:52 +0100
To: bug-Net-ARP [...] rt.cpan.org
From: Jose Palao <jpalao [...] personasytecnicas.com>
Hi, I needed to do this to compile the bsd portion of Makefile.PL on OS X Thanks for the module === dist: Net-ARP 1.0.9 perl: perl5 (revision 5 version 22 subversion 1) os: Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64 x86_64 patch: diff -Naur Net-ARP/Makefile.PL Net-ARP-new/Makefile.PL --- Net-ARP/Makefile.PL 2007-01-31 16:31:51.000000000 +0100 +++ Net-ARP-new/Makefile.PL 2016-01-13 20:27:07.000000000 +0100 @@ -32,7 +32,7 @@ $flags = "-DLINUX"; $objects = "ARP.o send_packet_linux.o get_mac_linux.o arp_lookup_linux.o"; } -elsif($Config{'osname'} =~ /bsd/i) +elsif($Config{'osname'} =~ /bsd|darwin/i) { $flags = "-DBSD"; $objects = "ARP.o send_packet_bsd.o get_mac_bsd.o arp_lookup_bsd.o";
This is what I see on OSX when compiling the latest release on the most recent development perl: : [ether@bourbon 1452715605.77787/Net-ARP]$; perl Makefile.PL && make test Module Net::Pcap is required for make test! Generating a Unix-style Makefile Writing Makefile for Net::ARP Writing MYMETA.yml and MYMETA.json Running Mkbootstrap for ARP () chmod 644 "ARP.bs" "/Users/ether/perl5/perlbrew/perls/23.6/bin/perl5.23.6" -MExtUtils::Command::MM -e 'cp_nonempty' -- ARP.bs blib/arch/auto/Net/ARP/ARP.bs 644 cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -O3 -DVERSION=\"1.0.8\" -DXS_VERSION=\"1.0.8\" "-I/Users/ether/perl5/perlbrew/perls/23.6/lib/5.23.6/darwin-2level/CORE" -DBSD ARP.c In file included from ARP.xs:24: ./ppport.h:221:11: warning: 'PERL_UNUSED_DECL' macro redefined # define PERL_UNUSED_DECL ^ /Users/ether/perl5/perlbrew/perls/23.6/lib/5.23.6/darwin-2level/CORE/perl.h:313:13: note: previous definition is here # define PERL_UNUSED_DECL __attribute__unused__ ^ ARP.xs:30:10: fatal error: 'netinet/ether.h' file not found #include <netinet/ether.h> ^ 1 warning and 1 error generated. make: *** [ARP.o] Error 1
Subject: Re: [rt.cpan.org #111167] OS X Compilation patch Net-ARP 1.0.9
Date: Wed, 13 Jan 2016 22:00:08 +0100
To: bug-Net-ARP [...] rt.cpan.org
From: Jose Palao <jpalao [...] personasytecnicas.com>
Thank you, Yes, instead one should #include <netinet/if_ether.h> Not quite sure about how to patch that $ grep -nR netinet Net-ARP Net-ARP/arp_lookup_bsd.c:27:#include <netinet/in.h> Net-ARP/arp_lookup_bsd.c:28:#include <netinet/if_ether.h> El 13/01/16 21:07, Karen Etheridge via RT escribió: Show quoted text
> <URL:https://rt.cpan.org/Ticket/Display.html?id=111167 > > > This is what I see on OSX when compiling the latest release on the most recent development perl: > > : [ether@bourbon 1452715605.77787/Net-ARP]$; perl Makefile.PL&& make test > Module Net::Pcap is required for make test! > Generating a Unix-style Makefile > Writing Makefile for Net::ARP > Writing MYMETA.yml and MYMETA.json > Running Mkbootstrap for ARP () > chmod 644 "ARP.bs" > "/Users/ether/perl5/perlbrew/perls/23.6/bin/perl5.23.6" -MExtUtils::Command::MM -e 'cp_nonempty' -- ARP.bs blib/arch/auto/Net/ARP/ARP.bs 644 > cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -O3 -DVERSION=\"1.0.8\" -DXS_VERSION=\"1.0.8\" "-I/Users/ether/perl5/perlbrew/perls/23.6/lib/5.23.6/darwin-2level/CORE" -DBSD ARP.c > In file included from ARP.xs:24: > ./ppport.h:221:11: warning: 'PERL_UNUSED_DECL' macro redefined > # define PERL_UNUSED_DECL > ^ > /Users/ether/perl5/perlbrew/perls/23.6/lib/5.23.6/darwin-2level/CORE/perl.h:313:13: note: previous definition is here > # define PERL_UNUSED_DECL __attribute__unused__ > ^ > ARP.xs:30:10: fatal error: 'netinet/ether.h' file not found > #include<netinet/ether.h> > ^ > 1 warning and 1 error generated. > make: *** [ARP.o] Error 1 > > >
Subject: Re: [rt.cpan.org #111167] OS X Compilation patch Net-ARP 1.0.9
Date: Wed, 13 Jan 2016 22:13:30 +0100
To: bug-Net-ARP [...] rt.cpan.org
From: Jose Palao <jpalao [...] personasytecnicas.com>
In addition, to compile I had to undefine __THROW in arp.h Macports log follows version:1 :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 503 :debug:main Executing org.macports.main (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.archivefetch (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.fetch (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.checksum (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.extract (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.patch (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as not running as root. :debug:configure configure phase started at Wed Jan 13 19:13:07 CET 2016 :notice:configure ---> Configuring p5.22-net-arp :debug:configure Using compiler 'Xcode Clang' :debug:configure Executing org.macports.configure (p5.22-net-arp) :debug:configure Environment: CC='/usr/bin/clang' CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' CFLAGS='-pipe -Os -arch x86_64 -arch i386' CPATH='/opt/local/include' CPPFLAGS='-I/opt/local/include' CXX='/usr/bin/clang++' CXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' F90FLAGS='-pipe -Os' FCFLAGS='-pipe -Os' FFLAGS='-pipe -Os' INSTALL='/usr/bin/install -c' LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' OBJC='/usr/bin/clang' OBJCFLAGS='-pipe -Os -arch x86_64 -arch i386' OBJCXX='/usr/bin/clang++' OBJCXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' PERL_AUTOINSTALL='--skipdeps' __CFPREFERENCES_AVOID_DAEMON='1' :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"' :debug:configure Executing command line: cd "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" :info:configure Checking if your kit is complete... :info:configure Looks good :info:configure Generating a Unix-style Makefile :info:configure Writing Makefile for Net::ARP :info:configure Writing MYMETA.yml and MYMETA.json :debug:configure Executing proc-post-org.macports.configure-configure-0 :info:configure Fixing flags in Makefile :info:configure ---> Patching Makefile: /^CCFLAGS *=/s/$/ -arch x86_64 -arch i386/ :debug:configure Executing reinplace: /usr/bin/sed {/^CCFLAGS *=/s/$/ -arch x86_64 -arch i386/} < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile >@ file11 2>@stderr :debug:configure euid/egid changed to: 0/0 :debug:configure chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile to macports :debug:configure euid/egid changed to: 503/501 :debug:configure euid/egid changed to: 0/0 :debug:configure setting attributes on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure euid/egid changed to: 503/501 :info:configure ---> Patching Makefile: /^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch i386/ :debug:configure Executing reinplace: /usr/bin/sed {/^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch i386/} < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile >@ file11 2>@stderr :debug:configure euid/egid changed to: 0/0 :debug:configure chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile to macports :debug:configure euid/egid changed to: 503/501 :debug:configure euid/egid changed to: 0/0 :debug:configure setting attributes on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure euid/egid changed to: 503/501 :debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Wed Jan 13 19:13:08 CET 2016 :notice:build ---> Building p5.22-net-arp :debug:build Executing org.macports.build (p5.22-net-arp) :debug:build Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" && /usr/bin/make -j4 -w all' :debug:build Executing command line: cd "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" && /usr/bin/make -j4 -w all :info:build make: Entering directory `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build "/opt/local/bin/perl5.22" "/opt/local/lib/perl5/5.22/ExtUtils/xsubpp" -typemap '/opt/local/lib/perl5/5.22/ExtUtils/typemap' ARP.xs > ARP.xsc :info:build Running Mkbootstrap for ARP () :info:build /usr/bin/clang -c -pipe -Os -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -arch i386 -O3 -DVERSION=\"1.0.8\" -DXS_VERSION=\"1.0.8\" "-I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE" -DBSD get_mac_bsd.c -o get_mac_bsd.o :info:build In file included from get_mac_bsd.c:33: :info:build ./arp.h:62:60: error: expected function body after function declarator :info:build extern struct ether_addr *ether_aton (__const char *__asc) __THROW; :info:build ^ :info:build 1 error generated. :info:build make: *** [get_mac_bsd.o] Error 1 :info:build make: *** Waiting for unfinished jobs.... :info:build chmod 644 "ARP.bs" :info:build cp ARP.pm blib/lib/Net/ARP.pm :info:build Please specify prototyping behavior for ARP.xs (see perlxs manual) :info:build mv ARP.xsc ARP.c :info:build make: Leaving directory `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build Command failed: cd "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build org.macports.build for port p5.22-net-arp returned: command execution failed :debug:build Error code: CHILDSTATUS 45784 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for p5.22-net-arp: org.macports.activate org.macports.build org.macports.destroot org.macports.install :error:build Failed to install p5.22-net-arp :debug:build Registry error: p5.22-net-arp not registered as installed & active. invoked from within "registry_active $subport" invoked from within "$workername eval registry_active \$subport" :notice:build Please see the log file for port p5.22-net-arp for details: /opt/local/var/macports/logs/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/main.log
Subject: Re: [rt.cpan.org #111167] OS X Compilation patch Net-ARP 1.0.9
Date: Sat, 16 Jan 2016 14:28:31 +0100
To: bug-Net-ARP [...] rt.cpan.org
From: Bastian Ballmann <balle [...] codekid.net>
Hi Jose, thanks for your bug report and patch. I applied it to the current source code and fixed arp.h The new uploaded version 1.0.9 should be available on CPAN in a few minutes. Have a nice weekend! Basti Am Wed, 13 Jan 2016 16:13:46 -0500 schrieb "Jose Palao via RT" <bug-Net-ARP@rt.cpan.org>: Show quoted text
> Queue: Net-ARP > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=111167 > > > In addition, to compile I had to undefine __THROW in arp.h > > Macports log follows > > version:1 > :debug:main changing euid/egid - current euid: 0 - current egid: 0 > :debug:main egid changed to: 501 > :debug:main euid changed to: 503 > :debug:main Executing org.macports.main (p5.22-net-arp) > :debug:main Privilege de-escalation not attempted as not running as > root. :debug:main Skipping completed org.macports.archivefetch > (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as > not running as root. :debug:main Skipping completed > org.macports.fetch (p5.22-net-arp) :debug:main Privilege > de-escalation not attempted as not running as root. :debug:main > Skipping completed org.macports.checksum (p5.22-net-arp) :debug:main > Privilege de-escalation not attempted as not running as > root. :debug:main Skipping completed org.macports.extract > (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as > not running as root. :debug:main Skipping completed > org.macports.patch (p5.22-net-arp) :debug:main Privilege > de-escalation not attempted as not running as root. :debug:configure > configure phase started at Wed Jan 13 19:13:07 CET > 2016 :notice:configure ---> Configuring > p5.22-net-arp :debug:configure Using compiler 'Xcode > Clang' :debug:configure Executing org.macports.configure > (p5.22-net-arp) :debug:configure Environment: CC='/usr/bin/clang' > CC_PRINT_OPTIONS='YES' > CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' > CFLAGS='-pipe -Os -arch x86_64 -arch i386' CPATH='/opt/local/include' > CPPFLAGS='-I/opt/local/include' > CXX='/usr/bin/clang++' > CXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' > F90FLAGS='-pipe -Os' > FCFLAGS='-pipe -Os' > FFLAGS='-pipe -Os' > INSTALL='/usr/bin/install -c' > LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch > x86_64 -arch i386' LIBRARY_PATH='/opt/local/lib' > MACOSX_DEPLOYMENT_TARGET='10.8' > OBJC='/usr/bin/clang' > OBJCFLAGS='-pipe -Os -arch x86_64 -arch i386' > OBJCXX='/usr/bin/clang++' > OBJCXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' > PERL_AUTOINSTALL='--skipdeps' > __CFPREFERENCES_AVOID_DAEMON='1' > :debug:configure Assembled command: 'cd > "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" > && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor > CC="/usr/bin/clang" LD="/usr/bin/clang"' :debug:configure Executing > command line: cd > "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" > && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor > CC="/usr/bin/clang" LD="/usr/bin/clang" :info:configure Checking if > your kit is complete... :info:configure Looks good :info:configure > Generating a Unix-style Makefile :info:configure Writing Makefile for > Net::ARP :info:configure Writing MYMETA.yml and > MYMETA.json :debug:configure Executing > proc-post-org.macports.configure-configure-0 :info:configure Fixing > flags in Makefile :info:configure ---> Patching Makefile: /^CCFLAGS > *=/s/$/ -arch x86_64 -arch i386/ :debug:configure Executing > reinplace: /usr/bin/sed {/^CCFLAGS *=/s/$/ -arch x86_64 -arch i386/} > < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile
> >@ file11 2>@stderr :debug:configure euid/egid changed to: > >0/0 :debug:configure > >chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile > >to macports :debug:configure euid/egid changed to: > >503/501 :debug:configure euid/egid changed to: 0/0
> :debug:configure setting attributes > on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure > euid/egid changed to: 503/501 :info:configure ---> Patching > Makefile: /^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch > i386/ :debug:configure Executing reinplace: /usr/bin/sed > {/^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch i386/} > < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile
> >@ file11 2>@stderr :debug:configure euid/egid changed to: > >0/0 :debug:configure > >chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile > >to macports :debug:configure euid/egid changed to: 503/501
> :debug:configure euid/egid changed to: 0/0 > :debug:configure setting attributes > on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure > euid/egid changed to: 503/501 :debug:configure Privilege > de-escalation not attempted as not running as root. :debug:build > build phase started at Wed Jan 13 19:13:08 CET 2016 :notice:build > ---> Building p5.22-net-arp :debug:build Executing > org.macports.build (p5.22-net-arp) :debug:build Environment: > CC_PRINT_OPTIONS='YES' > CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' > CPATH='/opt/local/include' > LIBRARY_PATH='/opt/local/lib' > MACOSX_DEPLOYMENT_TARGET='10.8' > :debug:build Assembled command: 'cd > "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" > && /usr/bin/make -j4 -w all' :debug:build Executing command line: cd > "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" > && /usr/bin/make -j4 -w all :info:build make: Entering directory > `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build > "/opt/local/bin/perl5.22" > "/opt/local/lib/perl5/5.22/ExtUtils/xsubpp" -typemap > '/opt/local/lib/perl5/5.22/ExtUtils/typemap' ARP.xs > > ARP.xsc :info:build Running Mkbootstrap for ARP > () :info:build /usr/bin/clang -c -pipe -Os -fno-common > -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing > -fstack-protector -I/opt/local/include -arch x86_64 -arch i386 -O3 > -DVERSION=\"1.0.8\" -DXS_VERSION=\"1.0.8\" > "-I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE" -DBSD > get_mac_bsd.c -o get_mac_bsd.o :info:build In file included from > get_mac_bsd.c:33: :info:build ./arp.h:62:60: error: expected function > body after function declarator :info:build extern struct ether_addr > *ether_aton (__const char *__asc) > __THROW; :info:build > ^ :info:build 1 error generated. :info:build make: *** > [get_mac_bsd.o] Error 1 :info:build make: *** Waiting for unfinished > jobs.... :info:build chmod 644 "ARP.bs" :info:build cp ARP.pm > blib/lib/Net/ARP.pm :info:build Please specify prototyping behavior > for ARP.xs (see perlxs manual) :info:build mv ARP.xsc > ARP.c :info:build make: Leaving directory > `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build > Command failed: cd > "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" > && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build > org.macports.build for port p5.22-net-arp returned: command execution > failed :debug:build Error code: CHILDSTATUS 45784 2 :debug:build > Backtrace: command execution failed while executing "system -nice 0 > $fullcmdstring" ("eval" body line 1) invoked from within "eval system > $notty $nice \$fullcmdstring" invoked from within "command_exec > build" (procedure "portbuild::build_main" line 8) invoked from within > "portbuild::build_main org.macports.build" ("eval" body line 1) > invoked from within "eval $procedure $targetname" :info:build > Warning: targets not executed for p5.22-net-arp: > org.macports.activate org.macports.build org.macports.destroot > org.macports.install :error:build Failed to install > p5.22-net-arp :debug:build Registry error: p5.22-net-arp not > registered as installed & active. invoked from within > "registry_active $subport" invoked from within "$workername eval > registry_active \$subport" :notice:build Please see the log file for > port p5.22-net-arp for > details: /opt/local/var/macports/logs/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/main.log >
Subject: Re: [rt.cpan.org #111167] OS X Compilation patch Net-ARP 1.0.9
Date: Wed, 20 Jan 2016 10:31:03 +0100
To: bug-Net-ARP [...] rt.cpan.org
From: Jose Palao <jpalao [...] personasytecnicas.com>
Dear Basti, Thank you very much for your module and for your patch. Best regards, Jose El 16/01/16 14:28, Bastian Ballmann via RT escribió: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=111167> > > Hi Jose, > > thanks for your bug report and patch. > > I applied it to the current source code and fixed arp.h > > The new uploaded version 1.0.9 should be available on CPAN in a few > minutes. > > Have a nice weekend! > > Basti > > > > Am Wed, 13 Jan 2016 16:13:46 -0500 > schrieb "Jose Palao via RT"<bug-Net-ARP@rt.cpan.org>: >
>> Queue: Net-ARP >> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=111167> >> >> In addition, to compile I had to undefine __THROW in arp.h >> >> Macports log follows >> >> version:1 >> :debug:main changing euid/egid - current euid: 0 - current egid: 0 >> :debug:main egid changed to: 501 >> :debug:main euid changed to: 503 >> :debug:main Executing org.macports.main (p5.22-net-arp) >> :debug:main Privilege de-escalation not attempted as not running as >> root. :debug:main Skipping completed org.macports.archivefetch >> (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as >> not running as root. :debug:main Skipping completed >> org.macports.fetch (p5.22-net-arp) :debug:main Privilege >> de-escalation not attempted as not running as root. :debug:main >> Skipping completed org.macports.checksum (p5.22-net-arp) :debug:main >> Privilege de-escalation not attempted as not running as >> root. :debug:main Skipping completed org.macports.extract >> (p5.22-net-arp) :debug:main Privilege de-escalation not attempted as >> not running as root. :debug:main Skipping completed >> org.macports.patch (p5.22-net-arp) :debug:main Privilege >> de-escalation not attempted as not running as root. :debug:configure >> configure phase started at Wed Jan 13 19:13:07 CET >> 2016 :notice:configure ---> Configuring >> p5.22-net-arp :debug:configure Using compiler 'Xcode >> Clang' :debug:configure Executing org.macports.configure >> (p5.22-net-arp) :debug:configure Environment: CC='/usr/bin/clang' >> CC_PRINT_OPTIONS='YES' >> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' >> CFLAGS='-pipe -Os -arch x86_64 -arch i386' CPATH='/opt/local/include' >> CPPFLAGS='-I/opt/local/include' >> CXX='/usr/bin/clang++' >> CXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' >> F90FLAGS='-pipe -Os' >> FCFLAGS='-pipe -Os' >> FFLAGS='-pipe -Os' >> INSTALL='/usr/bin/install -c' >> LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch >> x86_64 -arch i386' LIBRARY_PATH='/opt/local/lib' >> MACOSX_DEPLOYMENT_TARGET='10.8' >> OBJC='/usr/bin/clang' >> OBJCFLAGS='-pipe -Os -arch x86_64 -arch i386' >> OBJCXX='/usr/bin/clang++' >> OBJCXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libstdc++' >> PERL_AUTOINSTALL='--skipdeps' >> __CFPREFERENCES_AVOID_DAEMON='1' >> :debug:configure Assembled command: 'cd >> "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" >> && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor >> CC="/usr/bin/clang" LD="/usr/bin/clang"' :debug:configure Executing >> command line: cd >> "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" >> && /opt/local/bin/perl5.22 Makefile.PL INSTALLDIRS=vendor >> CC="/usr/bin/clang" LD="/usr/bin/clang" :info:configure Checking if >> your kit is complete... :info:configure Looks good :info:configure >> Generating a Unix-style Makefile :info:configure Writing Makefile for >> Net::ARP :info:configure Writing MYMETA.yml and >> MYMETA.json :debug:configure Executing >> proc-post-org.macports.configure-configure-0 :info:configure Fixing >> flags in Makefile :info:configure ---> Patching Makefile: /^CCFLAGS >> *=/s/$/ -arch x86_64 -arch i386/ :debug:configure Executing >> reinplace: /usr/bin/sed {/^CCFLAGS *=/s/$/ -arch x86_64 -arch i386/} >> < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile
>>> @ file11 2>@stderr :debug:configure euid/egid changed to: >>> 0/0 :debug:configure >>> chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile >>> to macports :debug:configure euid/egid changed to: >>> 503/501 :debug:configure euid/egid changed to: 0/0
>> :debug:configure setting attributes >> on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure >> euid/egid changed to: 503/501 :info:configure ---> Patching >> Makefile: /^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch >> i386/ :debug:configure Executing reinplace: /usr/bin/sed >> {/^OTHERLDFLAGS *=/s/$/ -arch x86_64 -arch i386/} >> < /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile
>>> @ file11 2>@stderr :debug:configure euid/egid changed to: >>> 0/0 :debug:configure >>> chowned /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile >>> to macports :debug:configure euid/egid changed to: 503/501
>> :debug:configure euid/egid changed to: 0/0 >> :debug:configure setting attributes >> on /opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9/Makefile :debug:configure >> euid/egid changed to: 503/501 :debug:configure Privilege >> de-escalation not attempted as not running as root. :debug:build >> build phase started at Wed Jan 13 19:13:08 CET 2016 :notice:build >> ---> Building p5.22-net-arp :debug:build Executing >> org.macports.build (p5.22-net-arp) :debug:build Environment: >> CC_PRINT_OPTIONS='YES' >> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/.CC_PRINT_OPTIONS' >> CPATH='/opt/local/include' >> LIBRARY_PATH='/opt/local/lib' >> MACOSX_DEPLOYMENT_TARGET='10.8' >> :debug:build Assembled command: 'cd >> "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" >> && /usr/bin/make -j4 -w all' :debug:build Executing command line: cd >> "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" >> && /usr/bin/make -j4 -w all :info:build make: Entering directory >> `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build >> "/opt/local/bin/perl5.22" >> "/opt/local/lib/perl5/5.22/ExtUtils/xsubpp" -typemap >> '/opt/local/lib/perl5/5.22/ExtUtils/typemap' ARP.xs> >> ARP.xsc :info:build Running Mkbootstrap for ARP >> () :info:build /usr/bin/clang -c -pipe -Os -fno-common >> -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing >> -fstack-protector -I/opt/local/include -arch x86_64 -arch i386 -O3 >> -DVERSION=\"1.0.8\" -DXS_VERSION=\"1.0.8\" >> "-I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE" -DBSD >> get_mac_bsd.c -o get_mac_bsd.o :info:build In file included from >> get_mac_bsd.c:33: :info:build ./arp.h:62:60: error: expected function >> body after function declarator :info:build extern struct ether_addr >> *ether_aton (__const char *__asc) >> __THROW; :info:build >> ^ :info:build 1 error generated. :info:build make: *** >> [get_mac_bsd.o] Error 1 :info:build make: *** Waiting for unfinished >> jobs.... :info:build chmod 644 "ARP.bs" :info:build cp ARP.pm >> blib/lib/Net/ARP.pm :info:build Please specify prototyping behavior >> for ARP.xs (see perlxs manual) :info:build mv ARP.xsc >> ARP.c :info:build make: Leaving directory >> `/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9' :info:build >> Command failed: cd >> "/opt/local/var/macports/build/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/work/Net-ARP-1.0.9" >> && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build >> org.macports.build for port p5.22-net-arp returned: command execution >> failed :debug:build Error code: CHILDSTATUS 45784 2 :debug:build >> Backtrace: command execution failed while executing "system -nice 0 >> $fullcmdstring" ("eval" body line 1) invoked from within "eval system >> $notty $nice \$fullcmdstring" invoked from within "command_exec >> build" (procedure "portbuild::build_main" line 8) invoked from within >> "portbuild::build_main org.macports.build" ("eval" body line 1) >> invoked from within "eval $procedure $targetname" :info:build >> Warning: targets not executed for p5.22-net-arp: >> org.macports.activate org.macports.build org.macports.destroot >> org.macports.install :error:build Failed to install >> p5.22-net-arp :debug:build Registry error: p5.22-net-arp not >> registered as installed& active. invoked from within >> "registry_active $subport" invoked from within "$workername eval >> registry_active \$subport" :notice:build Please see the log file for >> port p5.22-net-arp for >> details: /opt/local/var/macports/logs/_Users_jose_MacPorts_local-sources_perl_p5-net-arp/p5.22-net-arp/main.log >>
> >