[Monetdb-developers] Compile M4...
Dear developers,
I checkout buildtools and M4 to my machine at home. I am using Fedora Core 4. The version of M4 and the buildtools are the cvs head branch.
My gcc compiler is [Romulo@localhost MonetDB]$ gcc --version gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I done boostrap, configure, and make During the compilation I got this error:
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk -I../.. -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk -I../common -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/../common -DLIBGDK -Wall -W -std=c99 -g -Werror-implicit-function-declaration -Werror -Wno-unused-function -Wno-unused-label -D_REENTRANT -c -o libbat_la-gdk_system.lo `test -f 'gdk_system.c' || echo '/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/'`gdk_system.c gcc -DHAVE_CONFIG_H -I. -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk -I../.. -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk -I../common -I/home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/../common -DLIBGDK -Wall -W -std=c99 -g -Werror-implicit-function-declaration -Werror -Wno-unused-function -Wno-unused-label -D_REENTRANT -c gdk_system.c -fPIC -DPIC -o .libs/libbat_la-gdk_system.o cc1: warnings being treated as errors /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: missing initializer /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: (near initialization for 'MT_system_lock.__data.__count') make[5]: *** [libbat_la-gdk_system.lo] Error 1 make[5]: Leaving directory `/home/Romulo/scratch/MonetDB/monetdb4/build/src/gdk' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/Romulo/scratch/MonetDB/monetdb4/build/src/gdk' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/Romulo/scratch/MonetDB/monetdb4/build/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/Romulo/scratch/MonetDB/monetdb4/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Romulo/scratch/MonetDB/monetdb4/build' make: *** [all] Error 2 [Romulo@localhost MonetDB]$
I done the same procedures several times and I always got the same error.
Any idea what could be the problem?
Regards, Romulo
On 05-12-2006 20:34:51 +0100, Romulo Goncalves wrote:
cc1: warnings being treated as errors /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: missing initializer /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: (near initialization for 'MT_system_lock.__data.__count')
[snip]
I done the same procedures several times and I always got the same error.
Any idea what could be the problem?
I don't have the sources at hand now, but the sources around line 224 might give you a clue.
Fabian Groffen wrote:
On 05-12-2006 20:34:51 +0100, Romulo Goncalves wrote:
cc1: warnings being treated as errors /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: missing initializer /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: (near initialization for 'MT_system_lock.__data.__count')
[snip]
What does it means?
I done the same procedures several times and I always got the same error.
Any idea what could be the problem?
I don't have the sources at hand now, but the sources around line 224 might give you a clue.
Some lines above I found:
gdk_export MT_Lock MT_system_lock;
I do not have any clue.
Regards, Romulo
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On 05-12-2006 21:10:05 +0100, Romulo Goncalves wrote:
Fabian Groffen wrote:
On 05-12-2006 20:34:51 +0100, Romulo Goncalves wrote:
cc1: warnings being treated as errors /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: missing initializer /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: (near initialization for 'MT_system_lock.__data.__count')
[snip]
What does it means?
Well... I grabbed the source myself, and the line says this:
MT_Lock MT_system_lock = PTHREAD_MUTEX_INITIALIZER;
It says it misses some initialiser, so my first guess would be that PTHREAD_MUTEX_INITIALIZER is empty for you.
Some lines above I found:
gdk_export MT_Lock MT_system_lock;
I do not have any clue.
What does the following command for you?
% grep -A 2 PTHREAD_MUTEX_INITIALIZER /usr/include/pthread.h #define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, 0 } } #ifdef __USE_GNU
Fabian Groffen wrote:
On 05-12-2006 21:10:05 +0100, Romulo Goncalves wrote:
Fabian Groffen wrote:
On 05-12-2006 20:34:51 +0100, Romulo Goncalves wrote:
cc1: warnings being treated as errors /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: missing initializer /home/Romulo/MonetDB/MonetDB4/MonetDB/src/gdk/gdk_system.mx:224: warning: (near initialization for 'MT_system_lock.__data.__count')
[snip]
What does it means?
Well... I grabbed the source myself, and the line says this:
MT_Lock MT_system_lock = PTHREAD_MUTEX_INITIALIZER;
It says it misses some initialiser, so my first guess would be that PTHREAD_MUTEX_INITIALIZER is empty for you.
Some lines above I found:
gdk_export MT_Lock MT_system_lock;
I do not have any clue.
What does the following command for you?
% grep -A 2 PTHREAD_MUTEX_INITIALIZER /usr/include/pthread.h #define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, 0 } } #ifdef __USE_GNU
Nothing because I have: /* Mutex initializers. */ #define PTHREAD_MUTEX_INITIALIZER \ { { 0, } } #ifdef __USE_GNU
Is this the problem?
Regards, Romulo
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On 05-12-2006 21:36:04 +0100, Romulo Goncalves wrote:
% grep -A 2 PTHREAD_MUTEX_INITIALIZER /usr/include/pthread.h #define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, 0 } } #ifdef __USE_GNU
Nothing because I have: /* Mutex initializers. */ #define PTHREAD_MUTEX_INITIALIZER \ { { 0, } } #ifdef __USE_GNU
Is this the problem?
Yes, because that's what the error message is saying: it expects all members of the struct to be initialised. Your initialiser looks pretty weird to me with that trailing ','.
Fabian Groffen wrote:
On 05-12-2006 21:36:04 +0100, Romulo Goncalves wrote:
% grep -A 2 PTHREAD_MUTEX_INITIALIZER /usr/include/pthread.h #define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, 0 } } #ifdef __USE_GNU
Nothing because I have: /* Mutex initializers. */ #define PTHREAD_MUTEX_INITIALIZER \ { { 0, } } #ifdef __USE_GNU
Is this the problem?
Yes, because that's what the error message is saying: it expects all members of the struct to be initialised. Your initialiser looks pretty weird to me with that trailing ','.
Problem resolved with M4.
Now is M5. Remember to add `AC_PROG_LIBTOOL' to `configure.in'. You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. Putting files in AC_CONFIG_AUX_DIR, `conf'. aclocal:configure.in:21: warning: macro `AM_MONETDB_DEFAULTS' not found in library patching file aclocal.m4 Hunk #1 succeeded at 394 (offset -5992 lines). configure.in: installing `conf/install-sh' configure.in: installing `conf/missing' src/compiler/Makefile.am: installing `conf/compile' configure.in:21: error: possibly undefined macro: AM_MONETDB_DEFAULTS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. [Romulo@localhost MonetDB5]$
Any idea ?
Regards, Romulo
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On 05-12-2006 22:07:49 +0100, Romulo Goncalves wrote:
Problem resolved with M4.
How did you solve it?
Now is M5. Remember to add `AC_PROG_LIBTOOL' to `configure.in'. You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. Putting files in AC_CONFIG_AUX_DIR, `conf'. aclocal:configure.in:21: warning: macro `AM_MONETDB_DEFAULTS' not found in library patching file aclocal.m4 Hunk #1 succeeded at 394 (offset -5992 lines). configure.in: installing `conf/install-sh' configure.in: installing `conf/missing' src/compiler/Makefile.am: installing `conf/compile' configure.in:21: error: possibly undefined macro: AM_MONETDB_DEFAULTS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. [Romulo@localhost MonetDB5]$
Any idea ?
Most probably it can't find monet.m4 from M4.
Fabian Groffen wrote:
On 05-12-2006 22:07:49 +0100, Romulo Goncalves wrote:
Problem resolved with M4.
How did you solve it?
I changed the line by my self. It is a durty way, but it works.
Regards, Romulo
Now is M5. Remember to add `AC_PROG_LIBTOOL' to `configure.in'. You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. Putting files in AC_CONFIG_AUX_DIR, `conf'. aclocal:configure.in:21: warning: macro `AM_MONETDB_DEFAULTS' not found in library patching file aclocal.m4 Hunk #1 succeeded at 394 (offset -5992 lines). configure.in: installing `conf/install-sh' configure.in: installing `conf/missing' src/compiler/Makefile.am: installing `conf/compile' configure.in:21: error: possibly undefined macro: AM_MONETDB_DEFAULTS If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. [Romulo@localhost MonetDB5]$
Any idea ?
Most probably it can't find monet.m4 from M4.
Also resolved.
Regards, Romulo
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
participants (2)
-
Fabian Groffen
-
Romulo Goncalves