![]() |
Heureka thousands thanks to you. The compiler runs like hell now. I hope=20 he will compile everything now. (the libfaxutil.a is ok, the rest should work too) just saw the comiler is ready without any errors How do you know about that -fpermissive flag ?? thank you again AlBert for this excellent hint !!! nice weekend to everybody /Matthias :-) >=20 > Matthias Reich writes: > > I still can't compile a Hylafax for Solaris 2.4 > > > > I have the newest Beta and use the gcc 2.95 > > > > first error: > > error in port/mkdepend : > > /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.../../../sparc-sun-sol= aris2.4/include/assert.h > > > > is generated instead of > > /usr/local/sparc-sun-solaris2.4/include/assert.h \ > > or > > /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.95/../../../sparc-sun-= solaris2.4/include/assert.h >=20 > Hello, >=20 > Yap, nasty, having to edit Makedep; the same thing happens for almost a= ll > platforms. >=20 > > ok, I could fix that afterwards the compiler stops with: > > > > /usr/local/bin/g++ -I.././zlib -D__ANSI_C= PP__ > > -I. -I.. -I.././regex -I.././util -I.././util -I/usr/local/include -= g -O > > -c InetTransport.c++ > > In file included from InetTransport.c++:41: > > Socket.h: In function `static int Socket::bind(int, const void *, in= t)': > > Socket.h:62: passing `const sockaddr *' as argument 2 of `bind(int, > > sockaddr *, int)' discards qualifiers > > Socket.h: In function `static int Socket::connect(int, const void *, > > int)': > > Socket.h:64: passing `const sockaddr *' as argument 2 of `connect(in= t, > > sockaddr *, int)' discards qualifiers >=20 > This is due to HylaFAX not being totally const-clean; gcc 2.95 no longe= r > tolerates this by default; you can force it to, by adding the > '-fpermissive' flag somewhere in de defs file. (E.g. by setting LC++OPT= S) > It's not Solaris specific, most platforms suffer from this. >=20 > > /Matthias >=20 > Mit freundlichen Gr=FC=DFen, >=20 > Bert. >=20 > -- > -------------- eMail Bert.Deknuydt@esat.kuleuven.ac.be --------------- > B.DeKnuydt, PSI-KULeuven Tel. +32-16-321880 > K. Mercierlaan 94 /| | || > B-3001 Heverlee Leuven _,_)| 4_|_|| > FLANDERS, BELGIUM / . Fax. +32-16-321986 > -------------- http://www.esat.kuleuven.ac.be/~deknuydt -------------- > Surely Allah is with the patient. Qur'An, Sura 2, Verse 153 --=20 HAGOS eG phone: +49 711 7880592 Matthias Reich fax: +49 711 7880599 Industriestr. 62 web: http://www.hagos.de D-70565 Stuttgart mail: rei@hagos.de Germany