Re: Solution to the problem of reading old format?
On Wed, May 01, 2002 at 09:41:05PM +0200, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | On Wed, May 01, 2002 at 09:11:51PM +0200, Lars Gullik Bjønnes wrote: > >> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > >> > >> | On Wed, May 01, 2002 at 09:14:15PM +0300, Dekel Tsur wrote: > >> >> In my opinion, the problems when reading old files (bugs #374,#375,#376) > >> >> are unacceptable. > >> >> > >> >> I suggest a different approach for this problem: > >> >> the conversion should be done by an outside script and not in LyX source code. > >> >> Attached is a proof of concept script that converts minipages & float from > >> >> old format to new format. > >> >> The script correctly handle the test case of bugs #374,#375,#376. > >> >> Comments? > >> > > >> | Great! > >> > > >> | This is the direction that we should be going in when we are handling > >> | file format changes. I think that newer LyX should not be burdened > >> | with supporting older file formats. Instead, convertor scripts should > >> | be provided. > >> > >> Yes, this is absolutely the way we want to go, but we will not do so > >> completely for 1.2.0. For 1.3.0 otoh we should be able to have a good > >> framework for this in place. > > > | Speaking of this... > > > | I found an interesting link: http://pylatex.sourceforge.net > > > | reLyX in python? > > Yes please. Allright! Cool! > | *ducks for cover* > > Get Up!! I was anticipating all sorts of "No" since that's what happened the last time this idea was brought up. > ...and do the work... you have hereby volunteered :-) All the reLyX bugs are already assigned to me, so yes. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37565/pgp0.pgp Description: PGP signature
Re: Solution to the problem of reading old format?
On Wed, May 01, 2002 at 09:11:51PM +0200, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | On Wed, May 01, 2002 at 09:14:15PM +0300, Dekel Tsur wrote: > >> In my opinion, the problems when reading old files (bugs #374,#375,#376) > >> are unacceptable. > >> > >> I suggest a different approach for this problem: > >> the conversion should be done by an outside script and not in LyX source code. > >> Attached is a proof of concept script that converts minipages & float from > >> old format to new format. > >> The script correctly handle the test case of bugs #374,#375,#376. > >> Comments? > > > | Great! > > > | This is the direction that we should be going in when we are handling > | file format changes. I think that newer LyX should not be burdened > | with supporting older file formats. Instead, convertor scripts should > | be provided. > > Yes, this is absolutely the way we want to go, but we will not do so > completely for 1.2.0. For 1.3.0 otoh we should be able to have a good > framework for this in place. Speaking of this... I found an interesting link: http://pylatex.sourceforge.net reLyX in python? *ducks for cover* ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37557/pgp0.pgp Description: PGP signature
Re: Solution to the problem of reading old format?
On Wed, May 01, 2002 at 09:14:15PM +0300, Dekel Tsur wrote: > In my opinion, the problems when reading old files (bugs #374,#375,#376) > are unacceptable. > > I suggest a different approach for this problem: > the conversion should be done by an outside script and not in LyX source code. > Attached is a proof of concept script that converts minipages & float from > old format to new format. > The script correctly handle the test case of bugs #374,#375,#376. > Comments? Great! This is the direction that we should be going in when we are handling file format changes. I think that newer LyX should not be burdened with supporting older file formats. Instead, convertor scripts should be provided. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37552/pgp0.pgp Description: PGP signature
Re: Fix for DVI update bug
On Wed, May 01, 2002 at 08:08:25PM +0200, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > >> | lyxstring.C:1764: parse error before `::' > >> | lyxstring.C:1766: confused by earlier errors, bailing out > >> > >> All this because of substandard compiler and library... > >> > >> What complier are you using? > > > | 2.95.1 on my Linux build machines. > > This works with 2.96: > (by turning the ifs it work with gcc 3.x) Yes, this works with gcc-2.95 as well. Ship it! ;-) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37548/pgp0.pgp Description: PGP signature
Re: Fix for DVI update bug
> What about this version then: > (and it is probably not correct anymore) Yes, it compiles and links and runs but produces no change (that is, the same misbehavior with the dependency files). -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37544/pgp0.pgp Description: PGP signature
Re: Fix for DVI update bug
> | lyxstring.C:1764: parse error before `::' > | lyxstring.C:1766: confused by earlier errors, bailing out > > All this because of substandard compiler and library... > > What complier are you using? 2.95.1 on my Linux build machines. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37540/pgp0.pgp Description: PGP signature
Re: Fix for DVI update bug
On Wed, May 01, 2002 at 07:01:49PM +0200, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | Dekel Tsur <[EMAIL PROTECTED]> writes: > > > | | The bug was due to a bug in lyxstring (operator <<) > | | The problem was that the code did not skip the whitespace before the first > | | non whitespace char. > | | Attached are two possible fixes: > | | The first one was copied from g++-2/std/bastring.cc > | | (I don't know what side-effects is.ipfx0 has). > > > | except that it does not exist in a standard stream? > > > | Also I am not sure that your change is according to the standard. > > > | | The second one does the whitespace skipping manually. > > Can you sheck if this is possible to use with lyxstring: > (it probably require a istream that is pretty standard conforming) g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../.. -I../.. -I../../boost -i system /usr/X11R6/include -g -W -Wall -c lyxstring.C -Wp,-MD,.deps/lyxstring.TPl o lyxstring.C: In function `class istream & operator >>(istream &, lyxstring &)': lyxstring.C:1738: ANSI C++ forbids declaration `int_type' with no type lyxstring.C:1738: typedef name may not be class-qualified lyxstring.C:1738: parse error before `;' lyxstring.C:1739: ANSI C++ forbids declaration `__streambuf_type' with no type lyxstring.C:1739: typedef name may not be class-qualified lyxstring.C:1739: parse error before `;' lyxstring.C:1740: ANSI C++ forbids declaration `__ctype_type' with no type lyxstring.C:1740: typedef name may not be class-qualified lyxstring.C:1740: parse error before `;' lyxstring.C:1745: `sentry' is not a member of type `istream' lyxstring.C:1745: parse error before `(' lyxstring.C:1746: `cerb' undeclared (first use this function) lyxstring.C:1746: (Each undeclared identifier is reported only once lyxstring.C:1746: for each function it appears in.) lyxstring.C:1752: `ctype_type' undeclared (first use this function) lyxstring.C:1752: parse error before `const' lyxstring.C:1753: `int_type' undeclared (first use this function) lyxstring.C:1754: `streambuf_type' undeclared (first use this function) lyxstring.C:1754: `sb' undeclared (first use this function) lyxstring.C:1755: parse error before `=' lyxstring.C:1758: `c' undeclared (first use this function) lyxstring.C:1758: `eof' undeclared (first use this function) lyxstring.C:1758: `ctype' undeclared (first use this function) lyxstring.C:1758: `ctype_base' undeclared (first use this function) lyxstring.C:1758: parse error before `::' lyxstring.C:1764: `ios_base' undeclared (first use this function) lyxstring.C:1764: parse error before `::' lyxstring.C:1766: confused by earlier errors, bailing out -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37534/pgp0.pgp Description: PGP signature
Re: Fix for DVI update bug
On Wed, May 01, 2002 at 06:43:42PM +0300, Dekel Tsur wrote: > The bug was due to a bug in lyxstring (operator <<) > The problem was that the code did not skip the whitespace before the first > non whitespace char. > Attached are two possible fixes: > The first one was copied from g++-2/std/bastring.cc > (I don't know what side-effects is.ipfx0 has). > The second one does the whitespace skipping manually. My hero!!! I have tested the first patch and it fixes the Update->DVI problem. I just realized why this was showing up in the RPM but not in my Cygwin builds. The RPM uses ``configure --with-included-string'', but when I was doing my Cygwin builds, I was just doing a plain configure. I now did the same with patch2 and it also works. So, Lars, Angus, whoever else, please pick one of these patches and apply to CVS. Thanks! ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37528/pgp0.pgp Description: PGP signature
Re: Update DVI bug still there
On Wed, May 01, 2002 at 05:22:15AM +0200, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | On Wed, May 01, 2002 at 04:42:06AM +0200, Lars Gullik Bjønnes wrote: > >> | [[Now, I insert "X" in the LyX buffer, do File->Save and View->Update->DVI]] > >> > > >> | Dependency file exists > >> | Read dep: /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps 3732986742 938383314 > >> | Updating DepTable... > >> | /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps same mtime > >> | Finished updating DepTable (0 sec). > >> | return no_change > >> | TextCache: BufferView::buffer > >> > >> Is this all you get on the second run? > > > | Yes. > > strange... > what is the contents of the .dep file? /tmp/lyx_tmpdir23063O4eKc2/lyx_tmpbuf0/foo.eps 814242218 0 /tmp/lyx_tmpdir23063O4eKc2/lyx_tmpbuf0/foo.tex 2837693465 1020267561 /usr/share/texmf/tex/generic/babel/babel.def 3150438143 984247284 /usr/share/texmf/tex/generic/babel/babel.sty 3507177009 984247284 /usr/share/texmf/tex/generic/babel/english.ldf 3794645794 984247285 /usr/share/texmf/tex/latex/base/article.cls 3125085149 984160264 /usr/share/texmf/tex/latex/base/fontenc.sty 46135906 984160263 /usr/share/texmf/tex/latex/base/inputenc.sty 2787711530 984160263 /usr/share/texmf/tex/latex/base/latin1.def 61207602 984160263 /usr/share/texmf/tex/latex/base/size10.clo 4000307840 984160264 /usr/share/texmf/tex/latex/base/t1enc.def 4171694287 984160263 /usr/share/texmf/tex/latex/config/graphics.cfg 1304009822 916818488 /usr/share/texmf/tex/latex/graphics/dvips.def 3647412727 984161114 /usr/share/texmf/tex/latex/graphics/graphics.sty 1742016218 984161114 /usr/share/texmf/tex/latex/graphics/graphicx.sty 4049810553 984161114 /usr/share/texmf/tex/latex/graphics/keyval.sty 2300645532 984161114 /usr/share/texmf/tex/latex/graphics/trig.sty 1552932108 984161114 > (why does it seem that it only containes the .eps file?) > > >> And can you please debug with super simple lyx files only (especially > >> at first) > > > | I have reduced the testcase to this file: No preamble, no special stuff, > | just an inserted graphic. The LyX and eps file are attached. > > And if you reduce the testcase even more? To a file that just contains > an 'X' and then change into 'XX'? Without the inserted graphic the file works fine. BUT... If you start with the inserted graphic, do an Update->DVI, then delete the graphic and try again, it exhibits the same misbehavior. > > And what is the difference in the debug out put between those two > testcases then? Here is the case when you start without the inserted graphic: [...] Updating DepTable... /tmp/lyx_tmpdir23076t68IIC/lyx_tmpbuf0/foo.tex CRC... done /usr/share/texmf/tex/generic/babel/babel.def same mtime /usr/share/texmf/tex/generic/babel/babel.sty same mtime /usr/share/texmf/tex/generic/babel/english.ldf same mtime /usr/share/texmf/tex/latex/base/article.cls same mtime /usr/share/texmf/tex/latex/base/fontenc.sty same mtime /usr/share/texmf/tex/latex/base/inputenc.sty same mtime /usr/share/texmf/tex/latex/base/latin1.def same mtime /usr/share/texmf/tex/latex/base/size10.clo same mtime /usr/share/texmf/tex/latex/base/t1enc.def same mtime Finished updating DepTable (0 sec). Dep. file has NOT changed Write dep: /tmp/lyx_tmpdir23076t68IIC/lyx_tmpbuf0/foo.tex 738525099 1020267717 Write dep: /usr/share/texmf/tex/generic/babel/babel.def 3150438143 984247284 Write dep: /usr/share/texmf/tex/generic/babel/babel.sty 3507177009 984247284 Write dep: /usr/share/texmf/tex/generic/babel/english.ldf 3794645794 984247285 Write dep: /usr/share/texmf/tex/latex/base/article.cls 3125085149 984160264 Write dep: /usr/share/texmf/tex/latex/base/fontenc.sty 46135906 984160263 Write dep: /usr/share/texmf/tex/latex/base/inputenc.sty 2787711530 984160263 Write dep: /usr/share/texmf/tex/latex/base/latin1.def 61207602 984160263 Write dep: /usr/share/texmf/tex/latex/base/size10.clo 4000307840 984160264 Write dep: /usr/share/texmf/tex/latex/base/t1enc.def 4171694287 984160263 [...] -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37523/pgp0.pgp Description: PGP signature
Re: relyx & bugzilla
On Wed, May 01, 2002 at 09:12:51AM +0200, Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | So, should I mass-WONTFIX relyx bugs Lars ? > > if we cannot hoax anyone to at least work on one og the bugs... > You can go ahead and assign a few to me. I won't get it done for a week or two, but I will get it done. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37473/pgp0.pgp Description: PGP signature
Re: [MAILER-DAEMON@wierdlmpc.msci.memphis.edu] failure notice
On Wed, May 01, 2002 at 09:08:40AM +0200, Lars Gullik Bjønnes wrote: > Mate Wierdl <[EMAIL PROTECTED]> writes: > > | So then removing attachments is just snakeoil: viruses are > | application/octet-stream. > > Doeas all virii use octet-stream? I think not. > > | As for size restriction: it is again snakeoil with the proposed limits: > | Klez is 120K. > > Did you do this only for the mis-benefit of klez? > > btw. filtering is the only way to be somewhat sure. Yes. Filtering is the only sure way. Excerpts from my procmail recipes (the last one kills klez): :0 * Content-Type: multipart/mixed; .*Outlook_Express_message_ * B ?? (I send you this file in order to have your advice)|(Te mando este archivo para que me des tu punto de vista)|(This is the file with the information that you ask for) /dev/null :0 * Content-Type: multipart * B ?? name=".*\.([pP][iI][fF]|[sS][cC][rR])"$ /dev/null :0 * Content-Type: (text/html)|(multipart/alternative)|(multipart/mixed) * B ?? TVqQAAMEA /dev/null msg37472/pgp0.pgp Description: PGP signature
Re: Update DVI bug still there
On Wed, May 01, 2002 at 04:42:06AM +0200, Lars Gullik Bjønnes wrote: > | [[Now, I insert "X" in the LyX buffer, do File->Save and View->Update->DVI]] > > > | Dependency file exists > | Read dep: /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps 3732986742 938383314 > | Updating DepTable... > | /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps same mtime > | Finished updating DepTable (0 sec). > | return no_change > | TextCache: BufferView::buffer > > Is this all you get on the second run? Yes. > And can you please debug with super simple lyx files only (especially > at first) I have reduced the testcase to this file: No preamble, no special stuff, just an inserted graphic. The LyX and eps file are attached. The sequence that makes the bug happen: Update->DVI change the "Foo" into "XFoo" Update->DVI (does nothing) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard Foo \layout Standard \begin_inset Graphics FormatVersion 1 filename foo.eps display default size_type 0 rotateOrigin center lyxsize_type 0 \end_inset \the_end foo.eps Description: PostScript document msg37449/pgp0.pgp Description: PGP signature
Re: [Bug 359] Compose key broken
On Wed, May 01, 2002 at 04:31:56AM +0200, Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | On Wed, May 01, 2002 at 03:47:48AM +0200, Lars Gullik Bjønnes wrote: > > > >> | I think 0.89's compose support is broken. > >> > >> It certainly is not. > >> I use it all the time... > > > | Then maybe you should consider why it's broken for Ron before you > | go stomping all over the bug. > > > | Oh, I forgot ... you don't care > > Sure I care. > But I cannot debug a chimera. Oooh! Quote of the day: "I cannot debug a chimera." I like it! -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37442/pgp0.pgp Description: PGP signature
Re: Update DVI bug still there
x/generic/babel/babel.sty same mtime /usr/share/texmf/tex/generic/babel/english.ldf same mtime /usr/share/texmf/tex/latex/base/article.cls same mtime /usr/share/texmf/tex/latex/base/fontenc.sty same mtime /usr/share/texmf/tex/latex/base/inputenc.sty same mtime /usr/share/texmf/tex/latex/base/latin1.def same mtime /usr/share/texmf/tex/latex/base/size10.clo same mtime /usr/share/texmf/tex/latex/base/t1enc.def same mtime /usr/share/texmf/tex/latex/config/geometry.cfg same mtime /usr/share/texmf/tex/latex/config/graphics.cfg same mtime /usr/share/texmf/tex/latex/graphics/dvips.def same mtime /usr/share/texmf/tex/latex/graphics/graphics.sty same mtime /usr/share/texmf/tex/latex/graphics/keyval.sty same mtime /usr/share/texmf/tex/latex/graphics/trig.sty same mtime /usr/share/texmf/tex/latex/misc/geometry.sty same mtime /usr/share/texmf/tex/latex/misc/pslatex.sty same mtime /usr/share/texmf/tex/latex/psnfss/omspzccm.fd same mtime /usr/share/texmf/tex/latex/tools/multicol.sty same mtime Finished updating DepTable (0 sec). Dep. file has NOT changed Write dep: /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps 3732986742 938383314 Write dep: /tmp/lyx_tmpdir45208Vupei/lyx_tmpbuf0/recruit2002.tex 2168861248 1020219942 Write dep: /usr/share/texmf/tex/generic/babel/babel.def 3150438143 984247284 Write dep: /usr/share/texmf/tex/generic/babel/babel.sty 3507177009 984247284 Write dep: /usr/share/texmf/tex/generic/babel/english.ldf 3794645794 984247285 Write dep: /usr/share/texmf/tex/latex/base/article.cls 3125085149 984160264 Write dep: /usr/share/texmf/tex/latex/base/fontenc.sty 46135906 984160263 Write dep: /usr/share/texmf/tex/latex/base/inputenc.sty 2787711530 984160263 Write dep: /usr/share/texmf/tex/latex/base/latin1.def 61207602 984160263 Write dep: /usr/share/texmf/tex/latex/base/size10.clo 4000307840 984160264 Write dep: /usr/share/texmf/tex/latex/base/t1enc.def 4171694287 984160263 Write dep: /usr/share/texmf/tex/latex/config/geometry.cfg 2276162033 879293617 Write dep: /usr/share/texmf/tex/latex/config/graphics.cfg 1304009822 916818488 Write dep: /usr/share/texmf/tex/latex/graphics/dvips.def 3647412727 984161114 Write dep: /usr/share/texmf/tex/latex/graphics/graphics.sty 1742016218 984161114 Write dep: /usr/share/texmf/tex/latex/graphics/keyval.sty 2300645532 984161114 Write dep: /usr/share/texmf/tex/latex/graphics/trig.sty 1552932108 984161114 Write dep: /usr/share/texmf/tex/latex/misc/geometry.sty 4099838744 949298164 Write dep: /usr/share/texmf/tex/latex/misc/pslatex.sty 1109810175 923857500 Write dep: /usr/share/texmf/tex/latex/psnfss/omspzccm.fd 2015632546 947689200 Write dep: /usr/share/texmf/tex/latex/tools/multicol.sty 4292081456 984162405 [[Now, I insert "X" in the LyX buffer, do File->Save and View->Update->DVI]] Dependency file exists Read dep: /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps 3732986742 938383314 Updating DepTable... /net/home/kayvan/etc/scouts/lyx//../img/garf2.eps same mtime Finished updating DepTable (0 sec). return no_change TextCache: BufferView::buffer -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37440/pgp0.pgp Description: PGP signature
Re: Update DVI bug still there
On Wed, May 01, 2002 at 01:36:01AM +0100, John Levon wrote: > On Wed, May 01, 2002 at 02:24:51AM +0200, Lars Gullik Bjønnes wrote: > > > xdvi and gv watch the file to see if it changes. then reloads. > > note that xdvi somethings needs some "event" f.ex. getting focus to > > update, and gv needs some time. > > OK, so this is really a feature and the bug can be WORKSFORME yes ? No. My update DVI problem has nothing to do with XDVI or any other piece of software that does not refresh itself. LaTeX is not run when it should be. I will investigate. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37434/pgp0.pgp Description: PGP signature
Re: 1.2.0
On Wed, May 01, 2002 at 01:19:04AM +0200, Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | 2. update->dvi is useless (bug 349) > > I cannot reproduce this. > "Works for me" I can reproduce it (I sent files earlier) as can at least a couple of others. Basically, from scanning the status line, I see that LaTeX is not run and the out of date DVI file is left alone. What has changed recently? I can probably start going back in CVS and see if I can isolate the change if no one has any concrete ideas. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37423/pgp0.pgp Description: PGP signature
Update DVI bug still there
Is there anyone working on the Update->DVI bug? I am running into it regularly in my work with latest CVS LyX. This is a 1.2.0 blocker IMO. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37396/pgp0.pgp Description: PGP signature
Re: viruses
On Mon, Apr 29, 2002 at 08:03:55PM -0400, Brett Dikeman wrote: > At 3:15 PM -0500 4/29/02, Mate Wierdl wrote: > >Lately, I received emails such as > > > >"I received a lot viruses from the lyx users list, and now my > >windows partition is ruined." > > > >I am truly sorry to hear this, but: > > > >--- The virus _never_ originates from my server > > What follows is my personal opinion; [...] > > You've got three choices, [...] > > -dump all attachments before they go to the list management > software's alias. "demime" is one good script for doing so, very > easy to install. Attachments shouldn't be allowed on large lists > anyway; this isn't the development list, so attachments are simply > not necessary nor appropriate, particularly in this day and age where > webservers are dime a dozen. People should never send attachments, > they should reference URLs. 99% of the attachments that drift by > have absolutely no use to me...and posting attachments is completely > useless to people reading the archives a week, month, year later. > URLs, if they link to some place stable, at least have a fighting > chance. I disagree. Attachments are convenient and a message with a patch attached is self-contained and can be stored in the mail archives for later retrieval. No need to refer to external URL's (which may or may not exist or be up at the time of viewing) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37313/pgp0.pgp Description: PGP signature
Re: A WinXP patch
On Sun, Apr 28, 2002 at 05:29:34PM +0100, John Levon wrote: > On Sun, Apr 28, 2002 at 11:30:27AM +0200, Philipp Reichmuth wrote: > > > Since I am quite sure that I don't like it, and since I'm sitting on a > > modem line where five extra 120 to 200 kByte mails a day do make a > > difference, I wonder whether it would be possible to filter out > > e-mail viruses in the mailing list engine on lyx-devel. > > If you have a bright idea on how to filter out Klez I'd love to hear > it. As far as I can see it's unfilterable. > > regards > john > In procmailrc: :0 * Content-Type: (text/html)|(multipart/alternative) * B ?? TVqQAAMEA /dev/null -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37232/pgp0.pgp Description: PGP signature
Re: Compiling with gcc-3.2 (CVS gcc)
On Sat, Apr 27, 2002 at 09:08:43PM +0200, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | Trying to link on Cygnus with gcc-3.2cvs, I get the following errors > | on link: > > Why not do this with gcc-3.1. 3.2 is not something that we care about > at all at this stage... it will be released in ~decemeber... 3.1. will > be released ~15th of may. > > Looks like a faulty installation of some kind. Here's the same for gcc-3.0.4. Very similar error messages. Any ideas? No, it's not a faulty installation. frontends/.libs/libfrontends.a(Alert_pimpl.o): In function `ZNSs12_Alloc_hiderD1Ev': /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/src/frontends/xforms/xforms_helpers.h(.ctor+0x0): undefined reference to `_GLOBAL__I__Z11alert_pimplRKSsS0_S0_' /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/src/frontends/xforms/xforms_helpers.h(.dtor+0x0): undefined reference to `_GLOBAL__D__Z11alert_pimplRKSsS0_S0_' frontends/.libs/libfrontends.a(Tooltips.o): In function `ZN4SigC12ObjectSlot0_Iv8TooltipsE6createEPS1_MS1_FvvE': /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/sigc++/handle.h(.ctor+0x0): undefined reference to `_GLOBAL__I__ZN8Tooltips8enabled_E' /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/sigc++/handle.h(.dtor+0x0): undefined reference to `_GLOBAL__D__ZN8Tooltips8enabled_E' frontends/.libs/libfrontends.a(form_filedialog.o): In function `ZN18FD_form_filedialogD2Ev': /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/src/frontends/xforms/form_filedialog.C:14: undefined reference to `_GLOBAL__I__ZN18FD_form_filedialogD2Ev' /home/Kayvan/src/lyx-build/src/frontends/xforms/../../../../lyx/src/frontends/xforms/form_filedialog.C:14: undefined reference to `_GLOBAL__D__ZN18FD_form_filedialogD2Ev' frontends/.libs/libfrontends.a(FeedbackController.o): In function `ZNSs4_Rep8_M_cloneERKSaIcEj': /usr/local/gcc3/include/g++-v3/bits/basic_string.tcc(.ctor+0x0): undefined reference to `_GLOBAL__I__ZN18FeedbackControllerC2Ev' /usr/local/gcc3/include/g++-v3/bits/basic_string.tcc(.dtor+0x0): undefined reference to `_GLOBAL__D__ZN18FeedbackControllerC2Ev' collect2: ld returned 1 exit status make[3]: *** [lyx.exe] Error 1 make[3]: Leaving directory `/home/Kayvan/src/lyx-build/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Kayvan/src/lyx-build/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/Kayvan/src/lyx-build/src' make: *** [all-recursive] Error 1 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37210/pgp0.pgp Description: PGP signature
Compiling with gcc-3.2 (CVS gcc)
cc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/tinfo.cc:207: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(eh_terminate.o): In function `_ZSt14set_unexpectedPFvvE': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_terminate.cc:85: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_throw.cc:101: undefined reference to `__Unwind_RaiseException' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_throw.cc:95: undefined reference to `__Unwind_RaiseException' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_throw.cc:87: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(eh_alloc.o): In function `__cxa_free_exception': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_alloc.cc:147: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(eh_catch.o): In function `_ZSt18uncaught_exceptionv': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/libsupc++/../../../../gcc3/libstdc++-v3/libsupc++/eh_catch.cc:105: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(stdexcept.o): In function `_ZNSt15underflow_errorD0Ev': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `__Unwind_Resume' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `__Unwind_Resume' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `__Unwind_Resume' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `__Unwind_Resume' /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `__Unwind_Resume' /usr/local/gcc3-cvs/lib/libstdc++.a(stdexcept.o):/home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: more undefined references to `__Unwind_Resume' follow /usr/local/gcc3-cvs/lib/libstdc++.a(stdexcept.o): In function `_ZNSt15underflow_errorD0Ev': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_threads.h:122: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(codecvt.o): In function `_ZNSt23__codecvt_abstract_baseIcc9mbstate_tED0Ev': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/include/bits/codecvt.h:122: undefined reference to `___gxx_personality_v0' /usr/local/gcc3-cvs/lib/libstdc++.a(messages.o): In function `_ZNKSt8messagesIcE6do_getEiiiRKSs': /home/Kayvan/src/gcc-build/i686-pc-cygwin/libstdc++-v3/src/messages.cc:44: undefined reference to `___gxx_personality_v0' collect2: ld returned 1 exit status make[3]: *** [lyx.exe] Error 1 make[3]: Leaving directory `/home/Kayvan/src/lyx-build/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Kayvan/src/lyx-build/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/Kayvan/src/lyx-build/src' make: *** [all-recursive] Error 1 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37195/pgp0.pgp Description: PGP signature
Re: mathematical epsilon symbol
On Fri, Apr 26, 2002 at 02:03:07PM +0100, Jules Bean wrote: > On Fri, Apr 26, 2002 at 02:03:04PM +0200, Andre Poenitz wrote: > > On Fri, Apr 26, 2002 at 01:40:02PM +0200, C. van Wijk wrote: > > > A big visual improvement, a small effort? > > > > I don't know, I thought we once had some technically discussion that turned > > up cases where this approach was not feasible. Can't remember which, > > The X server and the LyX binary not running on the same machine is > probably one such case. > > Then the fonts need to be on the X servers machine, or on the machine > of some font server which the X server has been told to query (which > could in general be a third machine...) The only thing that would happen in this case is the fonts would not display because of the invalid path. No big deal. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37193/pgp0.pgp Description: PGP signature
Re: Latest CVS: DVI Update bug!
On Fri, Apr 26, 2002 at 12:30:58PM +0100, John Levon wrote: > On Fri, Apr 26, 2002 at 08:25:19PM +0900, R. Lahaye wrote: > > > Here, View->Update->Postscript is not updating gv. Somehow the > > 'watchfile' does not get through. But that was reported already, > > wasn't it? > > Hmm yes you don't need an include inset for that. > > but you said view->postscript was broken. Is it or is it just > view->update->whatever ? > > john > Well, it's probably that View->Update->whatever is not updating. I don't see LaTeX being run at all in some cases after the initial run to generate the DVI file. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37192/pgp0.pgp Description: PGP signature
Re: Latest CVS: DVI Update bug!
On Fri, Apr 26, 2002 at 10:28:40AM +0100, John Levon wrote: > On Fri, Apr 26, 2002 at 11:26:13AM +0200, Lars Gullik Bjønnes wrote: > > > | not happening a few days ago. > > > > Can others reproduce this? > > No, only if I use insetinclude and do update->dvi does it fail (like > Michael S found) > > john > > -- > "I continue to be amazed at what Andrei can make templates do. Some of it > still makes my head hurt." > - Herb Sutter I have a small testcase now (verified on three different machines). 1) Load up the attached foo.lyx (put foo.sty in the same directory). 2) View->Postscript 3) erase the "ERASE ME", save and View-Postscript. Your edits will not show. If I comment out the \usepackage{foo} in the preamble, the problem does not happen. If I remove the URL inset, it also does not happen. I have not tried narrowing it down any more. I culled this small example from some large documents where this was happening. Can you reproduce this? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \begin_preamble % % Use Sylvan Associates Letterhead after setting up page % \oddsidemargin 0in \evensidemargin 0in \textwidth 6.5in \textheight 8.75in % % Now load it % \usepackage{foo} \hyphenpenalty 1 \end_preamble \language english \inputencoding default \fontscheme pslatex \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \topmargin 0.75in \bottommargin 0.5in \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \added_space_bottom 0.5in \align center \size huge Sylvan Associates \newline Statement of Work \layout Standard \added_space_top 0.3cm \added_space_bottom 0.2in \align center \begin_inset Tabular \begin_inset Text \layout Standard \family roman \series bold \shape up \size normal \emph off \bar no \noun off \color none To \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \series bold Date \end_inset \begin_inset Text \layout Standard Boo Bar Bazaz \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 4/26/2002 \end_inset \begin_inset Text \layout Standard 12345 Blueberry Lane \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard Pleasantville, Dinotopia \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \end_inset \end_inset \layout Standard In what follows, Kayvan Sylvan of Sylvan Associates, Inc. is the \noun on Consultant \noun default , Boo Bar Bazaz (AKA Barney the Dinosaur) is the \noun on Client \noun default . \layout Subsection* Project Objective: \layout Standard Consultant is to facilitate Client's exit from show business by assisting Mr. Bazaz in creating the appearance of accidental death. Such activity is not to result in fraud or monetary benefit to client resulting from the termination (by appearance of death) from contractual and business relationships. The only intended benefit is Client's peace of mind. \layout Standard \begin_inset LatexCommand \url{http://www.barney.com} \end_inset \layout Standard ERASE ME \the_end % % Sylvan Associates letterhead style. % % Author: Kayvan Sylvan % % We assume the page layout parameters (in particular, headheight and % textheight) are already known before we this file is loaded. % % $Id: letterhead.sty,v 1.14 2000/02/21 20:04:06 kayvan Exp $ \typeout{Sylvan Associates Letterhead `sylvan.sty' <20 Feb 2000>} msg37136/pgp0.pgp Description: PGP signature
Re: patch to Literate Programming sections of Extended.lyx
On Fri, Apr 26, 2002 at 10:34:00AM +0100, John Levon wrote: > On Fri, Apr 26, 2002 at 12:07:20AM -0700, Kayvan A. Sylvan wrote: > > > Here is the updated docs. > > Applied (do a ChangeLog entry next time ?) > > regards > john Sorry. I almost never forget to do that, but this time I did. Thanks. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37121/pgp0.pgp Description: PGP signature
Latest CVS: DVI Update bug!
View->Postscript, View->DVI, or event Print functions are not showing any changes. Exiting LyX and re-starting lets you see your latest edits. This was not happening a few days ago. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37114/pgp0.pgp Description: PGP signature
patch to Literate Programming sections of Extended.lyx
Here is the updated docs. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: Extended.lyx === RCS file: /cvs/lyx/lyxdoc/Extended.lyx,v retrieving revision 1.42 diff -u -r1.42 Extended.lyx --- Extended.lyx2002/03/21 02:00:51 1.42 +++ Extended.lyx2002/04/26 07:05:00 @@ -2782,7 +2782,7 @@ filename mobius.eps display color size_type 1 - width 40c% + width 40col% rotateOrigin center lyxsize_type 0 lyxwidth 119pt @@ -17034,8 +17034,16 @@ Literate Programming \layout Standard -By +Updated by \noun on +Kayvan SYlvan +\noun default +([EMAIL PROTECTED]) +\noun on +, +\noun default +original documentation written by +\noun on Edmar Wienskoski Jr. \noun default @@ -17072,11 +17080,7 @@ \layout Standard It is also assumed that you are familiar with LyX itself to a point that - you are comfortable changing your -\family typewriter -lyxrc -\family default - file, and X resources file. + you are comfortable changing your LyX preferences, and X resources file. If that is not the case please refer to other LyX documentation to cover your specific needs. \layout Subsection @@ -17189,8 +17193,9 @@ LyX and Literate Programming \layout Standard -Some changes to LyX were required to enable it to interact with Noweb. - Those changes were rather simple, and were done in a +The LyX support for Literate Programming is provided by using the generic + LyX convertors mechanism. + This support is provided in a \begin_inset Quotes eld \end_inset @@ -17198,9 +17203,8 @@ \begin_inset Quotes erd \end_inset - way, i.e., I expect that you will be able to use this new LyX feature with - some other literate programming tool of your choice by just re-configuring - your lyxrc file. + way, i.e., you will be able to use this new LyX feature with some other literate + programming tool of your choice by just changing your LyX preferences. \layout Subsubsection Generating documents and code (weaving and tangling) @@ -17230,11 +17234,9 @@ Note that literate documents are not limited to these three classes. New classes can be generated from other styles like letter or in combination with other class variations like Article (AMS). - I have limited the choice to these three because I didn't want to clog - the list of options with all possible variations. If you have special needs that cannot be covered by one of the existing - classes, let me know and I will arrange to insert a new entry, or teach - you how to do it. + classes, let the LyX developers list ([EMAIL PROTECTED]) know and we + will arrange to insert a new entry, or teach you how to do it. \begin_inset Foot collapsed true @@ -17282,7 +17284,7 @@ before rendering myself to Noweb. \end_inset - Noweb delimits scraps like this + Noweb delimits scraps like this: \layout LyX-Code <>= @@ -17306,23 +17308,13 @@ \family default must be taken literally, i.e., LyX should be prevented from making any special interpretation of what has been written. - For that reason, I defined a new layout named Scrap, that works like a - LaTeX paragraph but has a free spacing capability. - In other words, it is a combination of the LaTeX and the LyX-Code layouts. - + This is handled by a special layout named Scrap, that works like a normal + paragraph but has a free spacing capability. \layout Standard - -The down side of this -\begin_inset Quotes eld -\end_inset - -semi-hack -\begin_inset Quotes erd -\end_inset - is that consecutive paragraphs of code will be spaced with one empty line - in the source code and also in the printed documentation. - Of course I don't want this. +The down side of the Scrap paragraph layout is that consecutive paragraphs + of code will be spaced with one empty line in the source code and also + in the printed documentation. The work around is to enter each line of code within a single Scrap, with a newline (ctrl-return). The example above will look like this: @@ -17368,11 +17360,39 @@ to fix that. \end_inset - If you want to preserve the code's indentation, you will have to type ctrl-spac -e to enter a blank character. - I believe these problems are a small price to pay for the benefits LyX - brings to you for typing, compiling, and debugging your literate program. - + +\layout Standard + +As a special note, you can also use the +\begin_inset Quotes eld +\end_inset + +%def +\begin_inset Quotes erd +\end_inset + + construct of Noweb in your scraps to add items to Noweb's identifier cross-refe +rence: +\layout LyX-Code + +<>= +\newline + def some_function(args): +\newline +"This is the doc string for this fun
Literate programming convertors?
Are the Literate Programming convertors set up by default? I know a lot of other convertors have been added recently. Are the "literate" and "Program" conversions installed by default? I am rewriting the Literate Programming section in Extended.lyx, so I would like to know... Thanks. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37101/pgp0.pgp Description: PGP signature
Re: pre4 on Win32 linking problem
On Thu, Apr 25, 2002 at 11:16:44PM +0200, Philipp Reichmuth wrote: > Hello folks, > > Is there a recommended way to get 1.2.0pre4 to link on Cygwin? > > I'm using recent cygwin, bxforms-0.89 with libforms.a in place. LyX > compiles OK. On linking, however, it seems that libforms.a isn't > linked against: all references from the frontends bit are complained > to be undefined. > > I can tell make to link against libforms.a manually, however, in this > case I get reference problems within xforms such as > "/usr/local/lib/libforms.a(canvas.o)(.text+0xe07):canvas.c: undefined > reference to `XClearWindow'", so it looks that XForms has linking > trouble with X11. I do have the X libs in place, however. > > Before I start to mess things up completely, I'd be grateful for a > professional hint or two :-) > > However, I'm glad that I've even got as far as this on Windows. From > what I've seen on Linux so far, it's looking that the agelong wait for > 1.2.0 was worth it. > > Thanks in advance - Philipp 1.2.0pre4 configure, compiles and links for me. What version of X11? What version of Cygwin? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37100/pgp0.pgp Description: PGP signature
Re: Pre4
On Wed, Apr 24, 2002 at 07:29:11PM +0200, Lars Gullik Bjønnes wrote: > > I have put pre4 in > ftp://ftp.devel.lyx.org/pub/lyx/lyx-1.2.0pre4.tar.gz > > Please check it out for obvious errors and things that _must_ be fixed > before 1.2.0 proper. > > -- > Lgb I'll be providing an update to the docs regarding Literate Programming support to reflect current reality. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg37024/pgp0.pgp Description: PGP signature
Re: Spec file problem in 1.2pre1
On Sat, Apr 06, 2002 at 03:05:50PM +0200, Walter H. van Holst wrote: > Hello, > > I have picked the lyx.spec file from the tarball, put it in > /usr/src/redhat/SPECS and put the tarball in /usr/src/redhat/SOURCES, > where they belong. After executing rpm -ba > /usr/src/redhat/SPECS/lyx.spec I get the following error: > > error: Unable to open icon /usr/src/redhat/SOURCES/lyx.xpm: No such file > or directory > > Which weirds me out a bit, since an icon file like that is supposed to > be extracted to a place underneath /usr/src/redhat/BUILD/lyx-1.2pre1 > > Regards, > > Walter > > -- > We are kept keen on the grindstone of pain and necessity. > (H.G. Wells) Just take the lyx.xpm from inside the tarball and put it in SOURCES as well. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg36127/pgp0.pgp Description: PGP signature
[root@sylvan.com: Cron cd /cvs/lyx; rsync -aCz --delete baywatch.lyx.org::lyxcvs .]
FYI: The anoncvs mirror here has been unable to sync all day. Someone should take a look and fix the problem. I would assume something is wedged. - Forwarded message from Cron Daemon <[EMAIL PROTECTED]> - Date: 3 Apr 2002 01:37:04 - From: [EMAIL PROTECTED] (Cron Daemon) To: [...] Subject: Cron cd /cvs/lyx; rsync -aCz --delete baywatch.lyx.org::lyxcvs . @ERROR: max connections (2) reached - try again later - End forwarded message - msg35820/pgp0.pgp Description: PGP signature
Re: input/output filter for zipping of lyx files ?
On Wed, Apr 03, 2002 at 12:51:48AM +0200, Lars Gullik Bjønnes wrote: > | I don't like this. This is a job best performed by an external script: > > I do not quite agree. I think that LyX should be able to read a > gzipped file and to write is back as zipped using zlib Okay, then this should be added as a new feature request in bugzilla. > and can someone please explain to me the difference between ${arg} and > $arg... From bash.info: The basic form of parameter expansion is ${PARAMETER}. The value of PARAMETER is substituted. The braces are required when PARAMETER is a positional parameter with more than one digit, or when PARAMETER is followed by a character that is not to be interpreted as part of its name. So... The following works: x="foobar" foo=${x}copy # foo is set to foobarcopy bar=$xcopy # sets bar to empty string and also the following: foo=${11} # the 11th arg bar=$11 # bar is set to the 1st arg followed by "1" Basically, when I use ${var}, then I don't have to think about the form of the variable or what follows it. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35818/pgp0.pgp Description: PGP signature
Re: Please test xforms 0.9999 with lyx 1.2.0cvs and 1.1.6fixcvs
On Tue, Apr 02, 2002 at 06:40:51PM +0200, Jean-Marc Lasgouttes wrote: > > Hello there, > > It would be nice if people could try out the new xforms LGPL release, > both with 1.1.6 and 1.2.0. If it turns out it works fine (I have no > reason to suspect otherwise), I would like to advise to use it as > preferred version. > > Kayvan, could you prepare a set of rpms for it? Yes, I will look at this and create RPMs. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35816/pgp0.pgp Description: PGP signature
Re: input/output filter for zipping of lyx files ?
On Tue, Apr 02, 2002 at 08:42:48PM +0900, R. Lahaye wrote: > > Hi, > > Are there any cons for adding an input filter to the > opening/saving of lyx files? > > Because most common users do not want to have a look at > the contents of the lyx file itself, it could save a > considerable amount of bytes by using (un)zipping during > opening and saving the lyx document. > > Ideally a user configurable input/output filter could be > used in the preferences (maybe somewhat similar to the > graphics conversions in preferences). > > > For example the gain with "gzip --best": > > filename (from CVS):original:gzipped:percentage > > splash.lyx : 2772 : 1216 : 44 % > Foils.lyx : 9226 : 3177 : 34 % > noweb2lyx.lyx : 22061 : 5730 : 26 % > fr_ExemplesTableaux.lyx : 102153 : 3579 : 4 % > > > The last file is an odd example (the contents is very repetitive), > but this list shows that gzipping can be useful and the larger > the lyx file, the more efficient the zipping. > > Regards, > Rob. I don't like this. This is a job best performed by an external script: move /usr/bin/lyx to /usr/bin/lyx.real #!/bin/sh # # /usr/bin/lyx # args="" files="" for arg do case $arg in *.gz) name=`echo $arg | sed 's@.gz$@@'` gunzip $arg if [ $? -ne 0 ] then echo "Error trying to gunzip $arg" exit 1 fi files="${files} ${name}" args="${args} ${name}" ;; *) args="${args} ${arg}" ;; esac done lyx.real $args for file in $files do echo "Compressing ${file}" gzip --best ${file} done -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35815/pgp0.pgp Description: PGP signature
Re: ftp lyx-1.2.0pre1
On Tue, Apr 02, 2002 at 01:32:45PM +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> but then the later fix of changing $$(file) to $$file was fixing > Lars> this then? Or should it be changed back to $${file}? > > $${files} is the best form, I think. I found one $$files in > lib/Makefile.am, but it is debug output I forgot to remove... I'll > remove it. > > JMarc Yes, $${files} is best. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35812/pgp0.pgp Description: PGP signature
Re: ftp lyx-1.2.0pre1 (forgot to cc to the list
m(): LyX command `math-mutate display' does > not exist. > MenuItem(): LyX command `math-mutate eqnarray' does not > exist. > MenuItem(): LyX command `math-mutate align' does not exist. > MenuItem(): LyX command `math-halign left' does not exist. > MenuItem(): LyX command `math-halign center' does not > exist. MenuItem(): LyX command `math-halign right' does > not exist. MenuItem(): LyX command `math-valign top' does > not exist. MenuItem(): LyX command `math-valign center' > does not exist. MenuItem(): LyX command `math-valign > bottom' does not exist. MenuItem(): LyX command > `math-row-insert' does not exist. MenuItem(): LyX command > `math-row-delete' does not exist. MenuItem(): LyX command > `math-column-insert' does not exist. MenuItem(): LyX > command `math-column-delete' does not exist. MenuItem(): > LyX command `ligature-break-insert' does not exist. > LyX: Missing quote [around line 210 of file > /usr/local/share/lyx/ui/default.ui] > LyX: menubar::read: Unknown menu tag: `' [around line 211 > of file /usr/local/share/lyx/ui/default.ui] > LyX: menubar::read: Unknown menu tag: `FloatInsert' [around > line 231 of file /usr/local/share/lyx/ui/default.ui] > LyX: menubar::read: Unknown menu tag: `FloatListInsert' > [around line 236 of file > /usr/local/share/lyx/ui/default.ui] MenuItem(): LyX > command `file-insert-ascii-para' does not exist. > MenuItem(): LyX command `show-forks' does not exist. > MenuItem(): LyX command `help-Texinfo' does not exist. > MenuItem(): LyX command `reference-next' does not exist. > MenuItem(): LyX command `bookmark-save 1' does not exist. > MenuItem(): LyX command `bookmark-save 2' does not exist. > MenuItem(): LyX command `bookmark-save 3' does not exist. > MenuItem(): LyX command `bookmark-goto 1' does not exist. > MenuItem(): LyX command `bookmark-goto 2' does not exist. > MenuItem(): LyX command `bookmark-goto 3' does not exist. > MenuItem(): LyX command `toggle-tooltips' does not exist. > MenuItem(): LyX command `help-aboutlyx' does not exist. > > Regards > > -- > Niklaus Giger > Wieshoschet 6 > CH-8753 Mollis > [EMAIL PROTECTED] Tel. G: +41 55 618 64 68, P: +41 55 612 20 54 > > --- > > -- > Niklaus Giger > Wieshoschet 6 > CH-8753 Mollis > [EMAIL PROTECTED] Tel. G: +41 55 618 64 68, P: +41 55 612 20 54 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35703/pgp0.pgp Description: PGP signature
Re: LyX 1.2.0pre1
On Sun, Mar 31, 2002 at 04:49:29PM +0200, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > > | | On Sat, Mar 30, 2002 at 01:36:05AM +0100, Lars Gullik Bjønnes wrote: > >>> > >>> I got tired of dragging my feat, so I just did it. > >>> > >>> Pre1 has been tagged as "lyx-1_2_0pre1" in CVS. > >>> > >>> I will upload a dist to ftp as soon as the build gets ready. > >>> > >>> I am not going to announce this pre to the masses, I will not do that > >>> until pre2. > >>> > >>> Please do not create new problems, fix existing ones instead. > >> > | | It would be great if the automake stuff could detect whether we need > | | -ljpeg or not on the LyX link line. If that were to happen, the Windows > | | build would be as easy as the Linux build process (in fact, it could > | | be done via RPM then). > > > | I will have a go at this one... > > > | Shouldn't be too hard to do. > > I have put somehting I think will work in cvs now, please test. Yes!!! Thank you. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35686/pgp0.pgp Description: PGP signature
Re: ftp lyx-1.2.0pre1
On Mon, Apr 01, 2002 at 12:12:06AM +0200, Paul Seelig wrote: > for i in $(files) ; do \ >/usr/bin/install -c -m 644 ./$i >/usr/src/Debian/LyX/lyx-1.2.0pre1/debian/tmp/usr/share/lyx/reLyX/$i ; \ > done > /bin/sh: files: command not found Not unexpectedly, since $(files) is the shell syntax for inserting process output. Probably something like $$files was meant... ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35685/pgp0.pgp Description: PGP signature
Re: LyX 1.2.0pre1
On Sat, Mar 30, 2002 at 01:36:05AM +0100, Lars Gullik Bjønnes wrote: > > I got tired of dragging my feat, so I just did it. > > Pre1 has been tagged as "lyx-1_2_0pre1" in CVS. > > I will upload a dist to ftp as soon as the build gets ready. > > I am not going to announce this pre to the masses, I will not do that > until pre2. > > Please do not create new problems, fix existing ones instead. It would be great if the automake stuff could detect whether we need -ljpeg or not on the LyX link line. If that were to happen, the Windows build would be as easy as the Linux build process (in fact, it could be done via RPM then). Right now, I have to ./configure and add the -ljpeg by hand. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35667/pgp0.pgp Description: PGP signature
Re: Absolute path of graphics file?
On Tue, Mar 26, 2002 at 05:09:27PM +, Angus Leeming wrote: > On Tuesday 26 March 2002 5:05 pm, Jean-Marc Lasgouttes wrote: > > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > > Angus> Shouldn't that be wrapped inside MakeAbsPath? Shall I do that? > > > > Please do not do that. I think the calls to os::external_path should > > be done only at the point when you plan to handover the path to an > > external program. In this case, you need to do that when you output > > the lyx file. I think the right place is in the output to stream. > > > > JMarc > > Fair enough. > > Kayvan, this patch works for me. Does it work for you? Yes, it works for me. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35490/pgp0.pgp Description: PGP signature
Re: Absolute path of graphics file?
On Tue, Mar 26, 2002 at 05:09:27PM +, Angus Leeming wrote: > On Tuesday 26 March 2002 5:05 pm, Jean-Marc Lasgouttes wrote: > > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > > Angus> Shouldn't that be wrapped inside MakeAbsPath? Shall I do that? > > > > Please do not do that. I think the calls to os::external_path should > > be done only at the point when you plan to handover the path to an > > external program. In this case, you need to do that when you output > > the lyx file. I think the right place is in the output to stream. > > > > JMarc > > Fair enough. > > Kayvan, this patch works for me. Does it work for you? Compiling. Will let you know in about a half hour (I blew away my lyx-build directory in a hasty display of "cleaning up") -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35481/pgp0.pgp Description: PGP signature
Re: Absolute path of graphics file?
On Tue, Mar 26, 2002 at 06:05:56PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Shouldn't that be wrapped inside MakeAbsPath? Shall I do that? > > Please do not do that. I think the calls to os::external_path should > be done only at the point when you plan to handover the path to an > external program. In this case, you need to do that when you output > the lyx file. I think the right place is in the output to stream. > > JMarc So that means my patch below is right? Index: src/insets/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/insets/ChangeLog,v retrieving revision 1.366 diff -u -r1.366 ChangeLog --- src/insets/ChangeLog2002/03/26 15:21:58 1.366 +++ src/insets/ChangeLog2002/03/26 16:49:47 @@ -1,3 +1,7 @@ +2002-03-26 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * insetgraphics.C (prepareFile): fix external path for Cygwin. + 2002-03-26 Angus Leeming <[EMAIL PROTECTED]> * insetgraphicsParams.C (Read): revert Herbert's fix and apply the Index: src/insets/insetgraphics.C === RCS file: /cvs/lyx/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.96 diff -u -r1.96 insetgraphics.C --- src/insets/insetgraphics.C 2002/03/26 15:21:58 1.96 +++ src/insets/insetgraphics.C 2002/03/26 16:49:47 @@ -99,6 +99,7 @@ #include "support/LAssert.h" #include "support/filetools.h" #include "support/lyxalgo.h" // lyx::count +#include "support/os.h" #include // For the std::max @@ -610,6 +611,7 @@ // // if it's a zipped one, than let LaTeX do the rest!!! string filename_ = MakeAbsPath(params().filename, buf->filePath()); + filename_ = os::external_path(filename_); bool const zipped = zippedFile(filename_); if ((zipped && params().noUnzip) || buf->niceFile) { -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35475/pgp0.pgp Description: PGP signature
Re: Absolute path of graphics file?
On Tue, Mar 26, 2002 at 04:55:26PM +, Angus Leeming wrote: > On Tuesday 26 March 2002 4:50 pm, Kayvan A. Sylvan wrote: > > On Tue, Mar 26, 2002 at 05:31:52PM +0100, Herbert Voss wrote: > > > Angus Leeming wrote: > > > >On Tuesday 26 March 2002 4:11 pm, Kayvan A. Sylvan wrote: > > > >>On Tue, Mar 26, 2002 at 09:20:53AM +0100, Herbert Voss wrote: > > > >>>Kayvan A. Sylvan wrote: > > > >>>>Latest CVS, a document that was loading just fine as of a few days > > > >>>>ago... Now I can no longer ``View Postscript''. > > > >> > > > >>I found the problem. A recent change makes LyX output the absolute path > > > >>to the graphics file (instead of a relative path). > > > > > > > >It will only output the absolute path if the file is stored as an > > > > absolute path. If you store it as relative to your doc, then it'll > > > > output the relative path. That has to conform to the principle of least > > > > surprise. > > > > > > these are the lines from latex(): > > > > > > string const latex_str = before + '{' + prepareFile(buf) + '}' + after; > > > os << latex_str; > > > > > > and prepareFile() makes it as an absolute path: > > > > > > string filename_ = MakeAbsPath(params().filename, buf->filePath()); > > > bool const zipped = zippedFile(filename_); > > > [...] > > > > Here's the patch. > > Shouldn't that be wrapped inside MakeAbsPath? Shall I do that? I think that should work (and will take care of other such bugs from popping up). ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35470/pgp0.pgp Description: PGP signature
Re: Absolute path of graphics file?
On Tue, Mar 26, 2002 at 05:31:52PM +0100, Herbert Voss wrote: > Angus Leeming wrote: > > >On Tuesday 26 March 2002 4:11 pm, Kayvan A. Sylvan wrote: > > > >>On Tue, Mar 26, 2002 at 09:20:53AM +0100, Herbert Voss wrote: > >> > >>>Kayvan A. Sylvan wrote: > >>> > >>>>Latest CVS, a document that was loading just fine as of a few days > >>>>ago... Now I can no longer ``View Postscript''. > >>>> > >>I found the problem. A recent change makes LyX output the absolute path > >>to the graphics file (instead of a relative path). > >> > > > >It will only output the absolute path if the file is stored as an absolute > >path. If you store it as relative to your doc, then it'll output the > >relative path. That has to conform to the principle of least surprise. > > > these are the lines from latex(): > > string const latex_str = before + '{' + prepareFile(buf) + '}' + after; > os << latex_str; > > and prepareFile() makes it as an absolute path: > > string filename_ = MakeAbsPath(params().filename, buf->filePath()); > bool const zipped = zippedFile(filename_); > [...] Here's the patch. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: src/insets/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/insets/ChangeLog,v retrieving revision 1.366 diff -u -r1.366 ChangeLog --- src/insets/ChangeLog2002/03/26 15:21:58 1.366 +++ src/insets/ChangeLog2002/03/26 16:49:47 @@ -1,3 +1,7 @@ +2002-03-26 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * insetgraphics.C (prepareFile): fix external path for Cygwin. + 2002-03-26 Angus Leeming <[EMAIL PROTECTED]> * insetgraphicsParams.C (Read): revert Herbert's fix and apply the Index: src/insets/insetgraphics.C === RCS file: /cvs/lyx/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.96 diff -u -r1.96 insetgraphics.C --- src/insets/insetgraphics.C 2002/03/26 15:21:58 1.96 +++ src/insets/insetgraphics.C 2002/03/26 16:49:47 @@ -99,6 +99,7 @@ #include "support/LAssert.h" #include "support/filetools.h" #include "support/lyxalgo.h" // lyx::count +#include "support/os.h" #include // For the std::max @@ -610,6 +611,7 @@ // // if it's a zipped one, than let LaTeX do the rest!!! string filename_ = MakeAbsPath(params().filename, buf->filePath()); + filename_ = os::external_path(filename_); bool const zipped = zippedFile(filename_); if ((zipped && params().noUnzip) || buf->niceFile) { msg35468/pgp0.pgp Description: PGP signature
Re: lyx & windows xp
On Tue, Mar 26, 2002 at 05:02:29PM +0100, Lars Ehrichs wrote: > Kayvan A. Sylvan wrote: > > > > I installed cygwin without tetex and x11. Xwin 5.3. lyx with the > > > setup.exe from cygwin. > > > I edited the lyxconfig and the startupbatchfile. When I start lyxwin32 I > > > get libX11.dll not found . > > > > > > Where do I get libx11.dll ??? ( I am using the latest stable version of > > > cygwin and lyxpatch4) > > > > You need to install XFree86. I use XFree86-4.1.0 > > The installation guide for windows explicitly said not to install the xfree > in cygwin ? Instead it should use the x-win32 I installed just for lyx ? Are > you running this configuration? Hmmm... XFree86-4.1.0 works for me. libX11.dll is definitely part of XFree86 (in /usr/X11R6/bin) To lyx-devel: We should make sure to change the README.Win32 to say that XFree86-4.1.0 works fine. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35459/pgp0.pgp Description: PGP signature
Absolute path of graphics file? (was: Re: Error with no Bounding Box)
On Tue, Mar 26, 2002 at 09:20:53AM +0100, Herbert Voss wrote: > Kayvan A. Sylvan wrote: > > >Latest CVS, a document that was loading just fine as of a few days ago... > >Now I can no longer ``View Postscript''. I found the problem. A recent change makes LyX output the absolute path to the graphics file (instead of a relative path). This bombs on Cygwin (but works on Linux/Unix) because the path output looks like this: \includegraphics[% scale=0.4]{/home/Kayvan/src/calendar/dia/calgen.eps} Since I am using fpTeX and not a cygwin compiled tetex, this will not work. What's interesting is that at the beginning of the LaTeX file, LyX outputs: \def\input@path{{C:/cygwin/home/Kayvan/src/calendar/}} Now, adding the C:/cygwin to the beginning of the graphics file path causes it to work. If we are going to output the absolute path, we should make sure to output the right path for Cygwin-based systems. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35457/pgp0.pgp Description: PGP signature
Error with no Bounding Box
Latest CVS, a document that was loading just fine as of a few days ago... Now I can no longer ``View Postscript''. Hopefully someone else can see this... ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35376/pgp0.pgp Description: PGP signature
Re: latest CVS: xforms_helpers.C compile problem
On Sat, Mar 23, 2002 at 08:32:12AM +0100, Herbert Voss wrote: > Kayvan A. Sylvan wrote: > > >Latest CVS does not compile: > > > >g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../images > >-I../../../src/ -I../../../src/frontends/ > >-I../../../src/frontends/controllers -I../../.. -I../../.. > >-I../../../boost -isystem /usr/X11R6/include -O2 -m486 > >-fno-strength-reduce -W -Wall -c xforms_helpers.C > >-Wp,-MD,.deps/xforms_helpers.TPlo > >xforms_helpers.C: In function `void updateWidgetsFromLength(FL_OBJECT *, > >FL_OBJECT *, const LyXLength &, const string &)': > >xforms_helpers.C:217: `::find' undeclared (first use here) > > > #include > > Herbert > > -- > http://www.lyx.org/help/ Yes. That works. Index: src/frontends/xforms/xforms_helpers.C === RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/xforms_helpers.C,v retrieving revision 1.40 diff -u -r1.40 xforms_helpers.C --- src/frontends/xforms/xforms_helpers.C 2002/03/22 11:41:23 1.40 +++ src/frontends/xforms/xforms_helpers.C 2002/03/23 09:10:43 @@ -12,6 +12,7 @@ #include // ofstream #include +#include #ifdef __GNUG_ #pragma implementation -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35230/pgp0.pgp Description: PGP signature
latest CVS: xforms_helpers.C compile problem
Latest CVS does not compile: g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../images -I../../../src/ -I../../../src/frontends/ -I../../../src/frontends/controllers -I../../.. -I../../.. -I../../../boost -isystem /usr/X11R6/include -O2 -m486 -fno-strength-reduce -W -Wall -c xforms_helpers.C -Wp,-MD,.deps/xforms_helpers.TPlo xforms_helpers.C: In function `void updateWidgetsFromLength(FL_OBJECT *, FL_OBJECT *, const LyXLength &, const string &)': xforms_helpers.C:217: `::find' undeclared (first use here) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35227/pgp0.pgp Description: PGP signature
Re: listerrors followup
Hi Jean-Marc, Here is my latest followup to the listerrors fixes. If you have not already done so, please apply this. The backward-porting is important since many people don't have python-2.2 installed as /usr/bin/python. The converter.C patch is important to allow people who have the setting "parselog=listerrors" in their build-program convertor to find "listerrors" without having to set an additional path element outside of LyX. This would mean that the "listerrors" change has no user-visible impact. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: lib/ChangeLog === RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.189 diff -u -r1.189 ChangeLog --- lib/ChangeLog 2002/03/21 19:26:18 1.189 +++ lib/ChangeLog 2002/03/21 19:48:24 @@ -6,6 +6,13 @@ * ui/default.ui: Change "What's this?" to "Tooltips". +2002-03-19 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * examples/listerrors.lyx: Fixed to run with python-1.5 as well + as with latest python-2.2 + + * scripts/listerrors: Re-generated from listerrors.lyx + 2002-03-19 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * create_fonts_dir: Index: lib/examples/listerrors.lyx === RCS file: /cvs/lyx/lyx-devel/lib/examples/listerrors.lyx,v retrieving revision 1.1 diff -u -r1.1 listerrors.lyx --- lib/examples/listerrors.lyx 2002/03/19 21:42:48 1.1 +++ lib/examples/listerrors.lyx 2002/03/21 19:48:24 @@ -259,7 +259,7 @@ \newline \newline -import sys +import sys, string \newline \newline @@ -363,10 +363,8 @@ \newline if lines: \newline -line = lines[-1] +line = lines.pop() \newline -lines = lines[:-1] -\newline else: \newline line = file.readline() @@ -391,7 +389,7 @@ \newline lines = __lines \newline - lines += (line,) # push a list onto the stack, not individual letters + lines.append(line) \newline \newline @@ -509,9 +507,9 @@ <>= \newline -if line.find(": unescaped << in documentation chunk") != -1: +if string.find(line, ": unescaped << in documentation chunk") != -1: \newline - line_parts = line.split(':') + line_parts = string.split(line, ':') \newline num_str = line_parts[1] \newline @@ -519,7 +517,7 @@ \newline i = 0 \newline - while i < num_len and num_str[i].isdigit(): i += 1 + while i < num_len and (num_str[i] in string.digits): i = i + 1 \newline if i == num_len: \newline @@ -538,13 +536,13 @@ \newline if (not retval): \newline - left = line.find("<<") + left = string.find(line, "<<") \newline if (left != -1) and ((left + 2) < len(line)) and \backslash \newline - (line[left+2:].find(">>") != -1): + (string.find(line[left+2:], ">>") != -1): \newline write_error(line, "noweb"); \newline @@ -586,7 +584,7 @@ \newline for msg in msgs_to_try: \newline -if line.find(msg) != -1: +if string.find(line, msg) != -1: \newline write_error(line, "noweb") \newline @@ -647,7 +645,7 @@ <>= \newline -first_space = line.find(' ') +first_space = string.find(line, ' ') \newline if first_space > 1: # The smallest would be "X: " \newline @@ -661,7 +659,7 @@ \newline num_end = first_space \newline - while next_line[num_end].isdigit(): num_end += 1 + while next_line[num_end] in string.digits: num_end = num_end + 1 \newline if num_end > first_space: # good! \newline @@ -685,12 +683,10 @@ <>= \newline num_str = next_line[first_space:num_end] -\newline -msgs = [] \newline -msgs += (line[first_space:],) +msgs = [line[first_space:]] \newline -msgs += (next_line[num_end + 1:],) +msgs.append(next_line[num_end + 1:]) \newline header_to_see = next_line[:num_end] \newline @@ -698,7 +694,7 @@ \newline while next_line and next_line[:num_end] == header_to_see: \newline - msgs += (next_line[num_end + 1:],) + msgs.append(next_line[num_end + 1:]) \newline next_line = getline() \newline @@ -754,9 +750,9 @@ \newline if line[0] == '"': # This is the first character of all xlc errors \newline -next_quote = line.find('"', 1) +next_quote = string.find(line, '"', 1) \newline -first_space = line.find(' ') +first_space = string.find(line, ' ') \newline if (next_quote != -1) and (fir
Re: some
On Wed, Mar 20, 2002 at 10:50:25PM +0100, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | Fresh compile with partial linking: > | real38m10.215s > | user29m28.150s > | sys 1m32.860s > | du -sh > | 353M. > > > regular ar archives: > real34m6.222s > user28m2.530s > sys 1m30.440s > du -sh > 359M. > > So the question is if partial linking is worth it. > IMO it adds unnecessary complexity to the build process, but I am happy since I can now build again on my laptop. ;-) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35125/pgp0.pgp Description: PGP signature
Re: make file cygwin take two
On Wed, Mar 20, 2002 at 08:11:16PM +, Angus Leeming wrote: > On Wednesday 20 March 2002 8:03 pm, Kayvan A. Sylvan wrote: > > I still have to add "-ljpeg" by hand into src/Makefile (some recent > > change that I have not tracked down yet), but I can build lyx on > > WinXP again! > > Perhaps line 394 in src/frontends/xformsGImage.C has something to do with > this? > flimage_enable_jpeg(); > > (If you're using xforms 0.89.x, x>=5...) > > Angus Yes, I am using xforms-0.89.6 on Cygwin. Does that mean we should add some magic to the build process to add the "-ljpeg" dependency if using xforms-0.89.5? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35114/pgp0.pgp Description: PGP signature
Re: make file cygwin take two
On Wed, Mar 20, 2002 at 07:47:07PM +0100, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | This is what I run with now. > | It would be nice if some cygwin people could test it (and of course > | try with the bool in LYX_CHECK_LDR set to false. > > > | I will probably require some help in getting the LYX_CHECK_LDR > | correct. > > Would this be ok as a first approximation: > > dnl bla bla > AC_DEFUN(LYX_CHECK_LDR, > [ > if test x$av_cv_cygwin = xno -a x$lt_cv_prog_gnu_ld = xyes ; then > AM_CONDITIONAL(USE_LD_R, true) > else > AM_CONDITIONAL(USE_LD_R, false) > fi > ]) > > -- > Lgb I tested with the changes in CVS, and it works beautifully! I still have to add "-ljpeg" by hand into src/Makefile (some recent change that I have not tracked down yet), but I can build lyx on WinXP again! Thank you, Lars. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35111/pgp0.pgp Description: PGP signature
Re: emacs magic
On Wed, Mar 20, 2002 at 07:04:25PM +, Angus Leeming wrote: > Anyone know how to stop emacs automatically indenting namespaces and > extern "C" blocks? > > Angus M-x fundamental-mode ;-) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35104/pgp0.pgp Description: PGP signature
Re: mini-patch for xfonts
On Wed, Mar 20, 2002 at 01:45:14AM -0800, Kayvan A. Sylvan wrote: > I think this is right... No, it's not. ;-) Sorry for the noise. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35090/pgp0.pgp Description: PGP signature
math_cursor.C does not compile
math_cursor.C:823: warning: #warning This should probably take cellXOffset and cellYOffset into account math_cursor.C: In method `bool MathCursor::interpret(char)': math_cursor.C:1397: implicit declaration of function `int isalpha(...)' ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg35085/pgp0.pgp Description: PGP signature
mini-patch for xfonts
I think this is right... -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: lib/Makefile.am === RCS file: /cvs/lyx/lyx-devel/lib/Makefile.am,v retrieving revision 1.37 diff -u -r1.37 Makefile.am --- lib/Makefile.am 2002/03/19 22:49:56 1.37 +++ lib/Makefile.am 2002/03/20 09:44:41 @@ -32,7 +32,7 @@ encodings languages symbols LYXLIBDIRS = bind clipart doc examples help images kbd layouts scripts \ - templates tex ui xfonts + templates tex ui EXTRA_DIST = CREDITS chkconfig.ltx configure.cmd lyxrc.example \ external_templates $(LYXLIBDIRS) \ @@ -53,6 +53,7 @@ install-xfonts: files=`sed -e 's/^\([^ ]*\) .*$$/\1/' xfonts/fonts.dir` ; \ for i in $${files} ; do \ + rm -f $(DESTDIR)$(pkgdatadir)/xfonts/$$i \ ln -s `kpsewhich $$i` $(DESTDIR)$(pkgdatadir)/xfonts/$$i ; \ done $(INSTALL_DATA) xfonts/fonts.dir $(DESTDIR)$(pkgdatadir)/xfonts/fonts.dir msg35083/pgp0.pgp Description: PGP signature
Fix to listerrors stuff (backward-portability)
In the fine tradition of fixing my bugs AFTER my new stuff gets into CVS: This patch makes the listerrors stuff work with Python-1.5 (while it continues to work with later versions). ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: lib/ChangeLog === RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.187 diff -u -r1.187 ChangeLog --- lib/ChangeLog 2002/03/19 22:49:56 1.187 +++ lib/ChangeLog 2002/03/20 07:32:47 @@ -1,3 +1,10 @@ +2002-03-19 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * examples/listerrors.lyx: Fixed to run with python-1.5 as well + as with latest python-2.2 + + * scripts/listerrors: Re-generated from listerrors.lyx + 2002-03-19 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * create_fonts_dir: Index: lib/examples/listerrors.lyx === RCS file: /cvs/lyx/lyx-devel/lib/examples/listerrors.lyx,v retrieving revision 1.1 diff -u -r1.1 listerrors.lyx --- lib/examples/listerrors.lyx 2002/03/19 21:42:48 1.1 +++ lib/examples/listerrors.lyx 2002/03/20 07:32:47 @@ -259,7 +259,7 @@ \newline \newline -import sys +import sys, string \newline \newline @@ -363,10 +363,8 @@ \newline if lines: \newline -line = lines[-1] +line = lines.pop() \newline -lines = lines[:-1] -\newline else: \newline line = file.readline() @@ -391,7 +389,7 @@ \newline lines = __lines \newline - lines += (line,) # push a list onto the stack, not individual letters + lines.append(line) \newline \newline @@ -509,9 +507,9 @@ <>= \newline -if line.find(": unescaped << in documentation chunk") != -1: +if string.find(line, ": unescaped << in documentation chunk") != -1: \newline - line_parts = line.split(':') + line_parts = string.split(line, ':') \newline num_str = line_parts[1] \newline @@ -519,7 +517,7 @@ \newline i = 0 \newline - while i < num_len and num_str[i].isdigit(): i += 1 + while i < num_len and (num_str[i] in string.digits): i = i + 1 \newline if i == num_len: \newline @@ -538,13 +536,13 @@ \newline if (not retval): \newline - left = line.find("<<") + left = string.find(line, "<<") \newline if (left != -1) and ((left + 2) < len(line)) and \backslash \newline - (line[left+2:].find(">>") != -1): + (string.find(line[left+2:], ">>") != -1): \newline write_error(line, "noweb"); \newline @@ -586,7 +584,7 @@ \newline for msg in msgs_to_try: \newline -if line.find(msg) != -1: +if string.find(line, msg) != -1: \newline write_error(line, "noweb") \newline @@ -647,7 +645,7 @@ <>= \newline -first_space = line.find(' ') +first_space = string.find(line, ' ') \newline if first_space > 1: # The smallest would be "X: " \newline @@ -661,7 +659,7 @@ \newline num_end = first_space \newline - while next_line[num_end].isdigit(): num_end += 1 + while next_line[num_end] in string.digits: num_end = num_end + 1 \newline if num_end > first_space: # good! \newline @@ -685,12 +683,10 @@ <>= \newline num_str = next_line[first_space:num_end] -\newline -msgs = [] \newline -msgs += (line[first_space:],) +msgs = [line[first_space:]] \newline -msgs += (next_line[num_end + 1:],) +msgs.append(next_line[num_end + 1:]) \newline header_to_see = next_line[:num_end] \newline @@ -698,7 +694,7 @@ \newline while next_line and next_line[:num_end] == header_to_see: \newline - msgs += (next_line[num_end + 1:],) + msgs.append(next_line[num_end + 1:]) \newline next_line = getline() \newline @@ -754,9 +750,9 @@ \newline if line[0] == '"': # This is the first character of all xlc errors \newline -next_quote = line.find('"', 1) +next_quote = string.find(line, '"', 1) \newline -first_space = line.find(' ') +first_space = string.find(line, ' ') \newline if (next_quote != -1) and (first_space > next_quote): # no space inisde quotes @@ -765,7 +761,7 @@ \newline num_start = num_end = first_space + 6 \newline -while line[num_end].isdigit(): num_end += 1 +while line[num_end] in string.digits: num_end = num_end + 1 \newline if num_end > num_start: \newline Index: lib/scripts/listerrors === RCS file: /cvs/lyx/lyx-devel/lib/s
Re: cygwin build fix
On Tue, Mar 19, 2002 at 12:21:52AM +0100, Lars Gullik Bjønnes wrote: > > Ok, this is work in progress. I'd like those of you having problems > with ld -r on cygwin to try this. (Kayvan!) > > I also need some help to finish the LYX_CHECK_LDR function... > (Jean-Marc?) > > autogen and a configure is needed. > This works a lot better, but there are a few bugs: 1) in src/Makefile.am, make frontend/ into frontends/ 2) Running ./autogen.sh, I get the following messages: src/Makefile.am:24: lyx_DEPENDENCIES was already defined in condition TRUE, which implies condition USE_LD_R_TRUE lyx_DEPENDENCIES (User, where = 24) = { TRUE => $(LYX_CONV_LIBS) \ @INCLUDED_SIGC@ } src/Makefile.am:24: lyx_DEPENDENCIES was already defined in condition TRUE, which implies condition USE_LD_R_FALSE lyx_DEPENDENCIES (User, where = 24) = { TRUE => $(LYX_CONV_LIBS) \ @INCLUDED_SIGC@ USE_LD_R_TRUE => mathed/libmathed.o insets/libinsets.o frontends/libfrontends.o graphics/libgraphics.o support/libsupport.o } 3) The resulting src/Makefile contains 2 separate lyx_DEPENDENCIES: lyx_DEPENDENCIES = $(LYX_CONV_LIBS) \ ${top_builddir}/sigc++/libsigc.la [... later ...] #lyx_DEPENDENCIES = mathed/libmathed.o insets/libinsets.o \ # frontends/libfrontends.o graphics/libgraphics.o \ # support/libsupport.o lyx_DEPENDENCIES = mathed/libmathed.la \ insets/libinsets.la frontends/libfrontends.la \ graphics/libgraphics.la support/libsupport.la Commenting out the last one and leaving the first one works for me, with the following small change: 4) Unrelated to your change, but probably due to some other recent change (Jean-Marc?) lyx.exe now needs -ljpeg to link: I put "-ljpeg" in between -lforms and -lXpm in the lyx_ADD line This is a lot closer! ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg34603/pgp0.pgp Description: PGP signature
Re: Update on Windows build of lyx-1.2.0cvs (please apply patch)
On Fri, Mar 15, 2002 at 12:36:56PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> In regards to the WinXP build problem reported earlier (See > Kayvan> http://bugzilla.lyx.org/show_bug.cgi?id=260 for details), I > Kayvan> have some more info. > > Kayvan> It looks like "ld -r" used by ``libtool --mode=link'' just > Kayvan> does not work on Cygwin. > > Did you have more info on the subject, or is this assertion based on > the fact that LyX does not link under cygwin? I have read some messages in the cygwin mailing list archives that talk about similar problems with "ld -r", but no response to my specific question from the Cygwin people. > Kayvan> Since I managed to build the latest CVS after some work, I > Kayvan> thought I would share the procedure (and a small patch) in the > Kayvan> hopes that someone who understands the build process (Lars) > Kayvan> will go ahead and fix this for Cygwin. > > Kayvan> 1) Apply the small patch (attached). This patch is safe. > Kayvan> Please apply to CVS. > > It looks safe indeed. Lars, could you have a quick look? I want to > make sure I will not break the compilation for other frontends. At > least the first hunk is fine. I checked on all the targets I build on and there was no effect. > Kayvan> 4) Add the following to src/Makefile (right before the all: > Kayvan> rule) > > Kayvan>AM_MAKEFLAGS='CXXLINK=arhack $$@' > > Why can't you do > make CXXLINK=arhack That did not work. Also, you need the target library as the first argument (hence, the $$@ which gets resolved to $@). -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg34481/pgp0.pgp Description: PGP signature
lyx-cvs Problem with gcc-3.0.4 compilation on Cygwin
Anyone got any idea about this? Using the same procedure as I used for gcc-2.95, compiling lyx (latest CVS), I have the following: /usr/local/gcc3/bin/g++ -g -O -fno-rtti -fno-exceptions -W -Wall -o lyx.exe BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o FuncStatus.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o LyXView.o MenuBackend.o Painter.o PainterBase.o ParagraphParameters.o Spacing.o TextCache.o Thesaurus.o ToolbarDefaults.o WorkArea.o XFormsView.o box.o buffer.o bufferlist.o bufferparams.o bufferview_funcs.o chset.o converter.o debug.o encoding.o exporter.o font.o gettext.o importer.o intl.o iterators.o kbmap.o kbsequence.o language.o lastfiles.o lengthcommon.o lyx_cb.o lyx_gui.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o lyxtextclasslist.o lyxvc.o main.o minibuffer.o paragraph.o paragraph_pimpl.o screen.o sp_spell.o tabular.o tabular-old.o tabular_funcs.o tex-accent.o tex-strings.o texrow.o text.o text2.o tracer.o trans.o trans_mgr.o undo.o undo_funcs.o undostack.o vc-backend.o version.o vspace.o mathed/libmathed.o insets/libinsets.o frontends/libfrontends.o graphics/libgraphics.o support/libsupport.o ../sigc++/.libs/libsigc.a -lintl -lforms -lXpm -lSM -lICE -liberty -L/usr/X11R6/lib -lX11 frontends/libfrontends.o(Tooltips.o): In function `ZN4SigC12ObjectSlot0_Iv8TooltipsE6createEPS1_MS1_FvvE': /home/Kayvan/src/lyx-1.2.0cvs/src/frontends/xforms/../../../sigc++/handle.h(.ctor+0x0): undefined reference to `_GLOBAL__I__ZN8Tooltips8enabled_E' /home/Kayvan/src/lyx-1.2.0cvs/src/frontends/xforms/../../../sigc++/handle.h(.dtor+0x0): undefined reference to `_GLOBAL__D__ZN8Tooltips8enabled_E' frontends/libfrontends.o(form_filedialog.o): In function `ZN18FD_form_filedialogD2Ev': /home/Kayvan/src/lyx-1.2.0cvs/src/frontends/xforms/form_filedialog.C:14: undefined reference to `_GLOBAL__I__ZN18FD_form_filedialogD2Ev' /home/Kayvan/src/lyx-1.2.0cvs/src/frontends/xforms/form_filedialog.C:14: undefined reference to `_GLOBAL__D__ZN18FD_form_filedialogD2Ev' collect2: ld returned 1 exit status make[3]: *** [lyx.exe] Error 1 make[3]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src' make: *** [all-recursive] Error 1 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg34441/pgp0.pgp Description: PGP signature
Update on Windows build of lyx-1.2.0cvs (please apply patch)
In regards to the WinXP build problem reported earlier (See http://bugzilla.lyx.org/show_bug.cgi?id=260 for details), I have some more info. It looks like "ld -r" used by ``libtool --mode=link'' just does not work on Cygwin. Since I managed to build the latest CVS after some work, I thought I would share the procedure (and a small patch) in the hopes that someone who understands the build process (Lars) will go ahead and fix this for Cygwin. 1) Apply the small patch (attached). This patch is safe. Please apply to CVS. 2) ./autogen.sh; ./configure; make dist 3) unpack the newly created lyx-1.2.0cvs.tar.gz and do ./configure; make The make fails when trying to make libmathed.o 4) Add the following to src/Makefile (right before the all: rule) AM_MAKEFLAGS='CXXLINK=arhack $$@' where arhack is the following shell script: #!/bin/sh archive=$1; shift args="" while [ $# -ne 0 ] do f=$1; shift f=`echo $f | sed 's/\.lo$/.o/'` args="$args $f" done ar ru $archive $args ranlib $archive 4) make This time, the make fails at the final link phase for lyx.exe. Now, comment out the AM_MAKEFLAGS line and "make" You now have a working lyx. 5) make install Anyways... Please apply this patch. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: ChangeLog === RCS file: /cvs/lyx/lyx-devel/ChangeLog,v retrieving revision 1.824 diff -u -u -r1.824 ChangeLog --- ChangeLog 2002/03/14 14:03:54 1.824 +++ ChangeLog 2002/03/14 21:27:29 @@ -1,3 +1,8 @@ +2002-03-14 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * configure.in: Fix order of -lXpm and -lforms for + Cygwin linker. + 2002-03-14 Michael A. Koziarski <[EMAIL PROTECTED]> * configure.in: First stage of fixing the gnome compile problems. Index: configure.in === RCS file: /cvs/lyx/lyx-devel/configure.in,v retrieving revision 1.98 diff -u -u -r1.98 configure.in --- configure.in2002/03/14 14:03:54 1.98 +++ configure.in2002/03/14 21:27:29 @@ -191,7 +191,7 @@ FRONTEND="xforms" FRONTEND_GUILIB="xforms/*.lo" FRONTEND_INCLUDES="-I\$(srcdir)/xforms" - FRONTEND_LIBS="@XPM_LIB@ @XFORMS_LIB@" + FRONTEND_LIBS="@XFORMS_LIB@ @XPM_LIB@" FRONTEND_INFO=`cat < + + * Makefile.am (lyx_DEPENDENCIES): Swap the order of libfrontend + and libgraphics to build on Cygwin. + 2002-03-14 Juergen Vigna <[EMAIL PROTECTED]> * undo_funcs.C (textHandleUndo): do the right thing when updating Index: src/Makefile.am === RCS file: /cvs/lyx/lyx-devel/src/Makefile.am,v retrieving revision 1.114 diff -u -u -r1.114 Makefile.am --- src/Makefile.am 2002/03/13 18:24:43 1.114 +++ src/Makefile.am 2002/03/14 21:27:30 @@ -9,8 +9,8 @@ bin_PROGRAMS = lyx lyx_DEPENDENCIES = mathed/libmathed.o insets/libinsets.o \ - graphics/libgraphics.o \ frontends/libfrontends.o \ + graphics/libgraphics.o \ support/libsupport.o \ @INCLUDED_SIGC@ msg34435/pgp0.pgp Description: PGP signature
Another tiny Literate.lyx fix
Looks like my other fix broke build-listerrors. Please apply. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: lib/ChangeLog === RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.183 diff -u -u -r1.183 ChangeLog --- lib/ChangeLog 2002/03/14 06:12:36 1.183 +++ lib/ChangeLog 2002/03/14 18:30:32 @@ -1,3 +1,7 @@ +2002-03-14 Kayvan A. Sylvan <[EMAIL PROTECTED]> + * examples/Literate.lyx: Small fix to make sure build-listerrors + still works. + 2002-03-14 Allan Rae <[EMAIL PROTECTED]> * bind/sv_menus.bind: Index: lib/examples/Literate.lyx === RCS file: /cvs/lyx/lyx-devel/lib/examples/Literate.lyx,v retrieving revision 1.5 diff -u -u -r1.5 Literate.lyx --- lib/examples/Literate.lyx 2002/03/13 13:25:45 1.5 +++ lib/examples/Literate.lyx 2002/03/14 18:30:32 @@ -952,6 +952,8 @@ \newline #!/bin/sh \newline +if [ -z "$NOWEB_SOURCE" ]; then NOWEB_SOURCE=Literate.nw; fi +\newline notangle -L -Rlisterrors.c ${NOWEB_SOURCE} > listerrors.c \newline gcc -g -o listerrors listerrors.c msg34432/pgp0.pgp Description: PGP signature
A small patch to Literate.lyx
Hi folks, This is a small Literate.lyx patch. I am still thinking about the best way to solve Bug #190 ( http://bugzilla.lyx.org/show_bug.cgi?id=190 ) and so needed to look at Literate.lyx, which is when I came across this problem. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: ChangeLog === RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.181 diff -u -u -r1.181 ChangeLog --- ChangeLog 2002/03/12 11:32:24 1.181 +++ ChangeLog 2002/03/12 17:48:25 @@ -1,3 +1,9 @@ +2002-03-12 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * examples/Literate.lyx: Fixed build-script section to work + with lyx tempdir. As it was, you could not build-program + when opening Literate.lyx from within LyX. + 2002-03-12 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * kbd/bg-bds-1251.kmap: new keyboard mapping for bulgarian Index: examples/Literate.lyx === RCS file: /cvs/lyx/lyx-devel/lib/examples/Literate.lyx,v retrieving revision 1.4 diff -u -u -r1.4 Literate.lyx --- examples/Literate.lyx 2000/11/03 11:21:36 1.4 +++ examples/Literate.lyx 2002/03/12 17:48:25 @@ -1,5 +1,5 @@ -#LyX 1.1 created this file. For more info see http://www.lyx.org/ -\lyxformat 2.16 +#LyX 1.2 created this file. For more info see http://www.lyx.org/ +\lyxformat 220 \textclass literate-article \language english \inputencoding default @@ -11,6 +11,8 @@ \paperpackage a4 \use_geometry 0 \use_amsmath 0 +\use_natbib 0 +\use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 @@ -32,19 +34,29 @@ Edmar Wienskoski Jr. \newline [EMAIL PROTECTED] -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard Modified by Bernard Michael Hurley [EMAIL PROTECTED] Don't blame Edmar for any errors that have crept in! -\end_float +\end_inset + + \layout Date -\latex latex +\begin_inset ERT +status Collapsed +\layout Standard + \backslash today +\end_inset + + \layout Standard @@ -185,14 +197,18 @@ \family default , a program name and line number. There is no special requirement on the input strings, they can be anything. -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard This function has been slightly changed from EW's original to make scanning a bit easier with LaTeX::scanLogFile(). The test has been added because LyX can crash if empty lines are allowed here --- I can't figure out why! --- BMH -\end_float +\end_inset + + \layout Scrap <>= @@ -711,13 +727,17 @@ superfluous information from gcc messages, namely the name of the noweb file and the line number of the Error. -\begin_float footnote +\begin_inset Foot +collapsed true + \layout Standard More could be done. For instance, some way of distinguishing between gcc Errors and Warnings should be devised. -\end_float +\end_inset + + \layout Scrap <>= @@ -930,9 +950,9 @@ <>= \newline -#!/usr/local/bin/bash +#!/bin/sh \newline -notangle -L -Rlisterrors.c Literate.nw > listerrors.c +notangle -L -Rlisterrors.c ${NOWEB_SOURCE} > listerrors.c \newline gcc -g -o listerrors listerrors.c \newline @@ -955,7 +975,7 @@ #!/bin/sh \newline -notangle -Rbuild-script $1 | sh +notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh \layout LyX-Code \the_end msg34310/pgp0.pgp Description: PGP signature
small fix for gcc-3.0.4
lyxsum.C won't compile without this patch: -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: src/support/lyxsum.C === RCS file: /cvs/lyx/lyx-devel/src/support/lyxsum.C,v retrieving revision 1.23 diff -u -r1.23 lyxsum.C --- src/support/lyxsum.C2002/02/16 15:59:55 1.23 +++ src/support/lyxsum.C2002/03/10 10:08:33 @@ -89,6 +89,10 @@ } // namespace #if HAVE_DECL_ISTREAMBUF_ITERATOR +using std::endl; +using std::ifstream; +using std::istreambuf_iterator; + unsigned long lyx::sum(string const & file) { lyxerr[Debug::FILES] << "lyx::sum() using istreambuf_iterator (fast)" msg34196/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
On Fri, Mar 08, 2002 at 09:44:04AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> Is there anybody looking at this? Currently, we have lost the > Kayvan> ability to compile LyX under Win32. > > Could you try to ask on cygwin lists about this? I did a google > search, but did not find anything. I think it is supposed to work. Well, there is some stuff about "ld -r" and relocation problems, but nothing that offers a solution. I just sent a message to the Cygwin list. P.S. Wish me luck, I am going to an interview for another consulting gig this afternoon. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg34174/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
On Mon, Mar 04, 2002 at 12:04:23PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: | Any more > Lars> developments on this? > > Lars> As I see it, it is supposed to work. > > Lars> And I like to know why it does not work (not just that it > Lars> doesn't). Does ld -r work at all (should be easy to test with > Lars> some for-this-purpose created object files.) > > Google provides an old mailing list message related to that. Could it > be that the bug still exists? > http://www.cygwin.com/ml/cygwin/1999-09/msg00376.html > > [Reading] Actually, it seems that the symptoms from the original poster are > different... > > What about asking libtool/cygwin/binutils people? > > JMarc Is there anybody looking at this? Currently, we have lost the ability to compile LyX under Win32. I will enter this bug in the bugzilla if no one has done it already. This qualifies as a showstopper, in my opinion. ---Kayvan msg34131/pgp0.pgp Description: PGP signature
Re: what is listerrors...
On Wed, Mar 06, 2002 at 02:22:45PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> and why is it installed? -rw-rw-r-- 1 root system 0 Mar 6 12:18 > Angus> /usr/local/bin/listerrors-1.2.0cvs > > This is needed by the litterate programming stuff. For some reason, a > 0 length script is created when noweb is not installed. This is lame. > > JMarc Here is the fix. build-listerrors will still create an empty listerrors, which will not be installed. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: lib/ChangeLog === RCS file: /cvs/lyx/lyx-devel/lib/ChangeLog,v retrieving revision 1.174 diff -u -u -r1.174 ChangeLog --- lib/ChangeLog 2002/03/05 16:18:01 1.174 +++ lib/ChangeLog 2002/03/06 20:34:53 @@ -1,3 +1,7 @@ +2002-03-05 Kayvan A. Sylvan <[EMAIL PROTECTED]> + + * Makefile.am: Fix bug with installing an empty listerrors. + 2002-03-05 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * CREDITS: document that Martin Vermeer is also a very good bug Index: lib/Makefile.am === RCS file: /cvs/lyx/lyx-devel/lib/Makefile.am,v retrieving revision 1.32 diff -u -u -r1.32 Makefile.am --- lib/Makefile.am 2002/01/17 17:16:19 1.32 +++ lib/Makefile.am 2002/03/06 20:34:53 @@ -3,7 +3,6 @@ lyxrc.defaults doc/LyXConfig.lyx MAINTAINERCLEANFILES = $(srcdir)/Makefile.in listerrors SUBDIRS = reLyX -bin_SCRIPTS = listerrors M4=m4 CHMOD=chmod @@ -54,11 +53,14 @@ $(INSTALL_DATA) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \ done -install-exec-local: libinstalldirs +install-exec-local: libinstalldirs listerrors files=`cd ${srcdir} ; echo $(LYXSCRIPTS)` ; \ for i in $${files} ; do \ $(INSTALL_SCRIPT) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \ done + if [ -s listerrors ]; then \ + $(INSTALL_SCRIPT) listerrors $(DESTDIR)$(bindir)/listerrors; \ + fi uninstall-local: @$(NORMAL_UNINSTALL)
Re: Latest CVS: compile problems on WinXP
On Mon, Mar 04, 2002 at 09:45:13AM +0100, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | Any more developments on this? > > As I see it, it is supposed to work. > > And I like to know why it does not work (not just that it doesn't). > Does ld -r work at all (should be easy to test with some > for-this-purpose created object files.) I don't know enough about this stuff to test it. If someone wants to hand-hold me through this, I will be happy to test and report back results. As it is right now, I know that I was able to compile and link lyx on 2/15/02 and I can not do so now. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33866/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
Any more developments on this? On Sat, Mar 02, 2002 at 07:05:02AM -0800, Kayvan A. Sylvan wrote: > > > > checking for ld used by GCC... (cached) /usr/bin/ld > > checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes > > checking for /usr/bin/ld option to reload object files... (cached) -r > > > > I'd like to see what these are on Cygwin. > > checking for ld used by GCC... (cached) /usr/i686-pc-cygwin/bin/ld.exe > checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... (cached) yes > checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... >(cached) -r > > > I do not want to revert the ld -r work until we know what happens on > > platforms where it does not work. > > There you go. The configure thinks it works. > > I removed config.cache and re-ran configure. This is the relevant snippet > from the config.log: > > configure:4243: checking for ld used by GCC > configure:4311: checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld > GNU ld version 2.11.92 20011001 > configure:4328: checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object >files > > I hope this helps. > ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33858/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
On Sat, Mar 02, 2002 at 10:49:58AM +0100, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | On Sat, Mar 02, 2002 at 12:02:59AM +0100, Lars Gullik Bjønnes wrote: > >> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > >> > >> >> /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol >`bool text$lexicographical_compare(signed >char const *, signed char const *, signed char const *, signed char const *)' which >is not being output > >> > > >> | As a followup, I get essentially the same set of errors when compiling > >> | with gcc-2.95 or with gcc-3.0.3 on Cygwin. > >> > > >> | Any ideas? Andre? Claus? > >> > >> Most likely a binutils problem (ie. the linker) > >> > >> So this was why we didn't use ld -r earlier... > > > | I guess we need to either revert this change or make it optional based > | on platform. > > I'd like you to check what the results of configure is. > Configure/libtool checks: > > checking for ld used by GCC... (cached) /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes > checking for /usr/bin/ld option to reload object files... (cached) -r > > I'd like to see what these are on Cygwin. checking for ld used by GCC... (cached) /usr/i686-pc-cygwin/bin/ld.exe checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... (cached) yes checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... (cached) -r > I do not want to revert the ld -r work until we know what happens on > platforms where it does not work. There you go. The configure thinks it works. I removed config.cache and re-ran configure. This is the relevant snippet from the config.log: configure:4243: checking for ld used by GCC configure:4311: checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld GNU ld version 2.11.92 20011001 configure:4328: checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files I hope this helps. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33844/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
On Sat, Mar 02, 2002 at 12:02:59AM +0100, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > >> /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol >`bool text$lexicographical_compare(signed >char const *, signed char const *, signed char const *, signed char const *)' which >is not being output > > > | As a followup, I get essentially the same set of errors when compiling > | with gcc-2.95 or with gcc-3.0.3 on Cygwin. > > > | Any ideas? Andre? Claus? > > Most likely a binutils problem (ie. the linker) > > So this was why we didn't use ld -r earlier... I guess we need to either revert this change or make it optional based on platform. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33841/pgp0.pgp Description: PGP signature
Re: Latest CVS: compile problems on WinXP
On Fri, Mar 01, 2002 at 10:27:34AM -0800, Kayvan A. Sylvan wrote: > > The last time I compiled LyX on Windows was 2/15/02 > > Today, I get the following problem. Any ideas? > > Making all in mathed [...] > /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `bool >text$lexicographical_compare(signed char >const *, signed char const *, signed char const *, signed char const *)' which is not >being output As a followup, I get essentially the same set of errors when compiling with gcc-2.95 or with gcc-3.0.3 on Cygwin. Any ideas? Andre? Claus? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33838/pgp0.pgp Description: PGP signature
Latest CVS: compile problems on WinXP
`basic_string, __default_alloc_template > * text$__uninitialized_copy_aux, __default_alloc_template > const *, basic_string, __default_alloc_template > *>(basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > *, __false_type)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template > * text$__uninitialized_copy_aux, __default_alloc_template > const *, basic_string, __default_alloc_template > *>(basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > *, __false_type)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template > * text$__uninitialized_copy_aux, __default_alloc_template > const *, basic_string, __default_alloc_template > *>(basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > *, __false_type)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template > * text$__uninitialized_copy_aux, __default_alloc_template > const *, basic_string, __default_alloc_template > *>(basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > const *, basic_string, __default_alloc_template > *, __false_type)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/formula.C:608: reloc refers to symbol `basic_string, __default_alloc_template >::Rep::text$clone(void)' which is not being output [... about 6000 more lines ...] /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/math_xymatrixinset.C:65: reloc refers to symbol `text$_$_13MathNestInset' which is not being output /home/Kayvan/src/lyx-1.2.0cvs/src/mathed/math_xymatrixinset.C:65: reloc refers to symbol `text$__tf13MathNestInset' which is not being output make[3]: *** [libmathed.o] Error 1 make[3]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src/mathed' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/Kayvan/src/lyx-1.2.0cvs/src' make: *** [all-recursive] Error 1 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33833/pgp0.pgp Description: PGP signature
Re: Another automated build failure
On Fri, Mar 01, 2002 at 10:08:10AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> A request to any developer who adds new files to CVS, please > Kayvan> do: > > Kayvan> make dist > > Kayvan> and check that your new files made it into the tarball. > > Kayvan> That way, my automated builds will continue to work. > > But you do this already for us, right? So why would we bother? I take it you all like getting my "You dolt, you forgot to add new_file_random_inset.h to the Makefile.am" messages? Perhahps I should institute an anti-award as an incentive. The winner of the "Monthly Breakage of `make dist''" honor for this month is... ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33797/pgp0.pgp Description: PGP signature
Another automated build failure
Probably related to the first: make[1]: Entering directory `/home/kayvan/src/lyx/src' make[1]: *** No rule to make target `figure.h', needed by `distdir'. Stop. make[1]: Leaving directory `/home/kayvan/src/lyx/src' A request to any developer who adds new files to CVS, please do: make dist and check that your new files made it into the tarball. That way, my automated builds will continue to work. ---Kayvan [[ Available for consulting. http://www.sylvan.com/~kayvan/Resume.html ]] -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33724/pgp0.pgp Description: PGP signature
Automated build fails
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../.. -I../.. -I../../boost +-isystem /usr/X11R6/include -O2 -m486 -fno-strength-reduce -W -Wall -c +insetgraphics.C -Wp,-MD,.deps/insetgraphics.TPlo In file included from insetgraphics.C:92: ../../src/insets/insetgraphics.h:22: graphics/GraphicsTypes.h: No such file or +directory In file included from insetgraphics.C:95: ../../src/graphics/GraphicsCache.h:24: GraphicsTypes.h: No such file or +directory In file included from insetgraphics.C:96: ../../src/graphics/GraphicsImage.h:25: GraphicsTypes.h: No such file or +directory Maybe another "make dist" issue? ---Kayvan [[ Available for consulting. http://www.sylvan.com/~kayvan/Resume.html ]] -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33690/pgp0.pgp Description: PGP signature
Make dist problem
This small patch finishes the removal of the vms_define.h: -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: src/Makefile.am === RCS file: /cvs/lyx/lyx-devel/src/Makefile.am,v retrieving revision 1.104 diff -u -u -r1.104 Makefile.am --- src/Makefile.am 2002/01/09 09:36:33 1.104 +++ src/Makefile.am 2002/02/28 00:30:16 @@ -232,7 +232,6 @@ vc-backend.h \ version.C \ version.h \ - vms_defines.h \ vspace.C \ vspace.h
Re: valgrind
On Tue, Feb 19, 2002 at 02:22:06PM +0100, [EMAIL PROTECTED] wrote: > Hi, > > this memory checker seems to be great! IMHO every LyX developer/tester > should use it. AFAIK it is the only real alternative to Purify so far as > it even finds uninitialized variables. I wonder why I have never heard > of "valgrind" before. > > Thanks for the hint, John. > > Michael Where is valgrind to be found again? -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33227/pgp0.pgp Description: PGP signature
Re: ./autogen.sh: automake generates strange library/libtool complaints.
On Tue, Feb 19, 2002 at 05:25:06PM +0100, Jean-Marc Lasgouttes wrote: > Kayvan> [kayvan@camel ~]$ automake --version automake (GNU automake) > Kayvan> 1.4 > > Kayvan> The other suggestions (make distclean and doing a fresh get) > Kayvan> did not work. > > I think the trick is to have at least automake 1.4-p5 (or 1.5). Okay. automake-1.5 works. Thanks. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33226/pgp0.pgp Description: PGP signature
Re: ./autogen.sh: automake generates strange library/libtool complaints.
On Tue, Feb 19, 2002 at 12:41:36PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> On Mon, Feb 18, 2002 at 12:04:19PM +0100, Jean-Marc Lasgouttes > Kayvan> wrote: > >> > R> Running ./autogen on my FreeBSD PC, generates strange complaints > R> about libraries. Is this a bug in CVS? > >> No, you are supposed to ignore them for now. > > Kayvan> Well... I can not... Since "make dist" is broken right now, > Kayvan> the daily CVS builds are failing. > > What version of automake? > > JMarc [kayvan@camel ~]$ automake --version automake (GNU automake) 1.4 The other suggestions (make distclean and doing a fresh get) did not work. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33199/pgp0.pgp Description: PGP signature
Automatic CVS lyx build failing
Would someone please fix this? My automated builds have been failing. Here is an edited log showing the errors. - Forwarded message from Cron Daemon - Date: Mon, 18 Feb 2002 15:00:06 -0800 From: root To: kayvan Subject: Cron bin/lyxrpm cvs server: Updating . cvs server: Updating boost [...] cvs server: warning: src/support/syscall.C is not (any longer) pertinent cvs server: warning: src/support/syscall.h is not (any longer) pertinent U src/support/systemcall.C U src/support/systemcall.h cvs server: Updating src/xtl Locating GNU m4... found: m4 Generate acinclude.m4... done. Building macros... . lib/reLyX sigc++ done. Building config header template... . sigc++ done. Building Makefile templates... . automake: src/mathed/Makefile.am: `libmathed.o' is not a standard libtool library name automake: src/graphics/Makefile.am: `libgraphics.o' is not a standard libtool library name automake: src/insets/Makefile.am: `libinsets.o' is not a standard libtool library name automake: src/support/Makefile.am: `libsupport.o' is not a standard libtool library name automake: src/frontends/Makefile.am: `libfrontends.o' is not a standard libtool library name automake: src/frontends/support/Makefile.am: `libfrontendsupport.o' is not a standard libtool library name automake: src/frontends/controllers/Makefile.am: `libcontrollers.o' is not a standard libtool library name automake: src/frontends/xforms/Makefile.am: `libxforms.o' is not a standard libtool library name automake: src/frontends/qt2/Makefile.am: `libqt2.o' is not a standard libtool library name automake: src/frontends/qt2/moc/Makefile.am: `libqt2moc.o' is not a standard libtool library name automake: src/frontends/qt2/ui/Makefile.am: `libqt2ui.o' is not a standard libtool library name automake: src/frontends/qt2/ui/moc/Makefile.am: `libqt2uimoc.o' is not a standard libtool library name lib/reLyX sigc++ done. Building configure... . lib/reLyX sigc++ done. Building lib/configure ... done. run "./configure ; make" loading cache ./config.cache configuring LyX version 1.2.0cvs WARNING: This is a development version. Expect bugs. checking host system type... i686-pc-linux-gnu [...] creating src/Makefile make[1]: Leaving directory `/home/kayvan/src/lyx/src' make[1]: Entering directory `/home/kayvan/src/lyx/src' here=`cd .. && pwd`; \ top_distdir=`cd ../lyx-1.2.0cvs && pwd`; \ distdir=`cd ../lyx-1.2.0cvs/src && pwd`; \ cd .. \ && automake --include-deps --build-dir=$here --srcdir-name=.. --output-dir=$top_distdir --foreign src/Makefile for subdir in mathed insets graphics support frontends; do \ if test "$subdir" = .; then :; else \ test -d ../lyx-1.2.0cvs/src/$subdir \ || mkdir ../lyx-1.2.0cvs/src/$subdir \ || exit 1; \ chmod 777 ../lyx-1.2.0cvs/src/$subdir; \ (cd $subdir && make top_distdir=../../lyx-1.2.0cvs distdir=../../lyx-1.2.0cvs/src/$subdir distdir) \ || exit 1; \ fi; \ done make[2]: Entering directory `/home/kayvan/src/lyx/src/mathed' here=`cd ../.. && pwd`; \ top_distdir=`cd ../../lyx-1.2.0cvs && pwd`; \ distdir=`cd ../../lyx-1.2.0cvs/src/mathed && pwd`; \ cd ../.. \ && automake --include-deps --build-dir=$here --srcdir-name=../.. --output-dir=$top_distdir --foreign src/mathed/Makefile automake: src/mathed/Makefile.am: `libmathed.o' is not a standard libtool library name make[2]: *** [distdir] Error 1 make[2]: Leaving directory `/home/kayvan/src/lyx/src/mathed' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/kayvan/src/lyx/src' make: *** [distdir] Error 1 BUILD FAILED: lyx rpm - End forwarded message - -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33171/pgp0.pgp Description: PGP signature
Re: ./autogen.sh: automake generates strange library/libtool complaints.
On Mon, Feb 18, 2002 at 12:04:19PM +0100, Jean-Marc Lasgouttes wrote: > > R> Running ./autogen on my FreeBSD PC, generates strange complaints > R> about libraries. Is this a bug in CVS? > > No, you are supposed to ignore them for now. Well... I can not... Since "make dist" is broken right now, the daily CVS builds are failing. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33128/pgp0.pgp Description: PGP signature
Re: Conversion problems using Grace files
On Mon, Feb 18, 2002 at 11:13:40AM +0900, R. Lahaye wrote: > files. In other words, the following is not possible: > > \converter "user1" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > \converter "user2" "eps" "gnuplot -what_ever_option_to_EPS $$i" "" > > Regards, > Rob. I don't think that's right. There's nothing magic about "XPM" or "Noweb" or "User" in the converters preferences tab. As far as I understand it, your example should work. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33118/pgp0.pgp Description: PGP signature
Re: ERT Builder (menu-based :-)
On Sun, Feb 17, 2002 at 11:51:20PM +0100, Lars Gullik Bjønnes wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > | Here is an example of how one can provide a means of inserting simple (or not so > | simple) ERT commands into your document more easily. > > > | There is a whole set of commands which one regularly needs but are not provided > | (yet) as insets etc. Currently you have to insert them directly -- if you remember > | them. > > I must admit that I am not in favour. > IMHO support like this will easily become a cushion and a reason to > not implement the real thing. Also by adding support like this, we > must (or at least should) handle the transcription when (if) we get > support for the real thing. In addition it is very latex specific. > If/when we get the "real thing", we still have to provide some conversion mechanisms or compatibility with old documents, so I don't really see what the problem is with supporting such constructs in a more user-friendly way. It can only be a net plus for our users. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg33114/pgp0.pgp Description: PGP signature
Re: mathed AMS fonts
On Wed, Feb 13, 2002 at 02:35:42PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: > > Dekel> Why do you want it in lib/configure ? You only need to create a > Dekel> system fonts dir when doing make install (there is no point of > Dekel> having a user fonts dir). > > A user may want to download the fonts locally because they are not > available system-wide. Moreover, lib/configure is run when installing > a rpm (I think), so it is a good place. Yes, it is run upon install. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32951/pgp0.pgp Description: PGP signature
mini-patch for Win32 and GCC-3.X
Here is a mini-patch to let lyx compile with gcc-3.x on Win32. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: src/support/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/support/ChangeLog,v retrieving revision 1.66 diff -u -r1.66 ChangeLog --- src/support/ChangeLog 2002/02/08 17:07:14 1.66 +++ src/support/ChangeLog 2002/02/11 08:03:00 @@ -1,3 +1,7 @@ +2002-02-10 Kayvan Sylvan <[EMAIL PROTECTED]> + + * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X. + 2002-02-08 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * FileInfo.h: remove special cygwin code. Index: src/support/os_win32.C === RCS file: /cvs/lyx/lyx-devel/src/support/os_win32.C,v retrieving revision 1.5 diff -u -r1.5 os_win32.C --- src/support/os_win32.C 2002/02/08 14:32:17 1.5 +++ src/support/os_win32.C 2002/02/11 08:03:01 @@ -19,6 +19,8 @@ os::shell_type os::_shell = os::UNIX; unsigned long os::cp_ = 0; +using std::endl; + void os::init(int * /* argc */, char ** argv[]) { static bool initialized = false; if (initialized) return; msg32801/pgp0.pgp Description: PGP signature
Re: Nevermind [was: Re: gcc-3.0.3 compile errors on latest CVS]
On Sun, Feb 10, 2002 at 05:21:07PM -0800, Kayvan A. Sylvan wrote: > On Sun, Feb 10, 2002 at 05:14:43PM -0800, Kayvan A. Sylvan wrote: > > Hi folks, > > > > I get the following error when trying to compile LyX with gcc-3.0.3: > > > > > > /usr/local/gcc3/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost >-isystem /usr/X11R6/include -g -O -fno-exceptions -W -Wall -c DebugStream.C >-Wp,-MD,.deps/DebugStream.TPlo > > /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function > > Nevermind. > > I just uncommented the MODERN_STL_STREAMS in src/support/DebugStream.C > and it compiled. > > Maybe we could add a configure test to notice a modern STL implementation > and set this define automatically? I just checked and we have this test already, in configure.in, but somehow it's not working for me. I will investigate some more. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32797/pgp0.pgp Description: PGP signature
Nevermind [was: Re: gcc-3.0.3 compile errors on latest CVS]
On Sun, Feb 10, 2002 at 05:14:43PM -0800, Kayvan A. Sylvan wrote: > Hi folks, > > I get the following error when trying to compile LyX with gcc-3.0.3: > > > /usr/local/gcc3/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost >-isystem /usr/X11R6/include -g -O -fno-exceptions -W -Wall -c DebugStream.C >-Wp,-MD,.deps/DebugStream.TPlo > /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function Nevermind. I just uncommented the MODERN_STL_STREAMS in src/support/DebugStream.C and it compiled. Maybe we could add a configure test to notice a modern STL implementation and set this define automatically? -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32791/pgp0.pgp Description: PGP signature
gcc-3.0.3 compile errors on latest CVS
Hi folks, I get the following error when trying to compile LyX with gcc-3.0.3: /usr/local/gcc3/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -g -O -fno-exceptions -W -Wall -c DebugStream.C -Wp,-MD,.deps/DebugStream.TPlo /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function `virtual int teebuf::sync()': /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:102: within this context /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:103: within this context /usr/local/gcc3/include/g++-v3/bits/streambuf.tcc: In member function `virtual streamsize teebuf::xsputn(const char*, int)': /usr/local/gcc3/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:107: within this context /usr/local/gcc3/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:108: within this context /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function `virtual int teebuf::overflow(int)': /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:112: within this context /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:113: within this context /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function `virtual int debugbuf::sync()': /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:461: `int std::basic_streambuf<_CharT, _Traits>::sync() [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:148: within this context /usr/local/gcc3/include/g++-v3/bits/streambuf.tcc: In member function `virtual streamsize debugbuf::xsputn(const char*, int)': /usr/local/gcc3/include/g++-v3/bits/streambuf.tcc:155: `streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, int) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:152: within this context /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h: In member function `virtual int debugbuf::overflow(int)': /usr/local/gcc3/include/g++-v3/bits/std_streambuf.h:501: `typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type = _Traits::eof()) [with _CharT = char, _Traits = std::char_traits]' is protected DebugStream.C:156: within this context DebugStream.C: At global scope: DebugStream.C:168: field `fbuf' has incomplete type DebugStream.C: In constructor `DebugStream::DebugStream(const char*, Debug::type)': DebugStream.C:184: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:186: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C: In member function `void DebugStream::logFile(const char*)': DebugStream.C:202: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:206: `struct DebugStream::debugstream_internal' has no member named `fbuf' DebugStream.C:208: `struct DebugStream::debugstream_internal' has no member named `fbuf' -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32790/pgp0.pgp Description: PGP signature
Re: Semi-off-topic: gcc2 vs. gcc3
On Thu, Feb 07, 2002 at 09:17:31AM +0100, Lars Gullik Bjønnes wrote: > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > > | This list is the same set of files compiled with gcc-2.95.3. > > > | I compiled gcc-3.0.3 with CFLAGS=-O2. Did I do something wrong in > | the compile? (I used "make CFLAGS=-O2 bootstrap" first) > > > | The differences in the executable sizes are stunning! > > Use size to compare exe sizes. That gives me this info (new/*.exe compiled by gcc-3.0.3): [Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] size *.exe new/*.exe textdata bss dec hex filename 680963072 988 72156 119dc 0-0.exe 680963072 988 72156 119dc 0-2.exe 680963072 988 72156 119dc 0-3.exe 680963072 988 72156 119dc 0-4.exe 680963072 988 72156 119dc 0-6.exe 8294435841132 87660 1566c 1-0.exe 9062435841132 95340 1746c 1-6.exe 8243235841132 87148 1546c 2-0.exe 8243235841132 87148 1546c 2-1.exe 8243235841132 87148 1546c 2-2.exe 8243235841132 87148 1546c 2-3.exe 8294435841132 87660 1566c 2-4.exe 9011235841132 94828 1726c 2-5.exe 680963072 988 72156 119dc 2-9.exe 9779235841132 102508 1906c 3-0.exe 15769666563768 168120 290b8 new/0-0.exe 15769666563768 168120 290b8 new/0-2.exe 15769666563768 168120 290b8 new/0-3.exe 15769666563768 168120 290b8 new/0-4.exe 15769666563768 168120 290b8 new/0-6.exe 16332866563768 173752 2a6b8 new/1-0.exe 16025666563768 170680 29ab8 new/1-6.exe 16230466563768 172728 2a2b8 new/2-0.exe 16230466563768 172728 2a2b8 new/2-1.exe 16230466563768 172728 2a2b8 new/2-2.exe 16230466563768 172728 2a2b8 new/2-3.exe 16332866563768 173752 2a6b8 new/2-4.exe 15872066563768 169144 294b8 new/2-5.exe 15923266563768 169656 296b8 new/2-9.exe 16947266563768 179896 2beb8 new/3-0.exe > I guess you did not strip the files before comparing? Correct. No strip of either set of binaries. After running strip, here is the info: [Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] size *.exe new/*.exe textdata bss dec hex filename 680963072 988 72156 119dc 0-0.exe 680963072 988 72156 119dc 0-2.exe 680963072 988 72156 119dc 0-3.exe 680963072 988 72156 119dc 0-4.exe 680963072 988 72156 119dc 0-6.exe 8294435841132 87660 1566c 1-0.exe 9062435841132 95340 1746c 1-6.exe 8243235841132 87148 1546c 2-0.exe 8243235841132 87148 1546c 2-1.exe 8243235841132 87148 1546c 2-2.exe 8243235841132 87148 1546c 2-3.exe 8294435841132 87660 1566c 2-4.exe 9011235841132 94828 1726c 2-5.exe 680963072 988 72156 119dc 2-9.exe 9779235841132 102508 1906c 3-0.exe 15769666563768 168120 290b8 new/0-0.exe 15769666563768 168120 290b8 new/0-2.exe 15769666563768 168120 290b8 new/0-3.exe 15769666563768 168120 290b8 new/0-4.exe 15769666563768 168120 290b8 new/0-6.exe 16332866563768 173752 2a6b8 new/1-0.exe 16025666563768 170680 29ab8 new/1-6.exe 16230466563768 172728 2a2b8 new/2-0.exe 16230466563768 172728 2a2b8 new/2-1.exe 16230466563768 172728 2a2b8 new/2-2.exe 16230466563768 172728 2a2b8 new/2-3.exe 16332866563768 173752 2a6b8 new/2-4.exe 15872066563768 169144 294b8 new/2-5.exe 15923266563768 169656 296b8 new/2-9.exe 169472 66563768 179896 2beb8 new/3-0.exe -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32789/pgp0.pgp Description: PGP signature
Re: Chess board now a problem :(
On Fri, Feb 08, 2002 at 04:36:57PM +1000, Allan Rae wrote: > > stupid installations permissions problem > > > now I have a demo.fen but lyx isn't doing anything -- a file > containing only an external inset results in no output. > > demo.asc (from demo.fen) contains: > > +--+ > 8|[|E|v|e|n|t| > > wait a minute... xboard doesn't overwrite existing files when > renaming a previous game save by the looks... yes... really helpful. > No warning or anything... Yeah, a pet peeve of mine. It just appends!!! > It seems to be working now! Great. > All I want now is for it to work with pdfscreen which I have decided I > hate. Good luck!! ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32709/pgp0.pgp Description: PGP signature
Semi-off-topic: gcc2 vs. gcc3
I just compiled gcc-3.0.3 on Win2K/Cygnus for grins. My grin turned into a frozen mask of terror when I saw this: [Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] ls -l *.exe -rwxr-xr-x1 Kayvan None 1511629 Feb 6 18:22 0-0.exe* -rwxr-xr-x1 Kayvan None 1511629 Feb 6 18:22 0-2.exe* -rwxr-xr-x1 Kayvan None 1511629 Feb 6 18:22 0-3.exe* -rwxr-xr-x1 Kayvan None 1511629 Feb 6 18:23 0-4.exe* -rwxr-xr-x1 Kayvan None 1511629 Feb 6 18:23 0-6.exe* -rwxr-xr-x1 Kayvan None 1520075 Feb 6 18:23 1-0.exe* -rwxr-xr-x1 Kayvan None 1515018 Feb 6 18:23 1-6.exe* -rwxr-xr-x1 Kayvan None 1519015 Feb 6 18:23 2-0.exe* -rwxr-xr-x1 Kayvan None 1519015 Feb 6 18:23 2-1.exe* -rwxr-xr-x1 Kayvan None 1519015 Feb 6 18:23 2-2.exe* -rwxr-xr-x1 Kayvan None 1519453 Feb 6 18:24 2-3.exe* -rwxr-xr-x1 Kayvan None 1520513 Feb 6 18:24 2-4.exe* -rwxr-xr-x1 Kayvan None 1511224 Feb 6 18:24 2-5.exe* -rwxr-xr-x1 Kayvan None 1514405 Feb 6 18:24 2-9.exe* This is a bunch of extremely rudimentary C++ examples I have lying around. The above is the compiled file sizes using gcc-3.0.3. [Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] ls -l old/ total 2879 -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 0-0.exe* -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 0-2.exe* -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 0-3.exe* -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 0-4.exe* -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 0-6.exe* -rwxr-xr-x1 Kayvan None 221926 Feb 6 17:30 1-0.exe* -rwxr-xr-x1 Kayvan None 256874 Feb 6 17:30 1-6.exe* -rwxr-xr-x1 Kayvan None 220952 Feb 6 17:30 2-0.exe* -rwxr-xr-x1 Kayvan None 220952 Feb 6 17:30 2-1.exe* -rwxr-xr-x1 Kayvan None 220952 Feb 6 17:30 2-2.exe* -rwxr-xr-x1 Kayvan None 220952 Feb 6 17:30 2-3.exe* -rwxr-xr-x1 Kayvan None 221926 Feb 6 17:30 2-4.exe* -rwxr-xr-x1 Kayvan None 255586 Feb 6 17:30 2-5.exe* -rwxr-xr-x1 Kayvan None 184095 Feb 6 17:30 2-9.exe* [Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] This list is the same set of files compiled with gcc-2.95.3. I compiled gcc-3.0.3 with CFLAGS=-O2. Did I do something wrong in the compile? (I used "make CFLAGS=-O2 bootstrap" first) The differences in the executable sizes are stunning! ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32640/pgp0.pgp Description: PGP signature
Re: Latest CVS: Problem with Win32 LyX
On Wed, Feb 06, 2002 at 02:47:54PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> This is a recent problem (within the last week or so). On > Kayvan> Win32/Cygwin under Win2K: > > Kayvan> Trying to generate postscript from a document of class > Kayvan> literate-article, I was getting many LaTeX errors after > Kayvan> updating from CVS. > > Kayvan> I looked at the generated latex from Linux and from Win2k. > > Kayvan> The difference is that on Win2K, I am missing the > Kayvan> Textclass-specific commands (see below for the diff). Any idea > Kayvan> of why this could be happening? > > Do you still see this? > > JMarc No. Angus reversed his patch to the LatexFeatures stuff. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32634/pgp0.pgp Description: PGP signature
Re: Latest CVS: lyx startup core dump
On Mon, Feb 04, 2002 at 06:00:22PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> I was still seeing it, but apparently it was a problem with > Kayvan> XFree86 4.1.0 under Cygwin, not a LyX problem. It had gotten > Kayvan> into a weird state where some of the startup calls from LyX > Kayvan> were failing (I'm not exactly sure what happened). > > Kayvan> To me, it looked like an architecture-independant problem, > Kayvan> since I ran lyx on all the machines I have access to and I got > Kayvan> aborts all around. ;-) When I started thinking that my X > Kayvan> server had gotten wedged, I applied the Windows motto: "When > Kayvan> in doubt, reboot." and now all is fine. > > That's a bit surprising, since you backtrace points to an assert in > our symlink-following code. Did you symlink the lyx binary (does such > a thing even exist?). > > JMarc No, there was no symlink. This may still point to a bug in LyX, but it's not simply a "startup core dump" problem. The backtrace I sent was from a Linux machine, since it seemed to be happening everywhere for me. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32436/pgp0.pgp Description: PGP signature
Re: Dreaming of plugins...
On Mon, Feb 04, 2002 at 04:02:12PM +, Jules Bean wrote: > On Sat, Feb 02, 2002 at 07:30:16AM -0800, Kayvan A. Sylvan wrote: > > On Sat, Feb 02, 2002 at 09:58:16AM +, Jules Bean wrote: > > > As an example of the kind of thing I'm thinking of, categorists and > > > topologists often want to draw commutative diagrams. I'm neither, but > > > I have attended a category theory course, and I wrote up my notes in > > > LyX. I had to do with huge amounts of ERT (there may even have been > > > some posts from me here about it at that time). > > > > > > > The best thing for that is to grab "dia". It's a tool for editing > > diagrams. I use it to create object-oriented designs using UML, > > but it also has lots of other diagram sets including circuit diagrams, > > ER diagrams, flowcharts, etc. > > Without wishing to be rude... I don't that is the best thing. > > Unless dia is *far* better than it was when I last looked, it's still > essentially a graphical tool. WYSIWYG, in other words. I search for > a more formal, logical, WYSIWYM approach. I just specify the data of > the commutative diagram in LaTeX, the diagram packages handle the > layout. > > Being a mathematician I much prefer specifying logical diagrams rather > than drawing them myself when I can. > > But I would like a LyX interface to it.. > > Jules Hmmm... Okay. Another possibility might be graphviz (www.graphviz.org) but that might be too low level for you too. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32432/pgp0.pgp Description: PGP signature
Re: Latest CVS: lyx startup core dump
On Mon, Feb 04, 2002 at 02:24:54PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> This is very new: > > Do you still see it? I was still seeing it, but apparently it was a problem with XFree86 4.1.0 under Cygwin, not a LyX problem. It had gotten into a weird state where some of the startup calls from LyX were failing (I'm not exactly sure what happened). To me, it looked like an architecture-independant problem, since I ran lyx on all the machines I have access to and I got aborts all around. ;-) When I started thinking that my X server had gotten wedged, I applied the Windows motto: "When in doubt, reboot." and now all is fine. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32421/pgp0.pgp Description: PGP signature
Latest CVS: lyx startup core dump
This is very new: (gdb) where #0 0x401ee4e1 in __kill () from /lib/libc.so.6 #1 0x401ee156 in raise (sig=6) at ../sysdeps/posix/raise.c:27 #2 0x401ef868 in abort () at ../sysdeps/generic/abort.c:88 #3 0x082288eb in lyx::abort () at abort.C:9 #4 0x0823fe58 in void lyx::Assert (assertion=false) at LAssert.h:24 #5 0x08227a05 in FileInfo::isLink (this=0xb978) at FileInfo.C:347 #6 0x080ba27c in LyX::init (this=0xbb74, gui=true) at ../src/lyx_main.C:292 #7 0x080b95e1 in LyX::LyX (this=0xbb74, argc=0xbbc0, argv=0xbc04) at ../src/lyx_main.C:111 #8 0x080e67d7 in main (argc=1, argv=0xbc04) at ../src/main.C:38 #9 0x401e81eb in __libc_start_main (main=0x80e6700 , argc=1, argv=0xbc04, init=0x804edb8 <_init>, fini=0x82efc44 <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbbfc) at ../sysdeps/generic/libc-start.c:90 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32346/pgp0.pgp Description: PGP signature
Re: Dreaming of plugins...
On Sat, Feb 02, 2002 at 09:58:16AM +, Jules Bean wrote: > This message is not at all apropos of getting 1.2 released, so read it > when you're in a dreamy mood. > > Something which I think would really be a *killer* feature for LyX > would be the ability to write plug-ins to handle custom environments. > > As an example of the kind of thing I'm thinking of, categorists and > topologists often want to draw commutative diagrams. I'm neither, but > I have attended a category theory course, and I wrote up my notes in > LyX. I had to do with huge amounts of ERT (there may even have been > some posts from me here about it at that time). > The best thing for that is to grab "dia". It's a tool for editing diagrams. I use it to create object-oriented designs using UML, but it also has lots of other diagram sets including circuit diagrams, ER diagrams, flowcharts, etc. When you have created your diagram, you can export it as encapuslated postscript, or TeX (using pstricks), or png, etc. I usually export it as eps for easy inclusion in my LyX documents. The URL for dia is http://www.lysator.liu.se/~alla/dia/dia.html ---Kayvan [[ Available for consulting. http://www.sylvan.com/~kayvan/Resume.html ]] -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) msg32324/pgp0.pgp Description: PGP signature