[rrd-users] Rrdtool > 1.3.1 compile broken on OS X 10.4

Carlo F Bolchini basfamas at yahoo.com
Sat Oct 25 02:54:23 CEST 2008


I was having the same problem with 1.3.4 and compiling with macports. Have
found no informations around, but I have isolated the problem being in the
last line of src/librrd.sym that results to be an '#'. This line corresponds
to '@RRD_GETOPT_LONG@' of src/librrd.sym.in, and I understand that it is
translated to the sharp when the configuration process is run.
This file is used to generate another file with the list of symbols that has
'_#' as last one, and that is not an exported symbol and that breaks the
linker.
I did not have the time to investigate further, but removing the last '_#'
from the file src/.libs/librrd-symbols.expsym removes the problem and
rrdtool compiles just fine. You may wanto to remove the '#' from the
src/librrd.sym file if you need other builds so that the generated file is
correct.
This configure option refers to the getopt_long that is in the darwin libs
so I guess should be ok.
I have used the tool and looks ok to me, but I haven't tested it
extensively.

Please excuse me if this has been already pointed out, but I could not find
anything online so I hope this can help.

Carlo.


oetiker wrote:
> 
> Hi Mark,
> 
> I have no mac, so I can not test these things, but my guess is that
> it is somehow related to the changes for solaris 2.8 compatibility
> I made in the 1.3.2 and 1.3.3 release ...
> 
> You mention that things compile fine on 10.5, so could you run
> 'configure' on both systems and  then do a
> 
> diff -ur between the two directories. This may give use some
> insights.
> 
> cheers
> tobi
> 
> Yesterday Mark Duling wrote:
> 
>> Hello,
>>
>> Rrdtool compiles fine on the latest OS X (10.5.x), but it is failing on
>> OS X 10.4.x after about version 1.3.1 I believe.  Below is the build
>> output for 1.3.3.  Tobi, any ideas on what the problem could be?
>>
>> Mark
>>
>>
>> creating librrdupd.la
>> (cd .libs && rm -f librrdupd.la && ln -s ../librrdupd.la librrdupd.la)
>> /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.0  -O2
>> -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 -DPIC  -L/opt/local/lib -L/opt/local/lib -L/usr/X11R6/lib  
>> -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices  
>> -L/opt/local/lib -L/usr/X11R6/lib   -Wl,-framework,CoreServices
>> -Wl,-framework,ApplicationServices   -o librrd.la -rpath /opt/local/lib
>> -version-info 4:2:0 -export-symbols librrd.sym hash_32.lo pngsize.lo
>> rrd_create.lo rrd_graph.lo rrd_graph_helper.lo rrd_version.lo rrd_last.lo
>> rrd_lastupdate.lo rrd_first.lo rrd_restore.lo rrd_xport.lo rrd_gfx.lo
>> rrd_dump.lo rrd_fetch.lo rrd_resize.lo rrd_tune.lo librrdupd.la -lxml2
>> -lcairo -lcairo -lcairo  -lcairo -lSM -lICE -lfontconfig -lexpat
>> -lfreetype -lpng12 -lz -lXrender -lX11 -lpixman-1   -lpangocairo-1.0
>> -lcairo -lSM -lICE -lpangoft2-1.0 -lpng12 -lXrender -lX11 -lpixman-1
>> -lpango-1.0 -lm -lfontconfig -lexpat -lfreetype -lz -lgobject-2.0
>> -lgmodule-2.0 -lglib-2.0 -lintl -liconv
>> rm -fr .libs/librrd.lax
>> mkdir .libs/librrd.lax
>> rm -fr .libs/librrd.lax/librrdupd.a
>> mkdir .libs/librrd.lax/librrdupd.a
>> Extracting
>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_rrdtool/work/rrdtool-1.3.3/src/./.libs/librrdupd.a
>> (cd .libs/librrd.lax/librrdupd.a && ar x
>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_rrdtool/work/rrdtool-1.3.3/src/./.libs/librrdupd.a)
>> sed 's,^,_,' < librrd.sym > .libs/librrd-symbols.expsym
>> /usr/bin/gcc-4.0 -dynamiclib ${wl}-flat_namespace ${wl}-undefined
>> ${wl}suppress -o .libs/librrd.4.0.2.dylib  .libs/hash_32.o
>> .libs/pngsize.o .libs/rrd_create.o .libs/rrd_graph.o
>> .libs/rrd_graph_helper.o .libs/rrd_version.o .libs/rrd_last.o
>> .libs/rrd_lastupdate.o .libs/rrd_first.o .libs/rrd_restore.o
>> .libs/rrd_xport.o .libs/rrd_gfx.o .libs/rrd_dump.o .libs/rrd_fetch.o
>> .libs/rrd_resize.o .libs/rrd_tune.o 
>> .libs/librrd.lax/librrdupd.a/rrd_diff.o
>> .libs/librrd.lax/librrdupd.a/rrd_error.o
>> .libs/librrd.lax/librrdupd.a/rrd_format.o
>> .libs/librrd.lax/librrdupd.a/rrd_hw.o
>> .libs/librrd.lax/librrdupd.a/rrd_hw_math.o
>> .libs/librrd.lax/librrdupd.a/rrd_hw_update.o
>> .libs/librrd.lax/librrdupd.a/rrd_info.o
>> .libs/librrd.lax/librrdupd.a/rrd_nan_inf.o
>> .libs/librrd.lax/librrdupd.a/rrd_not_thread_safe.o
>> .libs/librrd.lax/librrdupd.a/rrd_open.o
>> .libs/librrd.lax/librrdupd.a/rrd_parsetime.o
>> .libs/librrd.lax/librrdupd.a/rrd_rpncalc.o
>> .libs/librrd.lax/librrdupd.a/rrd_update.o   -L/opt/local/lib
>> -L/usr/X11R6/lib -lc /opt/local/lib/libxml2.dylib
>> /opt/local/lib/libz.dylib /opt/local/lib/libpangocairo-1.0.dylib
>> /usr/X11R6/lib/libSM.dylib /usr/X11R6/lib/libICE.dylib
>> /usr/X11R6/lib/libX11.dylib /opt/local/lib/libcairo.dylib -lSM -lICE
>> /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libpng12.dylib
>> /opt/local/lib/libXrender.dylib -lX11 /opt/local/lib/libpixman-1.dylib
>> /opt/local/lib/libpango-1.0.dylib -lm /opt/local/lib/libfontconfig.dylib
>> /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib -lz
>> /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib
>> /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib
>> /opt/local/lib/libiconv.dylib  -Wl,-framework -Wl,CoreServices
>> -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,CoreServices
>> -Wl,-framework -Wl,ApplicationServices -install_name 
>> /opt/local/lib/librrd.4.dylib -Wl,-compatibility_version -Wl,5
>> -Wl,-current_version -Wl,5.2 
>> -Wl,-exported_symbols_list,.libs/librrd-symbols.expsym
>> ld: symbols names listed in -exported_symbols_list:
>> .libs/librrd-symbols.expsym not in linked objects
>> _#
>> /usr/bin/libtool: internal link edit command failed
>> gnumake[2]: *** [librrd.la] Error 1
>> gnumake[1]: *** [all-recursive] Error 1
>> gnumake: *** [all] Error 2
>>
> 
> -- 
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Rrdtool-%3E-1.3.1-compile-broken-on-OS-X-10.4-tp1099468p1374131.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list