HylaFAX The world's most advanced open source fax server

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

[hylafax-users] ./configure and sed weirdness -- Help?!



When trying to install 4.1, 4.1.1, or CVS hylafax I get the following
error in ./configure:

======
Using "include file" syntax for Makefiles.
Using /bin/bash to process command scripts.

Missing C++ runtime support for g++ (/usr/bin/g++).

Compilation of the following test program failed:

----------------------------------------------------------
#include "iostream.h"
int main(){ cout << "Hello World!" << endl; return 0;}
----------------------------------------------------------

Usually this is because you do not have a standard C++ library
installed on your system or you have installed it in a non-standard
location.  If you do not have a C++ library installed, then you must
install it.  If it is installed in a non-standard location, then you
should configure the compiler so that it will automatically be found.

(For recent gcc releases this is libstdc++, for older gcc - libg++)

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

Taking a look at config.log, however, it's clear that the error
is not really C++ runtime:

======
++ cat dummy.C
#include "new.h"
struct foo {
    int x;
    foo();
    ~foo();
};
foo::foo() {}
foo::~foo() {}
int main()
{
    foo* ptr = 0;
    foo* a = new(ptr) foo;
    a->x = 0;
    delete a;
    return 0;
}
++ /usr/bin/g++ -o dummy dummy.C
++ make -f confMakefile t
confMakefile:5: *** missing separator.  Stop.
======

So I trudged through the ./configure script and made a one-line
addition:

======
# cat configure.patch
--- configure	Tue Feb 26 12:08:50 2002
+++ configure.new	Tue Feb 26 11:41:05 2002
@@ -1361,6 +1361,7 @@
 OREGEXINC="${REGEXINC}"; x="`relativize ${REGEXINC}`"; REGEXINC="$x"
 ODBLIBINC="${DBLIBINC}"; x="`relativize ${DBLIBINC}`"; DBLIBINC="$x"
 makeDefs xdefs
+cp xdefs brokenxdefs
 
 #
 # runMake target rules ...
======

to discover that "missing separator" is a bit of an understatement:

======
# head -n 34 brokenxdefs 
# $Id: defs.in,v 1.8 2001/07/16 03:51:36 darren Exp $
#
Warning, this file was automatically created by the HylaFAX configure
script#Warning, this file was automatically created by the HylaFAX
configure script Warning, this file was automatically created by the
HylaFAX configure script@Warning, this file was automatically created by
the HylaFAX configure scriptWWarning, this file was automatically
created by the HylaFAX configure scriptAWarning, this file was
automatically created by the HylaFAX configure scriptRWarning, this file
was automatically created by the HylaFAX configure scriptNWarning, this
file was automatically created by the HylaFAX configure scriptIWarning,
this file was automatically created by the HylaFAX configure
scriptNWarning, this file was automatically created by the HylaFAX
configure scriptGWarning, this file was automatically created by the
HylaFAX configure script@Warning, this file was automatically created by
the HylaFAX configure script
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1988-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics
# 
# Permission to use, copy, modify, distribute, and sell this software
and 
# its documentation for any purpose is hereby granted without fee,
provided
# that (i) the above copyright notices and this permission notice appear
in
# all copies of the software and related documentation, and (ii) the
names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
# 
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
# 
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY
OF 
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#

#
4.1.1#4.1.1
4.1.1V4.1.1E4.1.1R4.1.1S4.1.1I4.1.1O4.1.1N4.1.1:4.1.1	4.1.1@4.1.1V4.1.1E4.1.1R4.1.1S4.1.1I4.1.1O4.1.1N4.1.1@4.1.1
Tue Feb 26 11:36:45 EST 2002#Tue Feb 26 11:36:45 EST 2002 Tue Feb 26
11:36:45 EST 2002DTue Feb 26 11:36:45 EST 2002ATue Feb 26 11:36:45 EST
2002TTue Feb 26 11:36:45 EST 2002ETue Feb 26 11:36:45 EST 2002:Tue Feb
26 11:36:45 EST 2002	Tue Feb 26 11:36:45 EST 2002	Tue Feb 26 11:36:45
EST 2002@Tue Feb 26 11:36:45 EST 2002DTue Feb 26 11:36:45 EST 2002ATue
Feb 26 11:36:45 EST 2002TTue Feb 26 11:36:45 EST 2002ETue Feb 26
11:36:45 EST 2002@Tue Feb 26 11:36:45 EST 2002
i686-pc-linux-gnu#i686-pc-linux-gnu
i686-pc-linux-gnuTi686-pc-linux-gnuAi686-pc-linux-gnuRi686-pc-linux-gnuGi686-pc-linux-gnuEi686-pc-linux-gnuTi686-pc-linux-gnu:i686-pc-linux-gnu	i686-pc-linux-gnu@i686-pc-linux-gnuTi686-pc-linux-gnuAi686-pc-linux-gnuRi686-pc-linux-gnuGi686-pc-linux-gnuEi686-pc-linux-gnuTi686-pc-linux-gnu@i686-pc-linux-gnu
[ ...remainder snipped... ]
======

Something is clearly going dramatically wrong.  Performing the sed 
commands in line 1355 of ./configure (in makeDefs()) seems to work
fine, so I'm horribly confused.  I'm using sed-3.02.80.

Thanks,
Grant Goodyear
-- 
___________________________________________________________________
|     Grant Goodyear                  |  The Secrets of Physics:   |
|     Dept. of Chemistry - Clemson U  |1. Add zero.                |
|     Clemson, SC  29634              |2. Multiply by one.         |
|-------------------------------------|3. Expand in a Taylor series|
|e-mail: goodyea@clemson.edu          |4. Integrate by parts.      |
|www:http://g2.ces.clemson.edu/~grant |5. Fourier transform.       |
|                                     |6. Add auxiliary variables  |
|_____________________________________|____________________________|
 

____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions