Modify

Opened 3 years ago

Closed 3 years ago

#19915 closed defect (fixed)

batctl not compiling after update

Reported by: lth@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

As summary - after the update on the 9th, batctl no longer compiles.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by anonymous

My apologies, I tried to downgrade and it still didn't build, so the issue is not with batctl but with some other package. Here's the error:

ccache_cc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -ffunction-sections -fdata-sections -flto -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP -I/home/lth/ionic-router/staging_dir/target-mips_34kc_musl-1.1.10/usr/include/libnl-tiny  -I/home/lth/ionic-router/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/lth/ionic-router/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include -D_GNU_SOURCE  -c -o main.o main.c
In file included from /home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/net/ethernet.h:10:0,
                 from functions.h:25,
                 from main.c:38:
/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/netinet/if_ether.h:96:8: error: redefinition of 'struct ethhdr'
 struct ethhdr {
        ^
In file included from tcpdump.h:26:0,
                 from main.c:35:
/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/linux/if_ether.h:137:8: note: originally defined here
 struct ethhdr {
        ^
Makefile:96: recipe for target 'main.o' failed
make[4]: *** [main.o] Error 1

comment:2 Changed 3 years ago by sailor_ca

I have the exact same problem - wdr3600 Chaos Calmer (trunk) r46069

Just to ensure I had a clean environment I cloned the git again and rebuilt from dist.

Update: Switched to uClibc (not a solution) and it compiles. Looks like a problem with musl.

http://wiki.musl-libc.org/wiki/FAQ#Q:_why_am_i_getting_.22error:_redefinition_of_struct_ethhdr.2Ftcphdr.2Fetc.22_.3F

Likely looking at a patch something along the lines of:

http://git.buildroot.net/buildroot/diff/package/batctl/0001-musl-fixes.patch?id=b0598b6ff827aa443946ff1d945a5ce5c78801c5

I'm not proficient at creating patches under OpenWRT but I'll give it a shot.

Last edited 3 years ago by sailor_ca (previous) (diff)

comment:3 Changed 3 years ago by sailor_ca

I see there is a new patch for musl and I just compiled with no problems. I suspect this ticket should be closed.

comment:4 Changed 3 years ago by jogo

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.