Re: missing ;

2002-07-13 Thread Kornel Benko

-BEGIN PGP SIGNED MESSAGE-

I tried to build qt2, but failed:
My gcc-version is 2.95.3.

...
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../src/ 
-I../../../../src/frontends/ -I../../../../images -I./qt2 
-I../../../../src/frontends/xforms -I/usr/lib/qt2/include -I../../../../boost 
-I../../../../src/frontends/controllers -isystem /usr/X11R6/include -g -O 
-Wno-non-template-friend -W -Wall -c Tooltips.C -Wp,-MD,.deps/Tooltips.TPlo
echo timestamp  Tooltips.lo
make[5]: *** No rule to make target `xformsGImage.C', needed by `xformsGImage.lo'.  
Stop.
make[5]: Leaving directory 
`/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends/qt2/xforms'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends/qt2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src'
make: *** [all-recursive] Error 1
Exit 2
...

Kornel
- -- 
Kornel Benko
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQCVAwUBPS/RHLewfbDGmeqhAQGIVwQAuJeNWU5fI5vbveD71JatsvldraUFOLe2
udfjm0yUdkuUnQmwTM/EfBBptWvM0NtIlWkPPjWbN2/w1/ZGZo3RqZc5gyK9T313
0QBOawsZIccOlT08Et7ruLDUiwOGAc1pRZga5l9psnLv0/5RwToqoLwyi63bZsgo
YQM0PDk0X7g=
=FVaN
-END PGP SIGNATURE-




Re: missing ;

2002-07-13 Thread Edwin Leuven

 Again, please investigate further. What version of gcc-2.96 ? 

clean checkout, clean build, gcc-c++-2.96-110, suggestions are welcome.

Ed.

#0  0x4207ac55 in free () from /lib/i686/libc.so.6
#1  0x4057feb6 in __builtin_delete (ptr=0x8462db0) at ../../gcc/cp/new2.cc:-1
#2  0x080729b6 in boost::any::holderboost::function3void, int, int, 
mouse_button::state, boost::empty_function_policy, 
boost::empty_function_mixin, allocatorboost::function_base  ::~holder 
(this=0x8462db0, __in_chrg=3)
at ../../lyx-devel/boost/boost/signals/trackable.hpp:75
#3  0x0836ca7f in boost::signals::detail::signal_base_impl::connect_slot (
this=0x8461388, slot=@0xb310, name=@0xb320,
bound_objects=@0xb510)
at ../../../../../lyx-devel/boost/boost/any.hpp:40
#4  0x08070227 in boost::signal3void, int, int, mouse_button::state, 
boost::last_valuevoid, int, lessint, boost::function3void, int, int, 
mouse_button::state, boost::empty_function_policy, 
boost::empty_function_mixin, allocatorboost::function_base  ::connect 
(this=0x84610f8, in_slot=@0xb510)
at ../../lyx-devel/boost/boost/shared_ptr.hpp:199
#5  0x0805bb81 in BufferView::Pimpl::Pimpl (this=0x8460fc8, b=0x8460ec8,
o=0xb6f8, xpos=0, ypos=0, width=690, height=510)
at ../../lyx-devel/boost/boost/signals/slot.hpp:97
#6  0x080561fc in BufferView::BufferView (this=0x8460ec8, o=0xb6f8,
xpos=0, ypos=0, width=690, height=510)
at ../../lyx-devel/src/BufferView.C:26
#7  0x082c44ff in QtView::QtView (this=0xb680, width=690, height=510)
at ../../../../lyx-devel/boost/boost/scoped_ptr.hpp:49
#8  0x0829db2a in lyx_gui::start (batch=@0xb834, files=0xb7a0)
at ../../../../lyx-devel/src/frontends/qt2/lyx_gui.C:84
#9  0x0811b1a1 in LyX::LyX (this=0xb830, argc=@0xb870, 
argv=0xb8d4)
at /usr/include/g++-3/stl_vector.h:235
#10 0x0816c3bd in main (argc=1, argv=0xb8d4)
at ../../lyx-devel/src/main.C:31
#11 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6




Re: missing ;

2002-07-13 Thread John Levon

On Sat, Jul 13, 2002 at 09:04:54AM +0200, Kornel Benko wrote:

 I tried to build qt2, but failed:
 My gcc-version is 2.95.3.
 
 ...
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../src/ 
-I../../../../src/frontends/ -I../../../../images -I./qt2 
-I../../../../src/frontends/xforms -I/usr/lib/qt2/include -I../../../../boost 
-I../../../../src/frontends/controllers -isystem /usr/X11R6/include -g -O 
-Wno-non-template-friend -W -Wall -c Tooltips.C -Wp,-MD,.deps/Tooltips.TPlo
 echo timestamp  Tooltips.lo
 make[5]: *** No rule to make target `xformsGImage.C', needed by `xformsGImage.lo'.  
