Opened 15 years ago

Closed 15 years ago

#23189 closed defect (fixed)

rrdtool 1.4.2_0 fails to compile under Snow Leopard

Reported by: sck-nogas (Scott C. Kennedy) Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: rrdtool

Description (last modified by jmroot (Joshua Root))

Biko-2:hack sck$ sudo port selfupdate && port outdated
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.2 installed,
MacPorts base version 1.8.2 downloaded.
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
The following installed ports are outdated:
ntop                           3.3.9_2 < 3.3.10_0        
rrdtool                        1.3.8_0 < 1.4.2_0         
Biko-2:hack sck$ sudo port clean rrdtool
--->  Cleaning rrdtool
Biko-2:hack sck$ sudo port upgrade rrdtool
--->  Computing dependencies for rrdtool
--->  Fetching rrdtool
--->  Verifying checksum(s) for rrdtool
--->  Extracting rrdtool
--->  Configuring rrdtool
--->  Building rrdtool
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_rrdtool/work/rrdtool-1.4.2" && /usr/bin/gnumake -j2 all " returned error 2
Command output:   CCLD   rrdtool
Making all in examples
Making all in rrdcached
gnumake[3]: Nothing to be done for `all'.
sed 's,@''exec_prefix@,/opt/local,' ./cgi-demo.cgi.in > cgi-demo.cgi
chmod a+x cgi-demo.cgi
Making all in doc
  GEN    rrdlua.1
  GEN    rrdlua.html
  GEN    RRDs.pod
  GEN    RRDp.pod
  GEN    rrdlua.txt
Making all in bindings
Making all in tcl
echo "package ifneeded Rrd 1.4.2 \"load /opt/local/lib/tclrrd1.4.2[info sharedlibextension]\"" > pkgIndex.tcl
/usr/bin/gcc-4.2 -O2 -arch x86_64 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W  -O2 -arch x86_64 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W  -fno-common -I/opt/local/include -I../../src -DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.4.2\"
tclrrd.c: In function 'Rrd_Graph':
tclrrd.c:507: warning: cast from pointer to integer of different size
/usr/bin/gcc-4.2 -dynamiclib -O2 -arch x86_64 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W  -L/opt/local/lib -L/opt/local/lib     -L/opt/local/lib     -L/opt/local/lib     -Wl,-single_module  -L../../src/.libs -L../../src -L/opt/local/lib tclrrd.o -o tclrrd1.4.2.dylib -lrrd_th -lm -L/opt/local/lib -ltclstub8.5 -L/opt/local/lib -L/opt/local/lib     -L/opt/local/lib     -L/opt/local/lib     
Undefined symbols:
  "_rrd_flushcached", referenced from:
      _Rrd_Flushcached in tclrrd.o
  "_rrd_lastupdate_r", referenced from:
      _Rrd_Lastupdate in tclrrd.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gnumake[3]: *** [tclrrd1.4.2.dylib] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.
Biko-2:hack sck$ 

Attachments (1)

rrdtool.debug (103.0 KB) - added by sck-nogas (Scott C. Kennedy) 15 years ago.
Debug output of compilation under Snow Leopard 10.6.2

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by sck-nogas (Scott C. Kennedy)

Attachment: rrdtool.debug added

Debug output of compilation under Snow Leopard 10.6.2

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to markd@…

Please remember to preview and use WikiFormatting, and to cc the maintainer.

comment:2 Changed 15 years ago by markd@…

It works on 10.5 -I didn't have a copy of 10.6 to test. Try this: edit the portfile local copy ('sudo port ed rrdtool') and and this to the configure.args '--disable-tcl'. Make sure to add a '\' continuation character to the previous line. So when it builds you should see 'Build Tcl Bindings: no' appear after the config phase. Let me know if that works.

comment:3 in reply to:  2 Changed 15 years ago by sck-nogas (Scott C. Kennedy)

Replying to markd@…:

It works on 10.5 -I didn't have a copy of 10.6 to test. Try this: edit the portfile local copy ('sudo port ed rrdtool') and and this to the configure.args '--disable-tcl'. Make sure to add a '\' continuation character to the previous line. So when it builds you should see 'Build Tcl Bindings: no' appear after the config phase. Let me know if that works.

That worked.

comment:4 Changed 15 years ago by markd@…

Resolution: fixed
Status: newclosed

Ok, thanks. I committed a revision that turns off the tcl bindings for now. I'll follow up with developer on fixing those bindings later.

Note: See TracTickets for help on using tickets.