Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13610 closed defect (fixed)

ntop 3.3_0 fails to build

Reported by: andre@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: lists@…, martijn@…
Port:

Description (last modified by jmpp@…)

andre@prettyboy:~$ sudo port upgrade ntop
--->  Fetching ntop
--->  Verifying checksum(s) for ntop
--->  Extracting ntop
--->  Configuring ntop
--->  Building ntop 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_ntop/work/ntop-3.3" && gnumake all " returned error 2
Command output: cd . && /bin/sh ./missing --run echo

rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
gnumake  all-recursive
Making all in .
/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -g -Os -DBUILD=112 -DMACOSX_DEPLOYMENT_TARGET=10.5 -F/System/Library/PrivateFrameworks/ -F/System/Library/Frameworks/ -pipe -Udarwin9 -Ddarwin9=darwin9 -I. -I/usr/local/include    -I/opt/local/include -DDARWIN -I/usr/local/include  -g -no-cpp-precomp -O2 -I/opt/local/include -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fno-common -DPIC -MT address.lo -MD -MP -MF .deps/address.Tpo -c -o address.lo address.c
mkdir .libs
 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -g -Os -DBUILD=112 -DMACOSX_DEPLOYMENT_TARGET=10.5 -F/System/Library/PrivateFrameworks/ -F/System/Library/Frameworks/ -pipe -Udarwin9 -Ddarwin9=darwin9 -I. -I/usr/local/include -I/opt/local/include -DDARWIN -I/usr/local/include -g -no-cpp-precomp -O2 -I/opt/local/include -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-common -DPIC -MT address.lo -MD -MP -MF .deps/address.Tpo -c address.c  -fno-common -DPIC -o .libs/address.o
In file included from ntop.h:484,
                 from address.c:21:
globals-structtypes.h:103: error: two or more data types in declaration specifiers
globals-structtypes.h:103: warning: useless type name in empty declaration
gnumake[2]: *** [address.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Error: Unable to upgrade port: 1
andre@prettyboy:~$ 


andre@prettyboy:~$ port -v
MacPorts 1.600

andre@prettyboy:~$ uname -a
Darwin prettyboy.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386

Attachments (2)

Portfile.patch (221 bytes) - added by rhys@… 16 years ago.
Patch to add new patch.
patch-globals-structtypes.h (289 bytes) - added by rhys@… 16 years ago.
Patch to solve compilation problem.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 16 years ago by jmpp@…

Description: modified (diff)
Milestone: Port Bugs

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to markd@…
Summary: ntop fails to compilentop 3.3_0 fails to build

Assign to maintainer.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: lists@… added

Jay Chandler reported the same problem on macports-users.

comment:4 Changed 16 years ago by martijn@…

I've got the exact same problem. Same ntop version, OS, Macports version, etc.

P.S. I can't figure out how to add myself to CC.

comment:5 Changed 16 years ago by raimue (Rainer Müller)

Cc: martijn@… added

Changed 16 years ago by rhys@…

Attachment: Portfile.patch added

Patch to add new patch.

Changed 16 years ago by rhys@…

Attachment: patch-globals-structtypes.h added

Patch to solve compilation problem.

comment:6 Changed 16 years ago by rhys@…

The two attachments above make ntop compile again. I'm sure there's a proper way to do this, but I am not familiar with configure.

comment:7 Changed 16 years ago by markd@…

Resolution: fixed
Status: newclosed

Committed as revision 1 to the port. That seems to have solved the problem. Thanks!

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.