Stop.

touch frontends/qt2/xforms/Makefile.am

Don't ask me why this is needed.

john
-- 
Be sure of this, O young ambition, all mortal greatness is but disease. 
- Hermann Melville



Re: missing ;

2002-07-13 Thread John Levon

On Sat, Jul 13, 2002 at 03:19:38PM +0200, Edwin Leuven wrote:

 clean checkout, clean build, gcc-c++-2.96-110, suggestions are welcome.

You'll have to investigate further (gdb, try adding printfs in
BV::Pimpl::Pimpl etc. etc.)

 #4  0x08070227 in boost::signal3void, int, int, mouse_button::state, 
 boost::last_valuevoid, int, lessint, boost::function3void, int, int, 
 mouse_button::state, boost::empty_function_policy, 
 boost::empty_function_mixin, allocatorboost::function_base  ::connect 
 (this=0x84610f8, in_slot=@0xb510)

Maybe it is tripleClick ?? I don't know why it would fail.

john
-- 
Be sure of this, O young ambition, all mortal greatness is but disease. 
- Hermann Melville



FINISHED_UP/DOWN/...

2002-07-13 Thread Dekel Tsur

Why do we need FINISHED_UP et al. ?
These are used only when exiting an inset with a cursor key (namely LFUN_UP
et al. is called), so the direction is known according to the action.
So, why can't we have something like

   result = lockinginset-localDispatch(..,action,..);
   if (result==FINISHED) {
  if (action == LFUN_DOWN) {
 move down
  } else if (action == LFUN_UP) {
 move up
  } ...
  
  




Re: Warnings ; useful?

2002-07-13 Thread R. Lahaye

Jean-Marc Lasgouttes wrote:
 
  R == R Lahaye [EMAIL PROTECTED] writes:
 
 R Jean-Marc Lasgouttes wrote:
R == R Lahaye [EMAIL PROTECTED] writes:
 
 R Hi,
 
 R Below is a list of warnings I get during my compile. Is that
 R useful?
   Probably. What version of g++ is that? Are you sure you updated to
  latest cvs?
 
 R Yes, it's the latest CVS. I'm using g++ version 2.95.3.
 
 OK, I added the same option to remove the 'template friends' warning
 as for gcc 2.96. I hope it is implemented by this version :)
 
 Several of the other warnings should be gone now.

Not quite. LyX comiles fine, when using
  autoconf-2.53
  automake-1.5
  libtool-1.3.4_4

(I upgraded from FreeBSD 4.5 to 4.6)

However, I still get a few warning messages during autogen.sh and make:

= autogen.sh output =

$ ./autogen.sh 
Locating GNU m4... found: gm4
Generate acinclude.m4... done.
Building macros...
.
lib/reLyX
done.
Building config header template...
.
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
configure.in:5: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.in:353: warning: do not use m4_regexp: use regexp or m4_bregexp
autoheader: `src/config.h.in' is created
done.
Building Makefile templates...
.
src/Makefile.am:12: LIBS was set with `+=' and is now set with `='
src/frontends/Makefile.am:12: LIBS was set with `+=' and is now set with `='
lib/reLyX
done.
Building configure...
   .
   lib/reLyX
done.
Building lib/configure ... done.

run ./configure ; make


=== configure result ===

Configuration
  Host type:  i386-unknown-freebsd4.6
  Special build flags:warnings assertions
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (2.95.3)
  C++ Compiler flags: -g -O -Wno-non-template-friend -W -Wall
  Linker flags:   
  Frontend:   xforms
libXpm version:   4.11
libforms version: 1.0.0
  LyX binary dir: /opt/bin
  LyX files dir:  /opt/share/lyx


 make warnings 

/usr/local/bin/msgfmt: bg.po: warning: Charset windows-1251 is not a portable 
encoding name.
/usr/local/bin/msgfmt: he.po: warning: Charset unknown is not a portable encoding 
name.
GraphicsImageXPM.C:273: warning: comparison between signed and unsigned
PreviewLoader.C:555: warning: unused variable `const class Converter * converter'
xscreen.C:214: warning: comparison between signed and unsigned
xscreen.C:214: warning: comparison between signed and unsigned
screen.C:192: warning: comparison between signed and unsigned
lyxrc.C:960: warning: enumeration value `RC_NEW_ASK_FILENAME' not handled in switch
lyxrc.C:1659: warning: enumeration value `RC_NEW_ASK_FILENAME' not handled in switch

and a list from 38 warnings in GUI.h of this type:

warning:   declares a non-template function
../../../src/frontends/controllers/GUI.h:60: warning: friend declaration `void 
gui_ShowTabularCreate(LyXView , Dialogs )'

(see my previous email in this thread for the whole list).

 


Does this somehow help?

Regards,
Rob.



Re: missing ;

2002-07-13 Thread Kornel Benko

-BEGIN PGP SIGNED MESSAGE-

I tried to build qt2, but failed:
My gcc-version is 2.95.3.

...
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../src/ 
-I../../../../src/frontends/ -I../../../../images -I./qt2 
-I../../../../src/frontends/xforms -I/usr/lib/qt2/include -I../../../../boost 
-I../../../../src/frontends/controllers -isystem /usr/X11R6/include -g -O 
-Wno-non-template-friend -W -Wall -c Tooltips.C -Wp,-MD,.deps/Tooltips.TPlo
echo timestamp > Tooltips.lo
make[5]: *** No rule to make target `xformsGImage.C', needed by `xformsGImage.lo'.  
Stop.
make[5]: Leaving directory 
`/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends/qt2/xforms'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends/qt2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src/frontends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr2/kornel/rpm/BUILD/lyx-1.3.0cvs/src'
make: *** [all-recursive] Error 1
Exit 2
...

Kornel
- -- 
Kornel Benko
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQCVAwUBPS/RHLewfbDGmeqhAQGIVwQAuJeNWU5fI5vbveD71JatsvldraUFOLe2
udfjm0yUdkuUnQmwTM/EfBBptWvM0NtIlWkPPjWbN2/w1/ZGZo3RqZc5gyK9T313
0QBOawsZIccOlT08Et7ruLDUiwOGAc1pRZga5l9psnLv0/5RwToqoLwyi63bZsgo
YQM0PDk0X7g=
=FVaN
-END PGP SIGNATURE-




Re: missing ;

2002-07-13 Thread Edwin Leuven

> Again, please investigate further. What version of gcc-2.96 ? 

clean checkout, clean build, gcc-c++-2.96-110, suggestions are welcome.

Ed.

#0  0x4207ac55 in free () from /lib/i686/libc.so.6
#1  0x4057feb6 in __builtin_delete (ptr=0x8462db0) at ../../gcc/cp/new2.cc:-1
#2  0x080729b6 in boost::any::holder >::~holder 
(this=0x8462db0, __in_chrg=3)
at ../../lyx-devel/boost/boost/signals/trackable.hpp:75
#3  0x0836ca7f in boost::signals::detail::signal_base_impl::connect_slot (
this=0x8461388, slot=@0xb310, name=@0xb320,
bound_objects=@0xb510)
at ../../../../../lyx-devel/boost/boost/any.hpp:40
#4  0x08070227 in boost::signal3 >::connect 
(this=0x84610f8, in_slot=@0xb510)
at ../../lyx-devel/boost/boost/shared_ptr.hpp:199
#5  0x0805bb81 in BufferView::Pimpl::Pimpl (this=0x8460fc8, b=0x8460ec8,
o=0xb6f8, xpos=0, ypos=0, width=690, height=510)
at ../../lyx-devel/boost/boost/signals/slot.hpp:97
#6  0x080561fc in BufferView::BufferView (this=0x8460ec8, o=0xb6f8,
xpos=0, ypos=0, width=690, height=510)
at ../../lyx-devel/src/BufferView.C:26
#7  0x082c44ff in QtView::QtView (this=0xb680, width=690, height=510)
at ../../../../lyx-devel/boost/boost/scoped_ptr.hpp:49
#8  0x0829db2a in lyx_gui::start (batch=@0xb834, files=0xb7a0)
at ../../../../lyx-devel/src/frontends/qt2/lyx_gui.C:84
#9  0x0811b1a1 in LyX::LyX (this=0xb830, argc=@0xb870, 
argv=0xb8d4)
at /usr/include/g++-3/stl_vector.h:235
#10 0x0816c3bd in main (argc=1, argv=0xb8d4)
at ../../lyx-devel/src/main.C:31
#11 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6




Re: missing ;

2002-07-13 Thread John Levon

On Sat, Jul 13, 2002 at 09:04:54AM +0200, Kornel Benko wrote:

> I tried to build qt2, but failed:
> My gcc-version is 2.95.3.
> 
> ...
> g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../src/ 
>-I../../../../src/frontends/ -I../../../../images -I./qt2 
>-I../../../../src/frontends/xforms -I/usr/lib/qt2/include -I../../../../boost 
>-I../../../../src/frontends/controllers -isystem /usr/X11R6/include -g -O 
>-Wno-non-template-friend -W -Wall -c Tooltips.C -Wp,-MD,.deps/Tooltips.TPlo
> echo timestamp > Tooltips.lo
> make[5]: *** No rule to make target `xformsGImage.C', needed by `xformsGImage.lo'.  
>Stop.

