shared-mime-info in CVS broken

Jaime Chang jchang at idealcorp.com
Thu Apr 7 21:23:02 EEST 2005


On 04/07/05 13:36, Bastien Nocera wrote:

>On Thu, 2005-04-07 at 13:18 -0400, Jaime Chang wrote:
>  
>
>>I was installing a fresh CVS version of the shared-mime-info package and 
>>it complained during compilation:
>>
>>gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -Wstrict-prototypes 
>>-Wmissing-prototypes -Wwrite-strings -c update-mime-database.c
>>update-mime-database.c:11:18: glib.h: No such file or directory
>>update-mime-database.c:14:27: libxml/parser.h: No such file or directory
>>update-mime-database.c:15:25: libxml/tree.h: No such file or directory
>>
>>Does anybody has a patch for this issue?
>>    
>>
>
>Install glib 2.x and libxml2 and their devel packages.
>

Yes, I have them installed. This is a compilation example from 
shared-mime-info version 0.15

/if gcc -DHAVE_CONFIG_H -I. -I. -I.     -I/usr/include/libxml2 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -MT 
update-mime-database.o -MD.deps/update-mime-database.Tpo" -c -o 
update-mime-database.o update-mime-database.c; \
then mv -f ".deps/update-mime-database.Tpo" 
".deps/update-mime-database.Po"; else rm -f 
".deps/update-mime-database.Tpo"; exit 1; fi
gcc  -I/usr/include/libxml2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include    -lxml2 -lpthread -lz -lm -lglib-2.0   -o 
update-mime-database  ue-database.o/

if I use the above make statement to compile the CVS version, the 
compilation will succeed.

I can see that the update_mime_database_CFLAGS variable is not added to 
the COMPILE line

/update_mime_database_CFLAGS// = $(ALL_CFLAGS)//
...
...
CFLAGS = -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wwrite-strings
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) 
$(AM_CFLAGS)  $(CFLAGS)/

I added the variable and it compiled fine

Regards,

Jimmy



More information about the xdg mailing list