Cannot compile with gcc 4.8

Vernon Schryver vjs@rhyolite.com
Sun Jun 15 02:18:24 UTC 2014


> From: Sven Willenberger <sven@dmv.com>

> Here are two outputs (btw, it's not just sa_family_t that's affected,
> that is just the first one that is encountered during compiling at
> which point it bails):
>
> $ ./configure 
> checking for AF_LOCAL... yes
> checking for AF_INET6... yes
> checking for socklen_t... yes
> checking for in_addr_t... yes
> checking for sa_family_t... yes
> checking for in_port_t... yes
> checking for sa_len... no
> checking for sin6_scope_id... yes
>
> $ env CPPFLAGS="-D_FORTIFY_SOURCE=2" ./configure
> checking for AF_LOCAL... no
> checking for AF_INET6... no
> checking for socklen_t... no
> checking for in_addr_t... no
> checking for sa_family_t... no
> checking for in_port_t... no
> checking for sa_len... no
> checking for sin6_scope_id... no

I downloaded archlinux-2014.06.01-dual.iso and got enough of a system
running to have gcc.  `gcc -v` says
    gcc version 4.9.0 20140604 (prerelease) (GCC)
That differs from the 4.8.2.8 reported by dcc@jelmail.com

Running the DCC ./configure with 
    CPPFLAS=-D_FORTIFY_SOURCE=2
    CFLAGS=-D_FORTIFY_SOURCE=2
I see

    % ./configure
    creating cache ./config.cache
    Rhyolite Software DCC 1.3.155
    checking for cc... cc
    checking whether the C compiler (cc -D_FORTIFY_SOURCE=2 ) works... yes
    checking whether the C compiler (cc -D_FORTIFY_SOURCE=2 ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether cc accepts -g... yes


    checking for rrdtool... /usr/local/bin/rrdtool
    checking for AF_LOCAL... yes
    checking for AF_INET6... yes
    checking for socklen_t... yes
    checking for in_addr_t... yes
    checking for sa_family_t... yes
    checking for in_port_t... yes
    checking for sa_len... no
    checking for sin6_scope_id... yes

Is it possible that Arch Linux has recently fixed something or do
I need to do something else to make ./configure fail to find socklen_t?


Vernon Schryver    vjs@rhyolite.com



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.