Hi,
Am 23.07.2010 16:57, schrieb august:
a colleague is trying to update the fink packages we made for the mac.
gavl can't compile and stops here:
-------------------
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include/gavl -I../include
-I../include/gavl -I../include -I/sw/include -D__GAVL__ -march=nocona
-mtune=nocona -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math -Wall
-Wmissing-declarations -Wdeclaration-after-statement -mfpmath=387
-fvisibility=hidden -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c
-fno-common -DPIC -o .libs/timer.o
timer.c: In function 'gavl_benchmark_get_time':
timer.c:129: error: 'GAVL_ACCEL_MMX' undeclared (first use in this
function)
timer.c:129: error: (Each undeclared identifier is reported only once
timer.c:129: error: for each function it appears in.)
timer.c: In function 'gavl_benchmark_get_desc':
timer.c:149: error: 'config_flags' undeclared (first use in this function)
timer.c:149: error: 'GAVL_ACCEL_MMX' undeclared (first use in this
function)
timer.c:158: error: syntax error before '}' token
timer.c:147: warning: unused variable 'x'
make[2]: *** [timer.lo] Error 1
------------------
any idea?
Could reproduce this after disabling clock_gettime() (which seems to be
absent on mac).
I can't see what is going on. GAVL_ACCEL_MMX is defined in gavl.h which
it should see, I think.
Seeing the header doesn't help if it's not #included by the C file :)
Attached patch (also in CVS) fixes the problems.
attached is his config.log
Pressing CTRL+C while configure runs is also not the best idea:
configure: caught signal 2
configure: exit 1
Burkhard
Index: gavl/timer.c
===================================================================
RCS file: /cvsroot/gmerlin/gavl/gavl/timer.c,v
retrieving revision 1.8
diff -r1.8 timer.c
33c33
< #include <gavltime.h>
---
> #include <gavl.h>
144c144
< const char * gavl_benchmark_get_desc(int flags)
---
> const char * gavl_benchmark_get_desc(int config_flags)
147d146
< uint64_t x;
156c155
< return "microseconds returned by gettimeofday"
---
> return "microseconds returned by gettimeofday";
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general