Opened 16 years ago

Closed 10 years ago

#19367 closed defect (fixed)

ntop build succeeds but staging fails on 10.4

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: tiger Cc: macports@…, griffinmd@…
Port: ntop

Description

On my Intel Mac with Mac OS X 10.4.11, Xcode 2.5 and MacPorts 1.7.1, ntop builds, but then fails to stage:

DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/ntop-3.3.8" && gnumake install install-data-as DESTDIR=/mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot'
Making install in .
test -z "/mp/lib" || /mp/bin/gmkdir -p "/mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c  'libntop.la' '/mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop.la'
/usr/bin/install -c .libs/libntop-3.3.8.dylib /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop-3.3.8.dylib
(cd /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib && rm -f libntop.dylib && ln -s libntop-3.3.8.dylib libntop.dylib)
/usr/bin/install -c .libs/libntop.lai /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop.la
/usr/bin/install -c .libs/libntop.a /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop.a
ranlib /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop.a
chmod 644 /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntop.a
libtool: install: warning: remember to run `libtool --finish /mp/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c  'libntopreport.la' '/mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot/mp/lib/libntopreport.la'
libtool: install: warning: relinking `libntopreport.la'
(cd /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/ntop-3.3.8; /bin/sh ./libtool --mode=relink /usr/bin/gcc-4.0 -g -no-cpp-precomp -O2 -I/mp/include -I/usr/local/include -I/opt/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-common -DPIC -release 3.3.8 -export-dynamic -L/mp/lib -L/usr/local/lib -L/opt/local/lib -o libntopreport.la -rpath /mp/lib emitter.lo globals-report.lo graph.lo fcReport.lo http.lo perl.lo report.lo reportUtils.lo ssl.lo webInterface.lo libntop.la -lpthread -lc -lssl -lcrypto -lrrd_th -lpcre -lgdbm -lz -lpcap -L/mp/lib -L/usr/local/lib -L/mp/lib/perl5/5.8.9/darwin-2level/CORE -lperl -ldl -lm -lc -inst-prefix-dir /mp/var/macports/build/_Users_rschmidt_macports_dports_net_ntop/work/destroot)
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
libtool: install: error: relink `libntopreport.la' with the above command before installing it
gnumake[2]: *** [install-libLTLIBRARIES] Error 1
gnumake[1]: *** [install-am] Error 2
gnumake: *** [install-recursive] Error 1

I do not know why /usr/local/include and /opt/local/include are being referenced above; my MacPorts is in /mp. Full log attached.

Attachments (1)

ntop.txt (148.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.

Download all attachments as: .zip

Change History (9)

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: ntop.txt added

comment:1 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:2 Changed 16 years ago by macports@…

Looks like ticket:14308, which was closed as of ntop 3.3.8. However I can confirm having the same problem with 3.3.8 under the same config (Mac OS X 10.4.11, Xcode 2.5 and MacPorts 1.7.1), while the last entry on ticket:14308 mentions moving up to both newer versions of Mac OS and Xcode. So perhaps this is a 10.4-specific problem.

The issue appears to be the lack of --tag=CC on the relink steps for the 2 libraries, libntop and libntopreport. If I modify the libtool commands manually, they run without error. However I don't know where to change the calls in the makefile so the execution will actually complete.

comment:3 Changed 16 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:4 Changed 15 years ago by griffinmd@…

Cc: griffinmd@… added

Cc Me!

comment:5 Changed 15 years ago by griffinmd@…

Additional instance; minor variant: Issue persists with ntop version 3.3.9

Macports version: 1.7.1

Attempted action: Install ntop version 3.3.9

Build platform: iBook G4 PowerPC; OS 10.4.11; Dev Tools 2.4.1; Darwin Kernel Version 8.11.0 configured for a single processor PowerPC 7450


JuniorMint:~ michael$ sudo port install -vt ntop
--->  Fetching ntop
--->  Verifying checksum(s) for ntop
--->  Extracting ntop
--->  Applying patches to ntop
--->  Configuring ntop
Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/.GlobalPreferences.plist
Warning: An activity was attempted outside sandbox: /var/root/Library/Preferences/ByHost/.GlobalPreferences.0011242e4240.plist
--->  Building ntop
--->  Staging ntop into destroot
Error: Target org.macports.destroot 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.9" && gnumake install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot " returned error 2
Command output: Making install in .
test -z "/opt/local/lib" || ./install-sh -c -d "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot/opt/local/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libntop.la libntopreport.la '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot/opt/local/lib'
/usr/bin/install -c .libs/libntop-3.3.9.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot/opt/local/lib/libntop-3.3.9.dylib
(cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot/opt/local/lib && rm -f libntop.dylib && ln -s libntop-3.3.9.dylib libntop.dylib)
/usr/bin/install -c .libs/libntop.lai /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot/opt/local/lib/libntop.la
libtool: install: warning: relinking `libntopreport.la'
(cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/ntop-3.3.9; /bin/sh ./libtool --mode=relink /usr/bin/gcc-4.0 -g -no-cpp-precomp -O2 -I/opt/local/include -I/usr/local/include -I/opt/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-common -DPIC -release 3.3.9 -export-dynamic -L/opt/local/lib -L/usr/local/lib -L/opt/local/lib -lGeoIP -o libntopreport.la -rpath /opt/local/lib emitter.lo globals-report.lo graph.lo fcReport.lo http.lo perl.lo report.lo reportUtils.lo ssl.lo webInterface.lo map.lo libntop.la -lpthread -lc -lssl -lcrypto -lrrd_th -lpcre -lgdbm -lz -L/usr/local/lib -lpcap -L/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lc -inst-prefix-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ntop/work/destroot)
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
libtool: install: error: relink `libntopreport.la' with the above command before installing it
gnumake[2]: *** [install-libLTLIBRARIES] Error 1
gnumake[1]: *** [install-am] Error 2
gnumake: *** [install-recursive] Error 1

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Keywords: tiger added
Summary: ntop build succeeds but staging failsntop build succeeds but staging fails on 10.4

comment:7 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…

markd has retired. See #44782.

comment:8 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Looks fixed in the current version.

Note: See TracTickets for help on using tickets.