On Mon, 21 Dec 2020, Nathan Sidwell wrote:
> On 12/20/20 6:28 PM, Gerald Pfeifer wrote:
>> libcody as originally added to GCC fails to build on *-unknown-freebsd11.4
>> and presumably others:
>> 
>>    c++ -std=c++11 -g -include config.h -I ... -MMD -MP -MF netclient.d -c
>>      -o netclient.o
>>    .../libcody/netclient.cc:114:3: error: unknown type sockaddr_in6 addr;
>>                                                        ^~~~~~~~~~~~
> That should be fixed now

libcody/netclient.cc is indeed fixed, after 

  commit 31705b068fa5d6cbd04aa4ac5f5275bad37d2222
  Author: Nathan Sidwell <nat...@acm.org>
  Date:   Mon Dec 21 05:36:32 2020 -0800

    libcody: Add netinet.h
    
    We explicitly need to inlude netinet.h, (despite what happened on my test 
systems)
    
            libcody/
            * netclient.cc: Add netinet.h.

Note, though, that my patch also fixed libcody/netserver.cc, which still 
failed. Seeing that your commit essentially matches my proposed patch, I 
went ahead and committed the remaining part.

With that libcody now builds (and I'll look into the follow-up patch
you shared).

Thanks,
Gerald

Reply via email to