Re: small compilation problems

2000-09-22 Thread Lars Gullik Bjønnes

Lior Silberman [EMAIL PROTECTED] writes:

| Hello everyone,
| 
| I have two small problems compiling CVS.
| 
| 1. sigc++/thread.h doesn't include the declaration for struct timespec,
| 2. in filedlg.C there is an inline function (GroupCache::find) which isn't
| handled properly on compilation with -g.
| 
| Details:
| 
| I configure CVS with CXXFLAGS=-g (no -O), and --with-warnings so the 
| command is:
| 
| g++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/X11R6/include -g -ansi -W -Wall
| -Wno-return-type

Can you add -Winline also?

Also: we do not support compiles without optimizations. Gcc behaves strangely 
sometimes without -O and severeal errors are not reported.

Unless you have a very good reason you should always use -O.

Lgb



Re: small compilation problems

2000-09-22 Thread Lars Gullik Bjønnes

Lior Silberman <[EMAIL PROTECTED]> writes:

| Hello everyone,
| 
| I have two small problems compiling CVS.
| 
| 1. sigc++/thread.h doesn't include the declaration for struct timespec,
| 2. in filedlg.C there is an inline function (GroupCache::find) which isn't
| handled properly on compilation with -g.
| 
| Details:
| 
| I configure CVS with CXXFLAGS=-g (no -O), and --with-warnings so the 
| command is:
| 
| g++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/X11R6/include -g -ansi -W -Wall
| -Wno-return-type

Can you add -Winline also?

Also: we do not support compiles without optimizations. Gcc behaves strangely 
sometimes without -O and severeal errors are not reported.

Unless you have a very good reason you should always use -O.

Lgb



Re: small compilation problems

2000-09-21 Thread John Levon

On Wed, 20 Sep 2000, Lior Silberman wrote:

 2. src/filedlg.C compiles ok, but during the link phase, I get:
 filedlg.o: In function `LyXFileDlg::Reread(void)':
 filedlg.C:245: undefined reference to `GroupCache::find(unsigned int) const
 
 I think this is beacuse g++ -g does not expand GroupCache::find inline,
 and therefore it's missing from the object file. Compiling this file
 separately with (-g -O) solves the problem. I wonder why this happens,
 since there is no complaint about UserCache::find.
 

I have the exact same problem. I have to apply a patch to filedlg.C each
time. Unfortunately no-one else on the list can see this (Except you ;)

thanks
john 






Re: small compilation problems

2000-09-21 Thread Lior Silberman

On Thu, 21 Sep 2000, Allan Rae wrote:

 On Wed, 20 Sep 2000, Lior Silberman wrote:
 
  1. sigc++/thread.h doesn't include the declaration for struct timespec,
 
 Did you report this to libsigc++?  I notice it's been fixed in their
 repository so I'll do up a new sigc++ mini-dist.
 
 Allan. (ARRae)
 
 

Allan Thanks!

I didn't know sigc++ wasn't part of the LyX project, so I didn't report
this to anyone before yesterday.

Lior.




Re: small compilation problems

2000-09-21 Thread John Levon

On Wed, 20 Sep 2000, Lior Silberman wrote:

> 2. src/filedlg.C compiles ok, but during the link phase, I get:
> filedlg.o: In function `LyXFileDlg::Reread(void)':
> filedlg.C:245: undefined reference to `GroupCache::find(unsigned int) const
> 
> I think this is beacuse g++ -g does not expand GroupCache::find inline,
> and therefore it's missing from the object file. Compiling this file
> separately with (-g -O) solves the problem. I wonder why this happens,
> since there is no complaint about UserCache::find.
> 

I have the exact same problem. I have to apply a patch to filedlg.C each
time. Unfortunately no-one else on the list can see this (Except you ;)

thanks
john 






Re: small compilation problems

2000-09-21 Thread Lior Silberman

On Thu, 21 Sep 2000, Allan Rae wrote:

> On Wed, 20 Sep 2000, Lior Silberman wrote:
> 
> > 1. sigc++/thread.h doesn't include the declaration for struct timespec,
> 
> Did you report this to libsigc++?  I notice it's been fixed in their
> repository so I'll do up a new sigc++ mini-dist.
> 
> Allan. (ARRae)
> 
> 

Allan Thanks!

I didn't know sigc++ wasn't part of the LyX project, so I didn't report
this to anyone before yesterday.

Lior.




small compilation problems

2000-09-20 Thread Lior Silberman


Hello everyone,

I have two small problems compiling CVS.

1. sigc++/thread.h doesn't include the declaration for struct timespec,
2. in filedlg.C there is an inline function (GroupCache::find) which isn't
handled properly on compilation with -g.

Details:

I configure CVS with CXXFLAGS=-g (no -O), and --with-warnings so the 
command is:

g++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/X11R6/include -g -ansi -W -Wall
-Wno-return-type

1. in sigc++/thread.h:124 , there is a declaration:

int wait(Mutex m, timespec* spec);

but my compiler (egcs-2.91.66) complains:
../sigc++/thread.h:124: type specifier omitted for parameter

The following works without a hitch:

int wait(Mutex m, struct timespec* spec);
   ^^

2. src/filedlg.C compiles ok, but during the link phase, I get:
filedlg.o: In function `LyXFileDlg::Reread(void)':
filedlg.C:245: undefined reference to `GroupCache::find(unsigned int) const

I think this is beacuse g++ -g does not expand GroupCache::find inline,
and therefore it's missing from the object file. Compiling this file
separately with (-g -O) solves the problem. I wonder why this happens,
since there is no complaint about UserCache::find.


Any ideas?

Thanks,
Lior.




Re: small compilation problems

2000-09-20 Thread Allan Rae

On Wed, 20 Sep 2000, Lior Silberman wrote:

 1. sigc++/thread.h doesn't include the declaration for struct timespec,

Did you report this to libsigc++?  I notice it's been fixed in their
repository so I'll do up a new sigc++ mini-dist.

Allan. (ARRae)




small compilation problems

2000-09-20 Thread Lior Silberman


Hello everyone,

I have two small problems compiling CVS.

1. sigc++/thread.h doesn't include the declaration for struct timespec,
2. in filedlg.C there is an inline function (GroupCache::find) which isn't
handled properly on compilation with -g.

Details:

I configure CVS with CXXFLAGS=-g (no -O), and --with-warnings so the 
command is:

g++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/X11R6/include -g -ansi -W -Wall
-Wno-return-type

1. in sigc++/thread.h:124 , there is a declaration:

int wait(Mutex , timespec* spec);

but my compiler (egcs-2.91.66) complains:
../sigc++/thread.h:124: type specifier omitted for parameter

The following works without a hitch:

int wait(Mutex , struct timespec* spec);
   ^^

2. src/filedlg.C compiles ok, but during the link phase, I get:
filedlg.o: In function `LyXFileDlg::Reread(void)':
filedlg.C:245: undefined reference to `GroupCache::find(unsigned int) const

I think this is beacuse g++ -g does not expand GroupCache::find inline,
and therefore it's missing from the object file. Compiling this file
separately with (-g -O) solves the problem. I wonder why this happens,
since there is no complaint about UserCache::find.


Any ideas?

Thanks,
Lior.




Re: small compilation problems

2000-09-20 Thread Allan Rae

On Wed, 20 Sep 2000, Lior Silberman wrote:

> 1. sigc++/thread.h doesn't include the declaration for struct timespec,

Did you report this to libsigc++?  I notice it's been fixed in their
repository so I'll do up a new sigc++ mini-dist.

Allan. (ARRae)