Menu

#44 0.29: --enable-ipv6 breaks build

v1.0 (example)
open
nobody
None
5
2018-02-08
2017-08-15
No

Hi,

when compiling liblo-0.29 with --enable-ipv6 the build fails with:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..
-Wall -I.. - march=native -mtune=native -O2 -pipe -c server.c  -fPIC
-DPIC -o .libs/liblo_la-server.o
server.c: In function lo_server_resolve_hostname: 
server.c:303:10:error: it undeclared (first use in this function)                 
for (it = ai; it; it = it->ai_next) { 
          ^~
server.c:303:10: note: each undeclared identifier is reported only once
for each function it appears in
server.c:303:15: error: ai undeclared (first use in this function)
for (it = ai; it; it = it->ai_next) { 
          ^~ 
make[3]: *** [Makefile:823:liblo_la-server.lo] Error 1                         

Here's the downstream bug report:
https://bugs.gentoo.org/627832

Discussion

  • Stephen Sinclair

    Thanks for the report, an oversight. I'll try to fix the build but it should be noted that the IPv6 stuff is known to cause problems with various programs, so it's probably better not to enable it anyway.

     
  • Anon a mouse

    Anon a mouse - 2018-02-08

    Hey,

    I am getting the same error building 0.29 on buildroot for ARM. I do not have IPV6 enabled. Here's my about

    CC="/home/alex/Projects/BlackBox/bbefx_software/BBEFX_OS/build_bbefx_os_raspberrypi3/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc"
    CXX="/home/alex/Projects/BlackBox/bbefx_software/BBEFX_OS/build_bbefx_os_raspberrypi3/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++"
    CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Werror"
    CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -std=c++11"
    LDFLAGS=""
    LIBS=""
    

    I am about to try 0.28

     
  • Anon a mouse

    Anon a mouse - 2018-02-08

    I just checked 0.28 and the same issue is there. Looking at the output I still seem to have ipv6 enabled without explicity stating I want it

    --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared

    Would this be a configure problem or is buildroot adding flags in somewhere?

     
  • Stephen Sinclair

    Hi, I am confused by your report. "I still seem to have ipv6 enabled without explicitly stating I want it", vs. "--enable-ipv6" in the line you follow with. Can you give a more clear report? What is your environment and configure command, and what is the output? Also I think maybe this belongs in a new bug, but I can't tell without more info.

     
  • Anon a mouse

    Anon a mouse - 2018-02-08

    Hey Stephen,

    Sorry for the confusing post. I was also slightly confused when I posted!

    I can confirm that there is no bug, I am building liblo as part of a buildroot system and their toolchain is set to configure everything with --enable-ipv6. So even though I personally did not ask for ipv6, buildroot was setting this anyways. This has been resolved by including --disable-ipv6 in the makefile in the buildroot toolchain, which cancels out the enable nicely :)

    It does fail to compile with IPV6 however, with the same error in the same file as the original issue.

    appologies for the messages, I was getting annoyed that I had no OSC (I had allready tried and failed to include OSCpack before converting to liblo)

     
  • Stephen Sinclair

    Okay thanks for confirming. But is it really failing on master, or only on 0.29? Because I thought the compilation problem was fixed in 968dff4d576ca102525c81beddb36a623890424b. (Not included in 0.29)

     
  • Anon a mouse

    Anon a mouse - 2018-02-08

    I was using the tarball for 0.29, not master :)

     

Log in to post a comment.

MongoDB Logo MongoDB