[rrd-users] Re: Problems building rpm (1.2.11 - 1.test) on SMP system (solved)?

Dag Wieers dag at wieers.com
Mon Dec 19 20:15:49 MET 2005

On Mon, 19 Dec 2005, Michael Heiming wrote:

> Problems compiling (1.2.11 - 1.test) on smp system (Linux RHEL 3.0 all 
> patches installed), the same .spec file works without problems after
> adding "%define _without_python 1" on a single CPU system (RHEL 3.0 all 
> patches installed)
> The problem seems to be realted to "librrd.la":
> /bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -g -pipe -march=i686 
> -fPIC -DPIC -Wall -pedantic -Wshadow -Wpointer-arith -Wcas
> t-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
> -Winline -W   -o rrdtool   librrd.la -lfreetype -lpng -lz -l
> art_lgpl_2 -lm
>   gcc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Mon Dec 19 15:04:59 CET 
> 2005\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/share/rrdtool/fon
> ts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/include/libart-2.0 
> -I/usr/include/freetype2 -pthread -O2 -g -pipe -march=i6
> 86 -fPIC -DPIC -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align 
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
>   -Winline -W -MT librrd_th_la-rrd_thread_safe.lo -MD -MP -MF 
> .deps/librrd_th_la-rrd_thread_safe.Tpo -c rrd_thread_safe.c  -fPIC -
> DPIC -o .libs/librrd_th_la-rrd_thread_safe.o
> libtool: link: cannot find the library `librrd.la'
> make[2]: *** [rrdtool] Error 1
> make[2]: *** Waiting for unfinished jobs....
> Commenting "%{__make} %{?_smp_mflags}" in rrdtool.spec does allow to 
> generate the rpms. OK the macro seems just relevant to building, so it 
> shouldn't be a real problem. Thought I'd send to the list anyway, 
> perhaps someone stumbles over the same problem.
> Best regards and keep the great work!

I bet the problem is that in your case the macro _smp_mflags is set to

	-j X

with X > 1, and this triggers a problem with parallel building using make.
So there is a real problem with rrdtool in the sense that it doesn't build 
with -j X (with X > 1).

But you can avoid this problem by setting _smp_mflags to "-j 1". You can 

	rpmbuild -ba --define "_smp_mflags -j 1" rrdtool.spec

And I hope the developers can fix the issue.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list