Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13073 (closed defect: fixed)

Opened 10 months ago

Last modified 6 months ago

Libnet 1.0.2a fails to build on Mac OS X 10.5 Leopard

Reported by: isaac.bythewood@… Owned by: macports-tickets@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.5.2
Keywords: Cc: jim@…, isaac.bythewood@…, quuxster@…
Port:

Description (last modified by jmpp@…) (diff)

--->  Fetching libnet
--->  Verifying checksum(s) for libnet
--->  Extracting libnet
--->  Applying patches to libnet
--->  Configuring libnet
--->  Building libnet with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libnet/work/Libnet-1.0.2a" && make all " returned error 2
Command output: src/../include/./libnet/libnet-functions.h:500: warning: its scope is only this definition or declaration, which is probably not what you want
gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I/opt/local/include  -DHAVE_CONFIG_H -c src/libnet_checksum.c -o src/libnet_checksum.o
In file included from src/../include/libnet.h:81,
                 from src/libnet_checksum.c:37:
src/../include/./libnet/libnet-functions.h:500: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:500: warning: its scope is only this definition or declaration, which is probably not what you want
src/libnet_checksum.c: In function 'libnet_do_checksum':
src/libnet_checksum.c:200: warning: comparison is always false due to limited range of data type
gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I/opt/local/include  -DHAVE_CONFIG_H -c src/libnet_prand.c -o src/libnet_prand.o
In file included from src/../include/libnet.h:81,
                 from src/libnet_prand.c:36:
src/../include/./libnet/libnet-functions.h:500: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:500: warning: its scope is only this definition or declaration, which is probably not what you want
gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I/opt/local/include  -DHAVE_CONFIG_H -c src/libnet_version.c -o src/libnet_version.o
gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I/opt/local/include  -DHAVE_CONFIG_H -c src/libnet_write_ip.c -o src/libnet_write_ip.o
In file included from src/../include/libnet.h:81,
                 from src/libnet_write_ip.c:36:
src/../include/./libnet/libnet-functions.h:500: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:500: warning: its scope is only this definition or declaration, which is probably not what you want
gcc -O2 -funroll-loops -fomit-frame-pointer -Wall -I/opt/local/include  -DHAVE_CONFIG_H -c src/libnet_insert_ipo.c -o src/libnet_insert_ipo.o
In file included from src/../include/libnet.h:81,
                 from src/libnet_insert_ipo.c:36:
src/../include/./libnet/libnet-functions.h:500: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:500: warning: its scope is only this definition or declaration, which is probably not what you want
src/libnet_insert_ipo.c:39: warning: 'struct ipoption' declared inside parameter list
src/libnet_insert_ipo.c:40: error: conflicting types for 'libnet_insert_ipo'
src/../include/./libnet/libnet-functions.h:500: error: previous declaration of 'libnet_insert_ipo' was here
src/libnet_insert_ipo.c: In function 'libnet_insert_ipo':
src/libnet_insert_ipo.c:83: error: dereferencing pointer to incomplete type
make: *** [src/libnet_insert_ipo.o] Error 1

Error: Status 1 encountered during processing.

Attachments

portfile.patch (0.6 kB) - added by tehviu@… 8 months ago.
Patch for the portfile

Change History

Changed 10 months ago by mac.telia.net@…

Same here too, latest svn version, PPC, "libnet" build fail.

Changed 10 months ago by nox@…

  • cc jim@…, isaac.bythewood@… added
  • summary changed from Libnet 1.0.2a will not compile on Leopard to Libnet 1.0.2a will not compile on Mac OS X 10.5 Leopard
  • milestone changed from MacPorts 1.5 to Port Bugs

Changed 10 months ago by nox@…

  • summary changed from Libnet 1.0.2a will not compile on Mac OS X 10.5 Leopard to Libnet 1.0.2a fails to build on Mac OS X 10.5 Leopard

Changed 8 months ago by tehviu@…

Its a bug in the Portfile, the patch is there but it is not used. This patch might work but the change is only one line so it can be done manually.

--- Portfile.orig 2008-01-03 19:46:33.000000000 +0200 +++ Portfile 2008-01-03 19:48:46.000000000 +0200 @@ -26,7 +26,7 @@

master_sites http://www.packetfactory.net/libnet/dist/deprecated/ checksums md5 ddf53f0f484184390e8c2a1bd0853667 depends_build path:/usr/include/netinet/ip_var.h:netinet-headers

-patchfiles patch-Makefile patch-include-libnet.h +patchfiles patch-Makefile patch-include-libnet.h patch-includelibnetlibnet-headers.h

worksrcdir Libnet-${version} post-configure { reinplace "s|\$\{prefix\}/man|\$\{prefix\}/share/man|g" ${worksrcpath}/Makefile }

Changed 8 months ago by tehviu@…

Patch for the portfile

Changed 8 months ago by jmpp@…

  • priority changed from High to Normal

Please read WikiFormatting to learn how to properly paste Terminal output into tickets, thanks!

-jmpp

Changed 8 months ago by jmpp@…

  • description modified (diff)

Changed 8 months ago by undercoverdave@…

How do I use the patchfile? I tried rtfm'ing but couldn't find anything helpful. I patched the portfile, but then I didn't know how to use a local portfile...

Changed 8 months ago by ryandesign@…

  • cc quuxster@… added

Has duplicate #13007.

Changed 7 months ago by stuff@…

Am I missing something? Why not just apply the patch supplied for the libnet port so this is no longer a bug?

Changed 6 months ago by reiffert@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r34445

Note: See TracTickets for help on using tickets.