Opened 17 years ago

Closed 17 years ago

Last modified 9 years ago

#13073 closed defect (fixed)

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:
Component: ports Version: 1.5.2
Keywords: Cc: jim@…, isaac.bythewood@…, quuxster@…
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

--->  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 (1)

portfile.patch (575 bytes) - added by tehviu@… 17 years ago.
Patch for the portfile

Download all attachments as: .zip

Change History (12)

comment:1 Changed 17 years ago by mac.telia.net@…

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

comment:2 Changed 17 years ago by nox@…

Cc: jim@… isaac.bythewood@… added
Milestone: MacPorts 1.5Port Bugs
Summary: Libnet 1.0.2a will not compile on LeopardLibnet 1.0.2a will not compile on Mac OS X 10.5 Leopard

comment:3 Changed 17 years ago by nox@…

Summary: Libnet 1.0.2a will not compile on Mac OS X 10.5 LeopardLibnet 1.0.2a fails to build on Mac OS X 10.5 Leopard

comment:4 Changed 17 years 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-include__libnet__libnet-headers.h
 worksrcdir	Libnet-${version}
 post-configure	{ reinplace "s|\$\{prefix\}/man|\$\{prefix\}/share/man|g" ${worksrcpath}/Makefile }
 
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 17 years ago by tehviu@…

Attachment: portfile.patch added

Patch for the portfile

comment:5 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Priority: HighNormal

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

-jmpp

comment:6 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)

comment:7 Changed 17 years 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...

comment:8 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: quuxster@… added

Has duplicate #13007.

comment:9 Changed 17 years 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?

comment:10 Changed 17 years ago by reiffert@…

Resolution: fixed
Status: newclosed

Fixed in r34445

comment:11 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.