Section 1 : Building from Source Code

Q110: Build error on Solaris 2.5 with -pedantic-errors ?


? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

Q.
Build error on Solaris 2.5 with -pedantic-errors ?

A.
Date: Mon, 19 Aug 1996 09:12:38 -0700
From: Sam Leffler <sam@hyla.chez.sgi.com>
Subject: Re: Build error on Solaris 2.5

    To:  hylafax-users@hylafax.org
    Subject:  Build error on Solaris 2.5
    Date: Mon, 19 Aug 1996 10:01:56 CDT
    From:  David Birnbaum 

    	...
    
    The second, however, is a more serious error which I am not able to fix:
    
    = util
    /usr/local/bin/gcc      -I.././zlib  -D__ANSI_CPP__ -I. -I.. -I.././util  
    -I.././util -I/usr/local/include -I.././regex -O -pedantic-errors -O -x 
c++ -c 
    InetTransport.c++
    Socket.h: In function `static int Socket::bind(int, const void *, int)':
    In file included from InetTransport.c++:41:
    Socket.h:54: passing `const sockaddr *' as argument 2 of `bind(int, 
sockaddr 
    *, int)' discards const
    Socket.h: In function `static int Socket::connect(int, const void *, int)':
    Socket.h:56: passing `const sockaddr *' as argument 2 of `connect(int, 
    sockaddr *, int)' discards const
    InetTransport.c++: In method `unsigned char InetTransport::abortCmd(class 
    fxStr &)':
    InetTransport.c++:218: warning: overflow in implicit constant conversion
    InetTransport.c++:218: warning: overflow in implicit constant conversion
    InetTransport.c++:218: warning: overflow in implicit constant conversion
    InetTransport.c++:218: warning: overflow in implicit constant conversion
    *** Error code 1
    
    The very strange thing is that I build 4.0b018 without problems - 
everything 
    ultimately compiled.  Now, however, 4.0b20 has this error, and when I go 
back, 
    4.0b018 won't build either!  It craps out with the same problem, which 
leads 
    me to think that something on my system has changed flavors, and I have no 
    idea what.
    
    Since I list built 4.0b018, the only change which I can recall is using 
gcc 
    2.7.2.1 instead of 2.7.2.  I'm pretty sure that nothing else on the system 
has 
    changed.  I don't have 2.7.2 around anymore - the docs indicated it had 
    several "serious bugs", so we moved up.  It builds every other application 
I 
    have without complaint, including things like perl 5.003, etc.
    
    I am running Solaris 2.5.  Any suggestions/help?
    
You have set -pedantic-errors when compiling; your problem has nothing
to do with changes between beta018 and beta020.

        Sam


 Back to FAQ Index FAQ Index  Next question in List Q111: Compiling Hylafax v4.0beta018 under Sun Solaris with DSO?
faq@hylafax.org. Last updated $Date: 2002/03/07 09:17:53 $.