Compiling with MinGW under MSYS

View: New views
4 Messages — Rating Filter:   Alert me  

Compiling with MinGW under MSYS

by Brecht Sanders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I just tried to compile both new releases (4.05 and 4.1.3) and both fail
with the output below.
I'm on the official MinGW 4.4.0.
The errors mention missing files, but the names of these files are
identical for both libgda 4.05 and 4.1.3.
Any idea what is happening?
Regards
    Brecht Sanders

libtool: compile:  gcc "-DPACKAGE_NAME=\"GNU Data Access\""
-DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"4.0.5\"
"-DPACKAGE_STRING=\"GNU Data Access 4.0.5\""
-DPACKAGE_BUGREPORT=\"gnome-db-list@...\" -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
-DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSTDC_HEADERS=1
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DGETTEXT_PACKAGE=\"libgda-4.0\"
-DHAVE_LOCALE_H=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1
-DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DUSING_MINGW=1 -DHAVE_MYSQL=1
-DHAVE_POSTGRES=1 -DHAVE_FIREBIRD=1 -DHAVE_LDAP=1 -DHAVE_LIBSOUP=1
-DHAVE_READLINE=1 -DHAVE_HISTORY=1 -I. -I. -I../.. -I../../libgda
-I../.. -mms-bitfields -I/mingw/include/glib-2.0
-I/mingw/lib/glib-2.0/include -I/mingw/include/libxml2 -I/mingw/include
-DLIBGDA_ABI_NAME=\"libgda-4.0\" -I/mingw/include/mysql -D_WINDOWS /MT
/Zi /O2 /Ob1 /D NDEBUG -DDBUG_OFF /wd4996 -DLIBGDA_WIN32
-I/mingw/include/glib-2.0 -I/mingw/include/mysql -I/mingw/include/oracle
-Duint=guint -MT gda-mysql-blob-op.lo -MD -MP -MF
.deps/gda-mysql-blob-op.Tpo -c gda-mysql-blob-op.c  -DDLL_EXPORT -DPIC
-o .libs/gda-mysql-blob-op.o
gcc.exe: D:/Prog/MinGW-mSys/MT: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/Zi: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/O2: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/Ob1: No such file or directory
gcc.exe: NDEBUG: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/wd4996: No such file or directory
make[2]: *** [gda-mysql-ddl.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc.exe: D:/Prog/MinGW-mSys/MT: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/Zi: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/O2: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/Ob1: No such file or directory
gcc.exe: NDEBUG: No such file or directory
gcc.exe: D:/Prog/MinGW-mSys/wd4996: No such file or directory
make[2]: *** [gda-mysql-blob-op.lo] Error 1
make[2]: Leaving directory `/home/win32/libgda-4.0.5/providers/mysql'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/win32/libgda-4.0.5/providers'
make: *** [install-recursive] Error 1

_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Re: Compiling with MinGW under MSYS

by Vivien Malerba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/12 Brecht Sanders <brecht@...>:
> Hi,
> I just tried to compile both new releases (4.05 and 4.1.3) and both fail
> with the output below.
> I'm on the official MinGW 4.4.0.
> The errors mention missing files, but the names of these files are identical
> for both libgda 4.05 and 4.1.3.
> Any idea what is happening?

I don't know. However it looks like all the reported missing files are
actually flags that are passed on the command line, so you can try
removing those flags, and then see why there are there (specially if
they are only present for the MySQL provider).

Vivien
_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Re: Compiling with MinGW under MSYS

by Brecht Sanders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,
I just tried to compile both new releases (4.05 and 4.1.3) and both fail
with the output below.
I'm on the official MinGW 4.4.0.
The errors mention missing files, but the names of these files are identical
for both libgda 4.05 and 4.1.3.
Any idea what is happening?
    

I don't know. However it looks like all the reported missing files are
actually flags that are passed on the command line, so you can try
removing those flags, and then see why there are there (specially if
they are only present for the MySQL provider).
  
You're right!
Whe I replace the line below in providers/mysql/Makefile:
    MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "/MT" "/Zi" "/O2" "/Ob1" "/D" "NDEBUG" "-DDBUG_OFF" "/wd4996"
with:
    MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "-DNDEBUG" "-DDBUG_OFF"
it does compile nicely.
Any idea why it uses these Windows-style parameters (using slash)?

Now I have linking problems though:
Creating library file: .libs/libgda-mysql.dll.a.libs/gda-mysql-parser.o:gda-mysql-parser.c:(.text+0xdf): undefined reference to `gda_lemon_mysql_parserTrace'



_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Re: Compiling with MinGW under MSYS

by Vivien Malerba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/12 Brecht Sanders <brecht@...>:

>
> Hi,
> I just tried to compile both new releases (4.05 and 4.1.3) and both fail
> with the output below.
> I'm on the official MinGW 4.4.0.
> The errors mention missing files, but the names of these files are identical
> for both libgda 4.05 and 4.1.3.
> Any idea what is happening?
>
>
> I don't know. However it looks like all the reported missing files are
> actually flags that are passed on the command line, so you can try
> removing those flags, and then see why there are there (specially if
> they are only present for the MySQL provider).
>
>
> You're right!
> Whe I replace the line below in providers/mysql/Makefile:
>     MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "/MT" "/Zi" "/O2"
> "/Ob1" "/D" "NDEBUG" "-DDBUG_OFF" "/wd4996"
> with:
>     MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "-DNDEBUG"
> "-DDBUG_OFF"
> it does compile nicely.
> Any idea why it uses these Windows-style parameters (using slash)?

No...

>
> Now I have linking problems though:
> Creating library file:
> .libs/libgda-mysql.dll.a.libs/gda-mysql-parser.o:gda-mysql-parser.c:(.text+0xdf):
> undefined reference to `gda_lemon_mysql_parserTrace'

This function is defined in the (automatically generated) parser.c
file in providers/mysql. Can you check the file not missing, and if
it's there that the mentionned function is present? If so, then can
you also check the parser.o file is there
and contains the symbol?

Vivien
_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list