gnupdf from bzr, rev 661 [email protected]

Preconditions:
clean tree
./bootstrap
./configure --prefix=/opt/gnupdf-svn
make

I get a compile time failure building 
torture/unit/base/time/pdf-time-span-destroy.c:

gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../lib -I../../src -I../../src/base 
-I../../src/object -I../../torture/tortutils 
-DTEST_DATA_PATH=\"../../torture/testdata\"   -g -g -O2 -MT 
pdf-time-span-destroy.o -MD -MP -MF .deps/pdf-time-span-destroy.Tpo -c -o 
pdf-time-span-destroy.o 
`test -f 'base/time/pdf-time-span-destroy.c' || echo 
'./'`base/time/pdf-time-span-destroy.c                                          
      
base/time/pdf-time-span-destroy.c: In function 'pdf_time_span_destroy_001':     
                                                            
base/time/pdf-time-span-destroy.c:51: error: incompatible type for argument 1 
of 'memcmp'                                                   
base/time/pdf-time-span-destroy.c:51: error: incompatible type for argument 2 
of 'memcmp'                                                   
make[2]: *** [pdf-time-span-destroy.o] Error 1

The relevant line is this one:
fail_unless(memcmp(sec, sec2, sizeof(pdf_i64_t)) == 0);

sec and sec2 are defined as:
  pdf_i64_t sec;
  pdf_i64_t sec2;

I'm not yet an authorised contributor, so I won't provide a patch. However 
perhaps
you wanted to pass the address instead?

Brad



Reply via email to