Hi,
I tried compiling latest SVN with --enable-gnu-regex on an x86-64 system.
I only had time to look at the first few of them but the following errors seem to be due to casting between pointers and int but on x86-64 int is 32 bits and pointer is 64 bits so it isn't going to work :-(.
Cheers Lex
CC regex.o regex.c: In function ‘re_match_2’: regex.c:3769: warning: cast from pointer to integer of different size regex.c:3769: warning: cast from pointer to integer of different size regex.c:3775: warning: cast to pointer from integer of different size regex.c:3775: warning: cast to pointer from integer of different size regex.c:3922: warning: cast to pointer from integer of different size regex.c:3922: warning: cast to pointer from integer of different size regex.c:3975: warning: cast to pointer from integer of different size regex.c:3975: warning: cast to pointer from integer of different size regex.c:4081: warning: cast from pointer to integer of different size regex.c:4081: warning: cast from pointer to integer of different size regex.c:4114: warning: cast to pointer from integer of different size regex.c:4114: warning: cast to pointer from integer of different size regex.c:4127: warning: cast to pointer from integer of different size regex.c:4127: warning: cast to pointer from integer of different size regex.c:4295: warning: cast from pointer to integer of different size regex.c:4295: warning: cast from pointer to integer of different size
On Sun, Aug 15, 2010 at 06:01, Lex Trotman elextr@gmail.com wrote:
Hi,
I tried compiling latest SVN with --enable-gnu-regex on an x86-64 system.
I only had time to look at the first few of them but the following errors seem to be due to casting between pointers and int but on x86-64 int is 32 bits and pointer is 64 bits so it isn't going to work :-(.
The regex library shipped with geany is from 2002 (or earlier, I don't know) so it's pretty old. It would be best to upgrade to the latest one from glibc (or the one that ships with the latest ctags which appears to be from 2009).
By the way does geany have to provide its own copy of the regex library? Isn't it already required by glib or gtk? It's also probably available on every unix system, I'm just not sure in what environment geany is compiled under windows.
Cheers
Jiri
Cheers Lex
CC regex.o regex.c: In function ‘re_match_2’: regex.c:3769: warning: cast from pointer to integer of different size regex.c:3769: warning: cast from pointer to integer of different size regex.c:3775: warning: cast to pointer from integer of different size regex.c:3775: warning: cast to pointer from integer of different size regex.c:3922: warning: cast to pointer from integer of different size regex.c:3922: warning: cast to pointer from integer of different size regex.c:3975: warning: cast to pointer from integer of different size regex.c:3975: warning: cast to pointer from integer of different size regex.c:4081: warning: cast from pointer to integer of different size regex.c:4081: warning: cast from pointer to integer of different size regex.c:4114: warning: cast to pointer from integer of different size regex.c:4114: warning: cast to pointer from integer of different size regex.c:4127: warning: cast to pointer from integer of different size regex.c:4127: warning: cast to pointer from integer of different size regex.c:4295: warning: cast from pointer to integer of different size regex.c:4295: warning: cast from pointer to integer of different size _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Mon, 16 Aug 2010 14:54:54 +0200 Jiří Techet techet@gmail.com wrote:
I tried compiling latest SVN with --enable-gnu-regex on an x86-64 system.
I only had time to look at the first few of them but the following errors seem to be due to casting between pointers and int but on x86-64 int is 32 bits and pointer is 64 bits so it isn't going to work :-(.
The regex library shipped with geany is from 2002 (or earlier, I don't know) so it's pretty old. It would be best to upgrade to the latest one from glibc (or the one that ships with the latest ctags which appears to be from 2009).
I think it should be upgraded.
By the way does geany have to provide its own copy of the regex library? Isn't it already required by glib or gtk? It's also probably
I'm not sure whether our required version of GLib/GTK require system regex.
Also does having GLib/GTK development files installed always mean you also have the regex library headers installed?
available on every unix system, I'm just not sure in what environment geany is compiled under windows.
The shipped one is always used on Windows IIRC.
Regards, Nick
On 17 August 2010 02:10, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Mon, 16 Aug 2010 14:54:54 +0200 Jiří Techet techet@gmail.com wrote:
I tried compiling latest SVN with --enable-gnu-regex on an x86-64 system.
I only had time to look at the first few of them but the following errors seem to be due to casting between pointers and int but on x86-64 int is 32 bits and pointer is 64 bits so it isn't going to work :-(.
The regex library shipped with geany is from 2002 (or earlier, I don't know) so it's pretty old. It would be best to upgrade to the latest one from glibc (or the one that ships with the latest ctags which appears to be from 2009).
I think it should be upgraded.
By the way does geany have to provide its own copy of the regex library? Isn't it already required by glib or gtk? It's also probably
I'm not sure whether our required version of GLib/GTK require system regex.
Also does having GLib/GTK development files installed always mean you also have the regex library headers installed?
I tried to see if the Glib regex could be used instead and AFAICT Glib 2.14 or above has regex, but I can't tell what version of Glib Geany needs, the config only tests for GTK2.8 and I can't find anywhere which Glib it needs. Note Glib version not necessarily == GTK version, my system has GTK 2.17 and Glib 2.21.
Cheers Lex
available on every unix system, I'm just not sure in what environment geany is compiled under windows.
The shipped one is always used on Windows IIRC.
Regards, Nick _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Tue, 17 Aug 2010 10:26:18 +1000 Lex Trotman elextr@gmail.com wrote:
I tried to see if the Glib regex could be used instead and AFAICT Glib 2.14 or above has regex, but I can't tell what version of Glib Geany needs, the config only tests for GTK2.8 and I can't find anywhere which Glib it needs. Note Glib version not necessarily == GTK version, my system has GTK 2.17 and Glib 2.21.
Not sure but I know it's less than 2.14, I think 2.8.
Regards, Nick