Jean-Marc Lasgouttes wrote:

> What is the reason for the -I/usr/include ion the command line?

I saw "no prototype for kill" and "no definition for errno" and such so I included 
this.

Now I'm trying 1.1.3 and the problems I encounted and some silly "hack" I used is 
like:

1.
 configure options:
 configure --with-extra-lib=/usr/local/lib:/home/fan/local/lib 
--with-extra-inc=/usr/local/include:/workshop/SUNWspro/SC5.0/include/CC:/home/fan/local/include

--prefix=/home/fan/local

2.
the sqrt problem and I used sqrt_pix patch and math_panel.C get passed but warnnings 
remain!

3.
------------------------------------------------------------------------
/bin/sh ../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../../src -I./../   
-I/usr/local/include  -I/workshop/SUNWspro/SC5.0/include/CC  -I/home/fan/local/include
-I/usr/openwin/include  -g -c figinset.C
CC -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I/usr/local/include 
-I/workshop/SUNWspro/SC5.0/include/CC -I/home/fan/local/include -I/usr/openwin/include 
-g -c figinset.C -o
figinset.o
"/usr/include/sys/signal.h", line 72: Warning (Anachronism): Attempt to redefine 
SIGRTMIN without using #undef.
"/usr/include/sys/signal.h", line 73: Warning (Anachronism): Attempt to redefine 
SIGRTMAX without using #undef.
"../../src/insets/insetbib.h", line 132: Warning: InsetBibtex::display hides the 
virtual function Inset::display(bool).
"../../src/support/filetools.h", line 102: Error: errno is not defined.
"figinset.C", line 257: Error: The function "kill" must have a prototype.
"figinset.C", line 272: Error: The function "kill" must have a prototype.
"figinset.C", line 472: Error: The function "kill" must have a prototype.
"figinset.C", line 899: Error: errno is not defined.
"figinset.C", line 1727: Error: Unknown preprocessor directive.
"figinset.C", line 2044: Warning: pflags hides InsetFig::pflags.
6 Error(s) and 4 Warning(s) detected.
make[3]: *** [figinset.lo] Error 1
make[3]: Leaving directory `/tmp/lyx-1.1.3/src/insets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/lyx-1.1.3/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/lyx-1.1.3/src'
make: *** [all-recursive] Error 1
-------------------------------------------------------------------------
I add #include <errno.h> to src/support/filetools.h (I have cerrno and it included 
sys/errno.h and sys/errno.h is also there!) and #include <signal.h> to 
src/insets/figinset.C
and get this passed.

4.
--------------------------------------------
"figinset.C", line 1728: Error: Unknown preprocessor directive.
---------------------------------------------
I comment out "#warning rewrite this method to use ifstream" in src/insets/figinset.C 
and go on

5.
----------------------------------------------------------------------
"insetlatexaccent.C", line 645: Error: InsetLatexAccent::ACCENT_TYPES is not 
accessible from file level.
-----------------------------------------------------------------------
I make InsetLatexAccent::ACCENT_TYPES "public" in src/insets/insetlatexaccent.h and go 
on
don't blame me for ruining OO party:( I think this is a silly compiler, how come a 
friend couldn't access private member I don't understand.

6.
----------------------------------
"FileInfo.C", line 125: Error: errno is not defined.
"FileInfo.C", line 143: Error: errno is not defined.
"FileInfo.C", line 165: Error: errno is not defined.
----------------------------------
again, add #include <errno.h> in src/support/FileInfo.C and go on

7.
-------------------------------------------------------------------------
"filetools.C", line 325: Error: Formal argument 1 of type char* in call to 
putenv(char*) is being passed const char*.
1 Error(s) detected.
-------------------------------------------------------------------------
change line 325 from
retval = putenv((new string(envstr))->c_str());
to
retval = putenv((char*)((new string(envstr))->c_str()));
and go on

8. finally stuck here:
-----------------------------------------------------------
"lstrings.C", line 178: Error: Could not find a match for std::count<>(const char*, 
const char*, const char).
1 Error(s) detected.
make[3]: *** [lstrings.lo] Error 1
make[3]: Leaving directory `/tmp/lyx-1.1.3/src/support'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/lyx-1.1.3/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/lyx-1.1.3/src'
make: *** [all-recursive] Error 1
--------------------------------------------------------------------


> I
> suspect that CC uses headers from /usr/include whereas better
> alternatives exist in /workshop/SUNWspro/SC5.0/include/CC/ or in some
> similar place.

Yes, no I explicitly include this but I think it's not nessary. Our system just got 
overhauled and I suspect something was setup correctly.

>
>
> Concerning the last error message, it seems that this is (again) a
> problem with the csignal header. Could you show us what this header
> looks like?
>
> JMarc

I attached both /workshop/SUNWspro/SC5.0/include/CC/ cerrno and 
/workshop/SUNWspro/SC5.0/include/CC/ csignal here.

Michael

csignal

cerrno

Reply via email to