tim-janik / rapicorn

Rapicorn is a toolkit for declarative UI construction and SVG-based theming
https://rapicorn.testbit.org/
Mozilla Public License 2.0
12 stars 2 forks source link

rapicorn-13.0.7: quicktimer.cc:30: undefined reference to `timer_settime' #2

Closed domichel closed 9 years ago

domichel commented 11 years ago

On gentoo ~amd64, rapicorn fail to configure when libpng is installed. The configure script check only for libpng 1.2 and 1.3, but I have 1.6 into my system.

After changing the libpng-1.3 check into a check for 1.6, it configure fine. But make fail:

Making all in tests make[3]: Entering directory /var/tmp/portage/dev-libs/rapicorn-13.07.0/work/rapicorn-13.07.0/rcore/tests' CXXLD testrcore1 ../../rcore/.libs/librapicorncore1307.a(quicktimer.o): In functionRapicorn1307::QuickTimer::toggle_timers(bool)': /var/tmp/portage/dev-libs/rapicorn-13.07.0/work/rapicorn-13.07.0/rcore/quicktimer.cc:30: undefined reference to timer_settime' ../../rcore/.libs/librapicorncore1307.a(quicktimer.o): In functionRapicorn1307::QuickTimer::init_timers()': /var/tmp/portage/dev-libs/rapicorn-13.07.0/work/rapicorn-13.07.0/rcore/quicktimer.cc:66: undefined reference to timer_create' /var/tmp/portage/dev-libs/rapicorn-13.07.0/work/rapicorn-13.07.0/rcore/quicktimer.cc:73: undefined reference totimer_delete' /var/tmp/portage/dev-libs/rapicorn-13.07.0/work/rapicorn-13.07.0/rcore/quicktimer.cc:64: undefined reference to `timer_create' collect2: error: ld returned 1 exit status make[3]: *\ [testrcore1] Error 1

alessio commented 11 years ago

The same in Debian unstable.

tim-janik commented 10 years ago

Here's a fix pending for upstream: diff --git configure.in configure.in index 6b57750..b7f338d 100644 --- configure.in +++ configure.in @@ -121,7 +121,7 @@ fi

== Compiler Flags ==

MC_EVAR_ADD(CFLAGS, -Werror=format-security, -Werror=format-security) MC_EVAR_ADD(CXXFLAGS, -Werror=format-security, -Werror=format-security) -MC_EVAR_ADD(CXXFLAGS, -std=gnu++0x, -std=gnu++0x -pthread) +MC_EVAR_ADD(CXXFLAGS, -std=gnu++0x, -std=gnu++0x -pthread -lrt)

dnl # RAPICORN_SUBST_COMPUTED_SYSVAL(IDENTIFIER, INCLUDES) - defines & AC_SUBST()s RAPICORNSYSVAL$1 AC_DEFUN([RAPICORN_SUBST_COMPUTED_SYSVAL],

tim-janik commented 9 years ago

Closing, issue was fixed in the last release.