HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

./configure problems on Solaris 2.5.1 with SunPro compilers



I have scanned the mail archives but found only one suggestion, and it
was singularly unhelpful (compile gcc then hylafax:-( not always an
option). 

On a sparc solaris 2.5.1 system, I am trying to configure
hylafax-v4.0pl1. 

| Missing C++ runtime support for CC (/opt/SUNWspro/bin/CC).
|  
| Compilation of the following test program failed:
|  
| ----------------------------------------------------------
| #include "new.h"
| int main(){ int* a = new int; *a = 0; delete a; return 0;}
| ----------------------------------------------------------
|  
| Usually this is because you do not have the library that provides these
| runtime routines.  It may also be caused by your runtime libraries
| being in a non-standard location that is not automatically searched for
| by your compiler.
|  
|  
| Unrecoverable error!  Once you've corrected the problem rerun this script.

I don't think the problem is with the compiler, at least if I copy
that code sample, the compiler has no trouble with it.  

In configure, on line 1308, I put an echo debug statement to see what
the value of C++F and C++FLAGS is for the compile...

| # Verify everything is setup for the C++ runtime environment.
| #
| CheckForCXXRuntime()
| {
| cat>t.c++<<EOF
| #include "new.h"
| int main(){ int* a = new int; *a = 0; delete a; return 0;}
| EOF
|#### This echo might help track down the compile problem.../larry
|     echo command line is "${C++F} ${C++FILE} ${MAKECXXOVERRIDE}"
|     runMake t "t:; \${C++F} \${C++FILE} t.c++${MAKECXXOVERRIDE}"
| }
| CheckForCXXRuntime || {
|     cat 1>&2 <<EOF

I see this message ...

|
| command line is   =.C
|

suggesting that C++F and C++FLAGS have not been set to anything at
all.  

I have tried to follow the logic in configure, but it was really not
meant for human eyes to follow. Attached below is the complete output
of configure (with my diag message)...

Kind regards,
Larry


------------------------------------
$ ./configure
 
Configuring HylaFAX (tm) (aka FlexFAX) v4.0pl1.
 
If configure does the wrong thing, check the file config.log for
information that may help you understand what went wrong.
 
Reading site-wide parameters from ./config.site.
Well I'll be, a sparc-sun-solaris2.5.1 system.
Using /opt/SUNWspro/bin/cc for a C compiler (set CC to override).
Looks like /opt/SUNWspro/bin/cc supports the -g option.
Using " -g" for C compiler options.
Looks like /opt/SUNWspro/bin/cc has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Looks like /opt/SUNWspro/bin/cc does not support the -M option for generating
make dependencies; will disable automatic make dependency building.
Using /opt/SUNWspro/bin/CC for a C++ compiler (set CXX to override).
Looks like /opt/SUNWspro/bin/CC supports the -g option.
Using " -g" for C++ compiler options.
Looks like /opt/SUNWspro/bin/CC has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Using /usr/ccs/bin/make to configure the software.
Using "include file" syntax for Makefiles.
Using /usr/local/bin/bash to process command scripts.
command line is   =.C
 
Missing C++ runtime support for CC (/opt/SUNWspro/bin/CC).
 
Compilation of the following test program failed:
 
----------------------------------------------------------
#include "new.h"
int main(){ int* a = new int; *a = 0; delete a; return 0;}
----------------------------------------------------------
 
Usually this is because you do not have the library that provides these
runtime routines.  It may also be caused by your runtime libraries
being in a non-standard location that is not automatically searched for
by your compiler.
 
 
Unrecoverable error!  Once you've corrected the problem rerun this script.




Project hosted by iFAX Solutions