[gnome-db] gda-parameter-list.c:300: uint + mmap



Hi,
I am trying to compile libgda-2.99.2 for win32 using the mingw/msys
compiler environment.
I got pretty far into the compilation, but one of the pitfalls was this:

The file libgda/gda-parameter-list.c has the following on lines 300 and
304:
   gda_value_set_ushort (value, va_arg (ap, uint));
   g_value_set_uchar (value, va_arg (ap, uint));
I was able to get by this problem with a simple "-Duint=guint"
Apparently the uint type does not exist on my platform, but guint doe
and glib defines it simply as unsigned int.

The show stopper I am facing though is in libgda/gda-data-model-import.c
which uses sys/mman.h for memory mapped file access.
The win32 platform does not have this include file.
Is there any chance this code could be changed to be win32 compatible?
Regards
    Brecht Sanders

------------------------------------------------------------------------------------

make[1]: Entering directory `/c/temp/libgda-2.99.2/libgda'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"GNU\
Data\ Access\" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"2.99.2\"
-DPACKAGE_STRING=\"GNU\ Data\ Access\ 2.99.2\"
-DPACKAGE_BUGREPORT=\"gnome-db-list gnome org\"
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-3.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DGETTEXT_PACKAGE=\"libgda-3.0\" -DHAVE_LOCALE_H=1 -DHAVE_POSTGRES=1 -I.
-I.  -I.. -I.. -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include
-DLIBGDA_PLUGINDIR=\""/usr/local/lib/libgda-2.99/providers"\"
-DLIBGDA_LOCALEDIR=\""/usr/local/share/locale"\"
-DLIBGDA_GLOBAL_CONFIG_FILE=\""/usr/local/etc/libgda/config"\"
-DLIBGDA_GLOBAL_CONFIG_DIR=\""/usr/local/etc/libgda"\"
-DDTDINSTALLDIR=\""/usr/local/share/libgda/dtd"\"
-I/usr/local/include/glib-2.0 -DLIBGDA_WIN32 -MT gda-parameter-list.lo
-MD -MP -MF ".deps/gda-parameter-list.Tpo" -c -o gda-parameter-list.lo
gda-parameter-list.c; \
then mv -f ".deps/gda-parameter-list.Tpo"
".deps/gda-parameter-list.Plo"; else rm -f
".deps/gda-parameter-list.Tpo"; exit 1; fi
 gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\"
-DPACKAGE_VERSION=\"2.99.2\" "-DPACKAGE_STRING=\"GNU Data Access
2.99.2\"" -DPACKAGE_BUGREPORT=\"gnome-db-list gnome org\"
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-3.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DGETTEXT_PACKAGE=\"libgda-3.0\" -DHAVE_LOCALE_H=1 -DHAVE_POSTGRES=1 -I.
-I. -I.. -I.. -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include
-DLIBGDA_PLUGINDIR=\"/usr/local/lib/libgda-2.99/providers\"
-DLIBGDA_LOCALEDIR=\"/usr/local/share/locale\"
-DLIBGDA_GLOBAL_CONFIG_FILE=\"/usr/local/etc/libgda/config\"
-DLIBGDA_GLOBAL_CONFIG_DIR=\"/usr/local/etc/libgda\"
-DDTDINSTALLDIR=\"/usr/local/share/libgda/dtd\"
-I/usr/local/include/glib-2.0 -DLIBGDA_WIN32 -MT gda-parameter-list.lo
-MD -MP -MF .deps/gda-parameter-list.Tpo -c gda-parameter-list.c
-DDLL_EXPORT -DPIC -o .libs/gda-parameter-list.o
gda-parameter-list.c: In function `gda_parameter_list_new_inline':
gda-parameter-list.c:300: error: syntax error before "uint"
gda-parameter-list.c:300: error: `uint' undeclared (first use in this
function)
gda-parameter-list.c:300: error: (Each undeclared identifier is reported
only once
gda-parameter-list.c:300: error: for each function it appears in.)
make[1]: *** [gda-parameter-list.lo] Error 1
make[1]: Leaving directory `/c/temp/libgda-2.99.2/libgda'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------------------

 gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\"
-DPACKAGE_VERSION=\"2.99.2\" "-DPACKAGE_STRING=\"GNU Data Access
2.99.2\"" -DPACKAGE_BUGREPORT=\"gnome-db-list gnome org\"
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-3.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DGETTEXT_PACKAGE=\"libgda-3.0\" -DHAVE_LOCALE_H=1 -DHAVE_POSTGRES=1 -I.
-I. -I.. -I.. -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include
-DLIBGDA_PLUGINDIR=\"/usr/local/lib/libgda-2.99/providers\"
-DLIBGDA_LOCALEDIR=\"/usr/local/share/locale\"
-DLIBGDA_GLOBAL_CONFIG_FILE=\"/usr/local/etc/libgda/config\"
-DLIBGDA_GLOBAL_CONFIG_DIR=\"/usr/local/etc/libgda\"
-DDTDINSTALLDIR=\"/usr/local/share/libgda/dtd\"
-I/usr/local/include/glib-2.0 -DLIBGDA_WIN32 -Duint=guint -MT
gda-data-model-import.lo -MD -MP -MF .deps/gda-data-model-import.Tpo -c
gda-data-model-import.c  -DDLL_EXPORT -DPIC -o
.libs/gda-data-model-import.o
gda-data-model-import.c:25:22: sys/mman.h: No such file or directory
gda-data-model-import.c: In function
`gda_data_model_import_set_property':
gda-data-model-import.c:493: error: `PROT_READ' undeclared (first use in
this function)
gda-data-model-import.c:493: error: (Each undeclared identifier is
reported only once
gda-data-model-import.c:493: error: for each function it appears in.)
gda-data-model-import.c:493: error: `MAP_PRIVATE' undeclared (first use
in this function)
gda-data-model-import.c:494: warning: assignment makes pointer from
integer without a cast
gda-data-model-import.c:495: error: `MAP_FAILED' undeclared (first use
in this function)
make[2]: *** [gda-data-model-import.lo] Error 1
make[2]: Leaving directory `/c/temp/libgda-2.99.2/libgda'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/temp/libgda-2.99.2/libgda'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------------------






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]