boost/cstdint.hpp:121: error

2004-05-30 Thread Rob Lahaye
My make of up-to-date LyX-CVS ends with: In file included from ../../../../boost/boost/regex/config.hpp:54, from cpp_regex_traits.cpp:22: ../../../../boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in type `long' gmake[4]: *** [cpp_regex_traits.lo] Error 1

Re: boost/cstdint.hpp:121: error

2004-05-31 Thread John Levon
On Mon, May 31, 2004 at 11:00:13AM +0900, Rob Lahaye wrote: > My make of up-to-date LyX-CVS ends with: Me too (well, something similar) gcc 3.5.0cvs Didn't spot the problem immediately john

Re: boost/cstdint.hpp:121: error

2004-06-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Mon, May 31, 2004 at 11:00:13AM +0900, Rob Lahaye wrote: > >> My make of up-to-date LyX-CVS ends with: > | Me too (well, something similar) gcc 3.5.0cvs I don't get either. g++ --version g++ (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1) g++ --version g

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Rob Lahaye
Lars Gullik Bjønnes wrote: John Levon <[EMAIL PROTECTED]> writes: | On Mon, May 31, 2004 at 11:00:13AM +0900, Rob Lahaye wrote: My make of up-to-date LyX-CVS ends with: | Me too (well, something similar) gcc 3.5.0cvs I don't get either. I need this, to successfully compile CVS: Index: boost/boost/

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> John Levon <[EMAIL PROTECTED]> writes: >> | On Mon, May 31, 2004 at 11:00:13AM +0900, Rob Lahaye wrote: >> My make of up-to-date LyX-CVS ends with: >>> >> | Me too (well, something similar) gcc 3.5.0cvs >> I don't get eithe

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Rob Lahaye
-g -O -fno-exceptions -W -Wall -c cpp_regex_traits.cpp -MT cpp_regex_traits.lo -MD -MP -MF .deps/cpp_regex_traits.TPlo -o cpp_regex_traits.o In file included from ../../../../boost/boost/regex/config.hpp:54, from cpp_regex_traits.cpp:22: ../../../../boost/boost/cstdint.hpp:121: e

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
config.hpp:54, | from cpp_regex_traits.cpp:22: | ../../../../boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in | type `long' | gmake[4]: *** [cpp_regex_traits.lo] Error 1 > | - > | FreeBSD 4.10-STABLE i386 | GCC 3.3.4 20040505 (prerelease) [

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Rob Lahaye
boost/boost/regex/config.hpp:54, | from cpp_regex_traits.cpp:22: | ../../../../boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in | type `long' | gmake[4]: *** [cpp_regex_traits.lo] Error 1 | - | FreeBSD 4.10-STABLE i386 | GCC 3.3.4 20040505 (prere

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: >> Ok, it must be FreeBSD that is the "problem" >> Is uintmax_t a macro? Or uint32_t? >> Has on FreeBSD changed recently? >> (upgraded libc perhaps?) >> What is uintmax_t/uint32_t typdeffed/defined as in > | This is what I get: | $ grep -n uintmax_t /usr/in

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 12:56:24PM +0200, Lars Gullik Bj?nnes wrote: > Ok, it must be FreeBSD that is the "problem" No, I have recently started seeing a very similar problem on Linux. /usr/local/gcc-cvs/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost -I/usr/X11R6/include "

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 12:56:24PM +0200, Lars Gullik Bj?nnes wrote: > >> Ok, it must be FreeBSD that is the "problem" > | No, I have recently started seeing a very similar problem on Linux. Completely different you mean... > | /usr/local/gcc-cvs/bin/g++

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 03:37:52PM +0200, Lars Gullik Bj?nnes wrote: > Sure it did. Or do you have a goblin in your box? > (you installed gcc 3.5 right? But I don't see these errors with 3.5...) I previously compiled CVS lyx fine with the same GCC version. A cvs update then caused it to fail. >

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 03:37:52PM +0200, Lars Gullik Bj?nnes wrote: > >> Sure it did. Or do you have a goblin in your box? >> (you installed gcc 3.5 right? But I don't see these errors with 3.5...) > | I previously compiled CVS lyx fine with the same GCC v

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 04:12:14PM +0200, Lars Gullik Bj?nnes wrote: > of gcc or lyx? lyx > nothing in lyx/boost changed... automake/autoconf differences? I haven't changed versions of that. > Your is some syntax problem, the one on FreeBSD is redefinition of a > type. Either way, I can't do

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 04:12:14PM +0200, Lars Gullik Bj?nnes wrote: > >> of gcc or lyx? > | lyx > >> nothing in lyx/boost changed... automake/autoconf differences? > | I haven't changed versions of that. > >> Your is some syntax problem, the one on FreeBSD

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 05:19:50PM +0200, Lars Gullik Bj?nnes wrote: > How can I help when you clam up on the info I need! What info do you want? john

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 05:19:50PM +0200, Lars Gullik Bj?nnes wrote: > >> How can I help when you clam up on the info I need! > | What info do you want? Tell me everything. But something _must_ have change I can't belive that it is lyx (sure it could be .

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 06:35:15PM +0200, Lars Gullik Bj?nnes wrote: > But something _must_ have change I can't belive that it is lyx (sure > it could be ...) Nothing's changed, honest. No RPMs have been updated. GCC 3.5 is the one that previously compiled lyx successfully. LyX is CVS up to date.

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 06:35:15PM +0200, Lars Gullik Bj?nnes wrote: > >> But something _must_ have change I can't belive that it is lyx (sure >> it could be ...) > | Nothing's changed, honest. No RPMs have been updated. GCC 3.5 is the one | that previously

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 06:48:07PM +0200, Lars Gullik Bj?nnes wrote: > How updated are your 3.5? Very. The problem is that the gettext.m4 changes are doing: typedef int ptrdiff_t into config.h. However, the check is going wrong because of course ptrdiff_t is defined fine on my system, so you e

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 06:48:07PM +0200, Lars Gullik Bj?nnes wrote: > >> How updated are your 3.5? > | Very. The problem is that the gettext.m4 changes are doing: > | typedef int ptrdiff_t > | into config.h. However, the check is going wrong because of cou

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | I do this: > | #!/bin/bash > | export PATH=/opt/gcc-head/bin:$PATH | export LD_LIBRARY_PATH=/opt/gcc-head/lib > | exec bash -i > | Does that make a difference? (change to fit of course) > | Do you have any clues why configure thinks your ptrdiff_t

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Wed, Jun 02, 2004 at 08:46:51PM +0200, Lars Gullik Bj?nnes wrote: > I can only find ptrdiff_t in linux/types.h and in > /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/stddef.h > (which leads me to suspect your way of calling the compiler...) > > It seems that STDC_HEADERS is undefined with y

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Jun 02, 2004 at 08:46:51PM +0200, Lars Gullik Bj?nnes wrote: > >> I can only find ptrdiff_t in linux/types.h and in >> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include/stddef.h >> (which leads me to suspect your way of calling the compiler...) >> >

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread John Levon
On Thu, Jun 03, 2004 at 12:31:01AM +0200, Lars Gullik Bj?nnes wrote: > Ha! I win! I gracefully concede (this one). But only because I appear to have burnt my nose. john

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Rob Lahaye
st/cstdint.hpp:118: error: syntax error before `;' token ../../../../boost/boost/cstdint.hpp:121: error: syntax error before `unsigned' gmake[4]: *** [cpp_regex_traits.lo] Error 1 [.and many more error lines, related to above error] What else can I do, to clarify this problem? Regards, Rob.

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> Rob Lahaye <[EMAIL PROTECTED]> writes: >> Ok, it must be FreeBSD that is the "problem" Is uintmax_t a macro? Or uint32_t? Has on FreeBSD changed recently? (upgraded libc perhaps?) What is uintmax_t/uint32_t

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Rob Lahaye
Lars Gullik Bjønnes wrote: Rob Lahaye <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: Rob Lahaye <[EMAIL PROTECTED]> writes: | I have these results: | 1) Everything compiles like a charm, when I comment out in | boost/boost/cstdint.hpp this line | // typedef uint64_t uintmax_t;

