build error: 'timestamp_to_seconds' was not declared


#1

node_add.lo -MD -MP -MF .deps/libsynfig_la-valuenode_add.Tpo -c valuenode_add.cpp -fPIC -DPIC -o .libs/libsynfig_la-valuenode_add.o In file included from renddesc.h:33:0, from target.h:37, from target_tile.h:31, from target_tile.cpp:33: color.h: In function 'unsigned char* synfig::Color2PixelFormat(const synfig::Color&, const synfig::PixelFormat&, unsigned char*, const synfig::Gamma&)': color.h:782:11: warning: value computed is not used [-Wunused-value] color.h:791:11: warning: value computed is not used [-Wunused-value] In file included from /home/jcome/Apps/Synfig/include/ETL/clock:67:0, from target_tile.cpp:40: /home/jcome/Apps/Synfig/include/ETL/_clock_base.h: In instantiation of 'etl::clock_base<DESC>::value_type etl::clock_base<DESC>::operator()() const [with DESC = etl::clock_desc_gettimeofday; etl::clock_base<DESC>::value_type = double]': target_tile.cpp:173:31: required from here /home/jcome/Apps/Synfig/include/ETL/_clock_base.h:77:60: error: 'timestamp_to_seconds' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] /home/jcome/Apps/Synfig/include/ETL/_clock_base.h:77:60: note: declarations in dependent base 'etl::clock_desc_gettimeofday' are not found by unqualified lookup /home/jcome/Apps/Synfig/include/ETL/_clock_base.h:77:60: note: use 'this->timestamp_to_seconds' instead make[2]: *** [libsynfig_la-target_tile.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from paramdesc.h:32:0, from valuenode.h:43, from valuenode_add.h:32, from valuenode_add.cpp:35: color.h: In function 'unsigned char* synfig::Color2PixelFormat(const synfig::Color&, const synfig::PixelFormat&, unsigned char*, const synfig::Gamma&)': color.h:782:11: warning: value computed is not used [-Wunused-value] color.h:791:11: warning: value computed is not used [-Wunused-value] mv -f .deps/libsynfig_la-valuenode_add.Tpo .deps/libsynfig_la-valuenode_add.Plo make[2]: Leaving directory `/home/jcome/Source/synfig/synfig-core/src/synfig' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/jcome/Source/synfig/synfig-core/src' make: *** [install-recursive] Error 1 [jcome@cmy Source]$

SRC: pure master branch.
OS: fedora 17


#2

Does this->timestamp_to_seconds fix the problem?
-G


#3

seems like a distrubution relavent issue. on F16, there is no issue like that. F17 is a huge change (the file system structure for example).


#4

This is due to the fact that you are using the clang compiler, which is pickier than gcc. (it might call itself gcc, but it is clang
:slight_smile:

This post provides a patch to fix the problem (that is seen also on macosx because of clang).

I kindly ask the synfig developers to incorporate the patch :slight_smile:


#5

Hi pupazzo,
please post the patch on sourceforge patch tracker. We would like to have register of all the patches and the authors at the sourceforge tracker.
We’ll take care of it as soon as possible.
Thanks!!!
-G


#6

applied your patches, and now, get another error as below

t remake target `libsynfig_la-valuenode_blinecalcvertex.lo'.
libtool: compile:  /usr/bin/ccache /usr/bin/g++ -DHAVE_CONFIG_H -I../.. -I../../src -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/jcome/apps/synfig/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -DSYNFIG_NO_DEPRECATED -DLOCALEDIR=\"/home/jcome/apps/synfig/share/locale\" -DLIBDIR=\"/home/jcome/apps/synfig/lib\" -DSYSCONFDIR=\"/home/jcome/apps/synfig/etc\" -D_DEBUG -g -O0 -W -Wall -MT libsynfig_la-valuenode_blinecalctangent.lo -MD -MP -MF .deps/libsynfig_la-valuenode_blinecalctangent.Tpo -c valuenode_blinecalctangent.cpp  -fPIC -DPIC -o .libs/libsynfig_la-valuenode_blinecalctangent.o
In file included from paramdesc.h:32:0,
                 from valuenode.h:43,
                 from valuenode_bline.h:35,
                 from valuenode_bline.cpp:34:
color.h: In function 'unsigned char* synfig::Color2PixelFormat(const synfig::Color&, const synfig::PixelFormat&, unsigned char*, const synfig::Gamma&)':
color.h:782:11: warning: value computed is not used [-Wunused-value]
color.h:791:11: warning: value computed is not used [-Wunused-value]
In file included from /home/jcome/apps/synfig/include/ETL/bezier:32:0,
                 from vector.h:204,
                 from valuenode.h:32,
                 from valuenode_bline.h:35,
                 from valuenode_bline.cpp:34:
/home/jcome/apps/synfig/include/ETL/_bezier.h: In instantiation of 'etl::bezier<V, T>::distance_type etl::bezier<V, T>::find_distance(etl::bezier<V, T>::time_type, etl::bezier<V, T>::time_type, int) const [with V = synfig::Vector; T = float; etl::bezier<V, T>::distance_type = float; etl::bezier<V, T>::time_type = float]':
valuenode_bline.cpp:335:53:   required from here
/home/jcome/apps/synfig/include/ETL/_bezier.h:582:32: error: 'operator()' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/jcome/apps/synfig/include/ETL/_bezier.h:582:32: note: declarations in dependent base 'etl::bezier_base<synfig::Vector, float>' are not found by unqualified lookup
/home/jcome/apps/synfig/include/ETL/_bezier.h:582:32: note: use 'this->operator()' instead
/home/jcome/apps/synfig/include/ETL/_bezier.h:586:36: error: 'operator()' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/jcome/apps/synfig/include/ETL/_bezier.h:586:36: note: declarations in dependent base 'etl::bezier_base<synfig::Vector, float>' are not found by unqualified lookup
/home/jcome/apps/synfig/include/ETL/_bezier.h:586:36: note: use 'this->operator()' instead
/home/jcome/apps/synfig/include/ETL/_bezier.h:590:3: error: 'operator()' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/jcome/apps/synfig/include/ETL/_bezier.h:590:3: note: declarations in dependent base 'etl::bezier_base<synfig::Vector, float>' are not found by unqualified lookup
/home/jcome/apps/synfig/include/ETL/_bezier.h:590:3: note: use 'this->operator()' instead
make[2]: *** [libsynfig_la-valuenode_bline.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from paramdesc.h:32:0,
                 from valuenode.h:43,
                 from valuenode_blinecalctangent.h:32,
                 from valuenode_blinecalctangent.cpp:34:
color.h: In function 'unsigned char* synfig::Color2PixelFormat(const synfig::Color&, const synfig::PixelFormat&, unsigned char*, const synfig::Gamma&)':
color.h:782:11: warning: value computed is not used [-Wunused-value]
color.h:791:11: warning: value computed is not used [-Wunused-value]
mv -f .deps/libsynfig_la-valuenode_blinecalctangent.Tpo .deps/libsynfig_la-valuenode_blinecalctangent.Plo
make[2]: Leaving directory `/home/jcome/src/synfig/synfig-core/src/synfig'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/jcome/src/synfig/synfig-core/src'
make: *** [install-recursive] Error 1
bash-4.2$ 

#7

Hello!
I’m giving clang a try too and it’s pointing out many additional “errors”.
This fixes are included in 2 fixes present in the patch tracker by user htodd.
I’ll create a branch to fix all those small errors and annoying warnings (gcc also gives some of them, but clang does it in a more fancy way :slight_smile:).

Thank you!


#8

Both necessary patches are applied in branch eldruin_clang_fixes.
It compiles and executes succesfully using the clang compiler.

Please try again compiling that branch.


#9

Thanks eldruin, I will pull this branch and test later today.


#10

It works fine on Fedora17 now.