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.