Re: boost/cstdint.hpp:121: error

2004-06-02 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: | All I can find, is this in /usr/include/machine/ansi.h: > |#ifdef __GNUC__ |typedef int __attribute__((__mode__(__DI__)))__int64_t; |typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; |#else |/* LONGLONG */ |

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
| Does that ring a bell? Unfortunately not. We should perhaps try to find a reduced testcase that also fails. --- #include int main() { } --- Is that enouthg to trigger it? put the file in a lyx topdir and compile with g++ -W -Wall -Iboost -c -o test.o test.C $ cd $ cat test.C #include int ma

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: >>> >> | Does that ring a bell? >> Unfortunately not. >> We should perhaps try to find a reduced testcase that also fails. >> --- >> #include >> int main() { >> } >> --- >> Is that enouthg to trigger it? >> put the file in a lyx topdir and compile with g++ -

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
-DBOOST_USER_CONFIG=" -g -O -fno-exceptions -W -Wall -c cpp_regex_traits.cpp -MT cpp_regex_traits.lo -MD -MP -MF .deps/cpp_regex_traits.TPlo -o cpp_regex_traits.o In file included from ../../../../boost/boost/regex/config.hpp:54, from cpp_regex_traits.cpp:22: ../../../../boost/boost

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Lars Gullik Bjønnes
_CONFIG_H -I. -I. -I../../../../src -I../../../../boost -I/opt/include -I/usr/local/include -I/usr/X11R6/include "-DBOOST_USER_CONFIG=" -g -O -fno-exceptions -W -Wall -c cpp_regex_traits.cpp -MT cpp_regex_traits.lo -MD -MP -MF .deps/cpp_regex_traits.TPlo -o cpp_regex_traits.o | In file

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
Lars Gullik Bjønnes: So it is some combination of headers that cause this. Please try this: $ cat test.C ; g++ -W -Wall -Iboost -c -o test.o test.C # include # include # include # include # include # include # include # include # include # include # include # include # incl

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Lars Gullik Bjønnes
Rob Lahaye <[EMAIL PROTECTED]> writes: | Again, no problem. What else can I do? I feel a bit lost now... -- Lgb

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Rob Lahaye <[EMAIL PROTECTED]> writes: > > | Again, no problem. What else can I do? > > I feel a bit lost now... Rob, I take it that this fails to compile: #include int main() { return 0; } Compile with a suitably modified $ g++ -I/boost -o trial trial.C -- Ang

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
Angus Leeming: Lars Gullik Bjønnes wrote: Rob Lahaye <[EMAIL PROTECTED]> writes: | Again, no problem. What else can I do? I feel a bit lost now... Rob, I take it that this fails to compile: Nah, also no problem: $ cat test.C ; g++33 -Iboost -o test.o test.C #include int main() { return 0; } $ And

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
from boost/boost/regex/config.hpp:54, from test.C:1: boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in type `long' - *HOWEVER*: when I remove -DBOOST_USER_CONFIG="" from this line, it compiles without error!!! Does that r

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Rob Lahaye wrote: >> Rob, I take it that this fails to compile: > > Nah, also no problem: > > $ cat test.C ; g++33 -Iboost -o test.o test.C > #include > int main() { return 0; } So what happens if you #include *all* the system headers of cpp_regex_traits.cpp #include #include #include #in

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
t/libs/regex/src -Isrc -Iboost \ > -I/usr/local/include -I/usr/X11R6/include > -DBOOST_USER_CONFIG="" \ -fno-exceptions -W -Wall -c > -o test.lo test.C > In file included from boost/boost/regex/config.hpp:54, > from test.C:1: > boost/boost/cs

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
-Iboost -I/usr/local/include \ -I/usr/X11R6/include -DBOOST_USER_CONFIG="" -fno-exceptions -W -Wall \ -c -o test.lo test.C In file included from boost/boost/regex/config.hpp:54, from test.C:1: boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Rob Lahaye wrote: So what now happens if you reduce your test case to the more minimal #include int main { return 0; } where you compile with your 'lyx-style' command line invocation of g++? Incidentally, Lars, if we pass -DBOOST_USER_CONFIG="", why do we add it to also? > #define BOOST_USER

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Rob Lahaye wrote: > | So what now happens if you reduce your test case to the more minimal > | #include | int main { return 0; } > | where you compile with your 'lyx-style' command line invocation of g++? > | Incidentally, Lars, if we pass -DBOOST_USER_

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
boost/libs/regex/src -Isrc -Iboost \ -I/usr/local/include -I/usr/X11R6/include -DBOOST_USER_CONFIG="" \ -fno-exceptions -W -Wall -c -o test.lo test.C In file included from test.C:1: boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in type `long' Once again: remov

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Rob Lahaye wrote: > Once again: removing -DBOOST_USER_CONFIG="" from the > compile line above, solves the problem. > Does that bring us any closer? Sure. Something in is messing up the (quite small) You should try and isolate the #define that is screwing things up. As a preliminary guess,

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
Angus Leeming wrote: Rob Lahaye wrote: Once again: removing -DBOOST_USER_CONFIG="" from the compile line above, solves the problem. Does that bring us any closer? Sure. Something in is messing up the (quite small) You should try and isolate the #define that is screwing things up. As a prel

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Rob Lahaye wrote: > Hmmm, don't think I get it. I thought, there's a line in > src/config.h that's causing trouble. Started deleting lines in > src/config.h, but then ended up deleting all lines in that file and > still getting the same error > > So where am I supposed to look for this? > > A

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
Angus Leeming wrote: Rob Lahaye wrote: Hmmm, don't think I get it. I thought, there's a line in src/config.h that's causing trouble. Started deleting lines in src/config.h, but then ended up deleting all lines in that file and still getting the same error So where am I supposed to look for this

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Angus Leeming
Rob Lahaye wrote: >> #include >> #include >> int main() { return 0; } >> >> If you can do that without triggering the error, then I'm baffled. >> >> If you can't, then it makes sense to try and isolate the actual >> #define that is causing the error. > > Surprise surprise. I have these lines

Re: boost/cstdint.hpp:121: error

2004-06-03 Thread Rob Lahaye
uintmax_t unsigned long long #include int main () { return 0; } $ g++33 -DHAVE_CONFIG_H -Iboost/libs/regex/src -Isrc -Iboost \ -I/usr/local/include -I/usr/X11R6/include -fno-exceptions \ -W -Wall -c -o test.lo test.C In file included from test.C:2: boost/boost/cstdint.hpp:121: error: redeclar

Re: boost/cstdint.hpp:121: error

2004-06-04 Thread Angus Leeming
nclude -I/usr/X11R6/include -fno-exceptions \ > -W -Wall -c -o test.lo test.C > In file included from test.C:2: > boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in > type `long' Ok, so the problem is that you have a 'uintmax_t' variable defined on your