touch frontends/qt2/xforms/Makefile.am

Don't ask me why this is needed.

john
-- 
"Be sure of this, O young ambition, all mortal greatness is but disease." 
- Hermann Melville



Re: missing ;

2002-07-13 Thread John Levon

On Sat, Jul 13, 2002 at 03:19:38PM +0200, Edwin Leuven wrote:

> clean checkout, clean build, gcc-c++-2.96-110, suggestions are welcome.

You'll have to investigate further (gdb, try adding printfs in
BV::Pimpl::Pimpl etc. etc.)

> #4  0x08070227 in boost::signal3 boost::last_value, int, less, boost::function3 mouse_button::state, boost::empty_function_policy, 
> boost::empty_function_mixin, allocator > >::connect 
> (this=0x84610f8, in_slot=@0xb510)

Maybe it is tripleClick ?? I don't know why it would fail.

john
-- 
"Be sure of this, O young ambition, all mortal greatness is but disease." 
- Hermann Melville



FINISHED_UP/DOWN/...

2002-07-13 Thread Dekel Tsur

Why do we need FINISHED_UP et al. ?
These are used only when exiting an inset with a cursor key (namely LFUN_UP
et al. is called), so the direction is known according to the action.
So, why can't we have something like

   result = lockinginset->localDispatch(..,action,..);
   if (result==FINISHED) {
  if (action == LFUN_DOWN) {
 
  } else if (action == LFUN_UP) {
 
  } ...
  
  




Re: Warnings ; useful?

2002-07-13 Thread R. Lahaye

Jean-Marc Lasgouttes wrote:
> 
> > "R" == R Lahaye <[EMAIL PROTECTED]> writes:
> 
> R> Jean-Marc Lasgouttes wrote:
> >>  > "R" == R Lahaye <[EMAIL PROTECTED]> writes:
> >>
> R> Hi,
> >>
> R> Below is a list of warnings I get during my compile. Is that
> R> useful?
> >>  Probably. What version of g++ is that? Are you sure you updated to
> >> latest cvs?
> 
> R> Yes, it's the latest CVS. I'm using g++ version 2.95.3.
> 
> OK, I added the same option to remove the 'template friends' warning
> as for gcc 2.96. I hope it is implemented by this version :)
> 
> Several of the other warnings should be gone now.

Not quite. LyX comiles fine, when using
  autoconf-2.53
  automake-1.5
  libtool-1.3.4_4

(I upgraded from FreeBSD 4.5 to 4.6)

However, I still get a few warning messages during autogen.sh and make:

= autogen.sh output =

$ ./autogen.sh 
Locating GNU m4... found: gm4
Generate acinclude.m4... done.
Building macros...
.
lib/reLyX
done.
Building config header template...
.
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
configure.in:5: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.in:353: warning: do not use m4_regexp: use regexp or m4_bregexp
autoheader: `src/config.h.in' is created
done.
Building Makefile templates...
.
src/Makefile.am:12: LIBS was set with `+=' and is now set with `='
src/frontends/Makefile.am:12: LIBS was set with `+=' and is now set with `='
lib/reLyX
done.
Building configure...
   .
   lib/reLyX
done.
Building lib/configure ... done.

run "./configure ; make"


=== configure result ===

Configuration
  Host type:  i386-unknown-freebsd4.6
  Special build flags:warnings assertions
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (2.95.3)
  C++ Compiler flags: -g -O -Wno-non-template-friend -W -Wall
  Linker flags:   
  Frontend:   xforms
libXpm version:   4.11
libforms version: 1.0.0
  LyX binary dir: /opt/bin
  LyX files dir:  /opt/share/lyx


 make warnings 

/usr/local/bin/msgfmt: bg.po: warning: Charset "windows-1251" is not a portable 
encoding name.
/usr/local/bin/msgfmt: he.po: warning: Charset "unknown" is not a portable encoding 
name.
GraphicsImageXPM.C:273: warning: comparison between signed and unsigned
PreviewLoader.C:555: warning: unused variable `const class Converter * converter'
xscreen.C:214: warning: comparison between signed and unsigned
xscreen.C:214: warning: comparison between signed and unsigned
screen.C:192: warning: comparison between signed and unsigned
lyxrc.C:960: warning: enumeration value `RC_NEW_ASK_FILENAME' not handled in switch
lyxrc.C:1659: warning: enumeration value `RC_NEW_ASK_FILENAME' not handled in switch

and a list from 38 warnings in GUI.h of this type:

warning:   declares a non-template function
../../../src/frontends/controllers/GUI.h:60: warning: friend declaration `void 
gui_ShowTabularCreate(LyXView &, Dialogs &)'

(see my previous email in this thread for the whole list).

 


Does this somehow help?

Regards,
Rob.