What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
I copied all library files from .libs to my directory of libiks after
I compiling the source code of iksemel-1.4.tar.gz.
And then when I compile the codes like this:
gcc -g test.c sax.c utility.c ikstack.c -o test -L/opt/myp/libiks
It came out with a lot of warnings such as follows:
test.c: In function ‘main’:
test.c:56: warning: passing argument 3 of ‘iks_sax_new’ from incompatible
pointer type
sax.c: In function ‘iks_sax_new’:
sax.c:83: warning: incompatible implicit declaration of built-in function
‘memset’
sax.c: In function ‘iks_sax_extend’:
sax.c:97: warning: incompatible implicit declaration of built-in function
‘memset’
sax.c: In function ‘stack_expand’:
sax.c:159: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c: In function ‘sax_core’:
sax.c:311: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:320: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:327: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:367: warning: incompatible implicit declaration of built-in function
‘memset’
sax.c:375: warning: incompatible implicit declaration of built-in function
‘memset’
sax.c:376: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:389: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:396: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:438: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:450: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c:619: warning: incompatible implicit declaration of built-in function
‘memcpy’
sax.c: In function ‘iks_parse’:
sax.c:631: warning: incompatible implicit declaration of built-in function
‘strlen’
utility.c: In function ‘iks_malloc’:
utility.c:21: warning: incompatible implicit declaration of built-in function
‘malloc’
at last I found may be a bug existed in common.h:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
I changed the first line to #ifndef HAVE_CONFIG_H
then the all warnings went away.
Sorry for my bad English. Best regards!
Original issue reported on code.google.com by sunnya...@gmail.com on 29 Aug 2012 at 4:24
Original issue reported on code.google.com by
sunnya...@gmail.com
on 29 Aug 2012 at 4:24