Hylafax Mailing List Archives

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

Solaris 7; Compiling 4.1b2



...As suggested, I've moved off of trying to get 4.0p2 to work and am
trying to get 4.1p2 installed. Solaris 7, Ultra 1, g++ 2.95.2.

configure bombs on:

[...]
Using /usr/local/bin/bash to process command scripts.
Segmentation Fault - core dumped

Broken C++ handling of global constructors (g++//usr/local/bin/g++).

Compilation or execution of the following test program failed:

----------------------------------------------------------
class foo {
private:
    int a;
public:
    foo() { a = -1; }
    int isInitialized() { return a == -1; }
};
static foo instanceOfFoo;
int main() { return instanceOfFoo.isInitialized() ? 0 : 1; }
----------------------------------------------------------

This program tests whether or not the C++ compilation support properly
handles global static variables with constructors.  A working C++
compilation environment is expected to arrange that global variables
that have a constructor function (foo::foo() above) be called prior to
the start of main().  HylaFAX will not operate properly if the C++
compilation environment does not correctly implement this.

When using GNU gcc this can sometimes happen if gcc is improperly
configured; consult your local GNU guru/support person for help with
this problem.


Unrecoverable error!  Once you've corrected the problem rerun this script.

[end]

every other program seems to thing gcc/g++ works fine. what's the deal? If
it matters, gcc/g++ was installed from a sunfreeware package...

Dan



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services