LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2016, 02:29 PM   #1
tmose1106
LQ Newbie
 
Registered: Apr 2016
Distribution: Arch Linux
Posts: 4

Rep: Reputation: Disabled
Unhappy Issues With Building ConnMan 1.31/iptables 1.6.0


Hello, this is my first time posting here, so throw me a little slack if you could, please.

I am attempting to get my build of Linux From Scratch (Systemd Edition, I used the development snapshot from 03/04/2016) working for a school project I am doing. While it currently boots up perfectly, I am having trouble connecting to the internet. I typically use the ConnMan program to control my internet connections (I use Arch Linux mainly), so I am attempting to build it from source code. Via its Arch Linux package page I found its dependencies, and installed them as explained in the Beyond Linux From Scratch (also Systemd edition, but from 03/22/2016 I believe) book. So I installed glib-2.48, GNUtls-3.3.22, and iptables 1.6.0 all as described in the Beyond Linux From Scratch book. I also installed wpa_supplicant as the BLFS book explains, in case I want to connect wirelessly at some point.

While building ConnMan using the basic "./configure, make, make install" process, I get a bunch of errors. So here are the outputs of the configure and make processes. Configure seems to work fine, but the build completely fails.

./configure output (I ran ./configure --prefix=/usr)
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc accepts -fPIE... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking resolv.h usability... yes
checking resolv.h presence... yes
checking for resolv.h... yes
checking for ns_initparse in -lresolv... yes
checking for signalfd... yes
checking for dlopen in -ldl... yes
checking for GLIB... yes
checking for DBUS... yes
checking for XTABLES... yes
checking for iptables-save... /sbin/iptables-save
checking for GNUTLS... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for inotify_init in -lc... yes
checking for wpa_supplicant... /sbin/wpa_supplicant
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/version.h
config.status: creating connman.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make output with error messages (I ran 'make' and nothing else.):

Code:
  GEN      include/connman/log.h
  GEN      include/connman/plugin.h
  GEN      include/connman/notifier.h
  GEN      include/connman/service.h
  GEN      include/connman/resolver.h
  GEN      include/connman/ipconfig.h
  GEN      include/connman/device.h
  GEN      include/connman/network.h
  GEN      include/connman/inet.h
  GEN      include/connman/storage.h
  GEN      include/connman/provision.h
  GEN      include/connman/session.h
  GEN      include/connman/ipaddress.h
  GEN      include/connman/agent.h
  GEN      include/connman/inotify.h
  GEN      include/connman/peer.h
  GEN      include/connman/machine.h
  GEN      include/connman/version.h
  GEN      include/connman/rtnl.h
  GEN      include/connman/task.h
  GEN      include/connman/dbus.h
  GEN      include/connman/option.h
  GEN      include/connman/provider.h
  GEN      include/connman/vpn-dbus.h
  GEN      include/connman/utsname.h
  GEN      include/connman/timeserver.h
  GEN      include/connman/proxy.h
  GEN      include/connman/technology.h
  GEN      include/connman/setting.h
  GEN      src/builtin.h
  GEN      src/connman.service
  GEN      src/net.connman.service
  GEN      vpn/connman-vpn.service
  GEN      vpn/net.connman.vpn.service
  GEN      src/connman-wait-online.service
  GEN      scripts/connman
  GEN      scripts/connman_resolvconf.conf
make --no-print-directory all-am
  CC       gdbus/mainloop.lo
  CC       gdbus/watch.lo
  CC       gdbus/object.lo
  CC       gdbus/client.lo
  CC       gdbus/polkit.lo
  CCLD     gdbus/libgdbus-internal.la
  CC       client/dbus_helpers.o
  CC       client/services.o
  CC       client/commands.o
  CC       client/input.o
  CC       client/agent.o
  CC       client/peers.o
  CC       client/vpnconnections.o
  CC       client/main.o
  CCLD     client/connmanctl
  CC       src/log.o
  CC       src/dbus.o
  CC       src/error.o
  CC       src/ippool.o
  CC       unit/test-ippool.o
  CCLD     unit/test-ippool
  CC       gweb/gweb.o
  CC       gweb/gresolv.o
  CC       gweb/giognutls.o
  CC       tools/wispr.o
  CCLD     tools/wispr
  CC       tools/supplicant-test.o
  CC       tools/supplicant-dbus.o
  CC       tools/supplicant.o
  CCLD     tools/supplicant-test
  CC       gdhcp/common.o
  CC       gdhcp/client.o
  CC       gdhcp/server.o
  CC       gdhcp/ipv4ll.o
  CC       tools/dhcp-test.o
  CCLD     tools/dhcp-test
  CC       tools/dhcp-server-test.o
  CCLD     tools/dhcp-server-test
  CC       tools/addr-test.o
  CCLD     tools/addr-test
  CC       tools/web-test.o
  CCLD     tools/web-test
  CC       tools/resolv-test.o
  CCLD     tools/resolv-test
  CC       tools/dbus-test.o
  CCLD     tools/dbus-test
  CC       tools/polkit-test.o
  CCLD     tools/polkit-test
  CC       src/iptables.o
In file included from /usr/include/xtables.h:16:0,
                 from src/iptables.c:33:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator 'IFF_UP'
  IFF_UP    = 1<<0,  /* sysfs */
  ^
/usr/include/net/if.h:44:5: note: previous definition of 'IFF_UP' was here
     IFF_UP = 0x1,  /* Interface is up.  */
     ^
/usr/include/linux/if.h:72:2: error: redeclaration of enumerator 'IFF_BROADCAST'
  IFF_BROADCAST   = 1<<1,  /* __volatile__ */
  ^
/usr/include/net/if.h:46:5: note: previous definition of 'IFF_BROADCAST' was here
     IFF_BROADCAST = 0x2, /* Broadcast address valid.  */
     ^
/usr/include/linux/if.h:73:2: error: redeclaration of enumerator 'IFF_DEBUG'
  IFF_DEBUG   = 1<<2,  /* sysfs */
  ^
/usr/include/net/if.h:48:5: note: previous definition of 'IFF_DEBUG' was here
     IFF_DEBUG = 0x4,  /* Turn on debugging.  */
     ^
/usr/include/linux/if.h:74:2: error: redeclaration of enumerator 'IFF_LOOPBACK'
  IFF_LOOPBACK   = 1<<3,  /* __volatile__ */
  ^
/usr/include/net/if.h:50:5: note: previous definition of 'IFF_LOOPBACK' was here
     IFF_LOOPBACK = 0x8,  /* Is a loopback net.  */
     ^
/usr/include/linux/if.h:75:2: error: redeclaration of enumerator 'IFF_POINTOPOINT'
  IFF_POINTOPOINT   = 1<<4,  /* __volatile__ */
  ^
/usr/include/net/if.h:52:5: note: previous definition of 'IFF_POINTOPOINT' was here
     IFF_POINTOPOINT = 0x10, /* Interface is point-to-point link.  */
     ^
/usr/include/linux/if.h:76:2: error: redeclaration of enumerator 'IFF_NOTRAILERS'
  IFF_NOTRAILERS   = 1<<5,  /* sysfs */
  ^
/usr/include/net/if.h:54:5: note: previous definition of 'IFF_NOTRAILERS' was here
     IFF_NOTRAILERS = 0x20, /* Avoid use of trailers.  */
     ^
/usr/include/linux/if.h:77:2: error: redeclaration of enumerator 'IFF_RUNNING'
  IFF_RUNNING   = 1<<6,  /* __volatile__ */
  ^
/usr/include/net/if.h:56:5: note: previous definition of 'IFF_RUNNING' was here
     IFF_RUNNING = 0x40,  /* Resources allocated.  */
     ^
/usr/include/linux/if.h:78:2: error: redeclaration of enumerator 'IFF_NOARP'
  IFF_NOARP   = 1<<7,  /* sysfs */
  ^
/usr/include/net/if.h:58:5: note: previous definition of 'IFF_NOARP' was here
     IFF_NOARP = 0x80,  /* No address resolution protocol.  */
     ^
/usr/include/linux/if.h:79:2: error: redeclaration of enumerator 'IFF_PROMISC'
  IFF_PROMISC   = 1<<8,  /* sysfs */
  ^
/usr/include/net/if.h:60:5: note: previous definition of 'IFF_PROMISC' was here
     IFF_PROMISC = 0x100, /* Receive all packets.  */
     ^
/usr/include/linux/if.h:80:2: error: redeclaration of enumerator 'IFF_ALLMULTI'
  IFF_ALLMULTI   = 1<<9,  /* sysfs */
  ^
/usr/include/net/if.h:64:5: note: previous definition of 'IFF_ALLMULTI' was here
     IFF_ALLMULTI = 0x200, /* Receive all multicast packets.  */
     ^
/usr/include/linux/if.h:81:2: error: redeclaration of enumerator 'IFF_MASTER'
  IFF_MASTER   = 1<<10, /* __volatile__ */
  ^
/usr/include/net/if.h:67:5: note: previous definition of 'IFF_MASTER' was here
     IFF_MASTER = 0x400,  /* Master of a load balancer.  */
     ^
/usr/include/linux/if.h:82:2: error: redeclaration of enumerator 'IFF_SLAVE'
  IFF_SLAVE   = 1<<11, /* __volatile__ */
  ^
/usr/include/net/if.h:69:5: note: previous definition of 'IFF_SLAVE' was here
     IFF_SLAVE = 0x800,  /* Slave of a load balancer.  */
     ^
/usr/include/linux/if.h:83:2: error: redeclaration of enumerator 'IFF_MULTICAST'
  IFF_MULTICAST   = 1<<12, /* sysfs */
  ^
/usr/include/net/if.h:72:5: note: previous definition of 'IFF_MULTICAST' was here
     IFF_MULTICAST = 0x1000, /* Supports multicast.  */
     ^
/usr/include/linux/if.h:84:2: error: redeclaration of enumerator 'IFF_PORTSEL'
  IFF_PORTSEL   = 1<<13, /* sysfs */
  ^
/usr/include/net/if.h:75:5: note: previous definition of 'IFF_PORTSEL' was here
     IFF_PORTSEL = 0x2000, /* Can set media type.  */
     ^
/usr/include/linux/if.h:85:2: error: redeclaration of enumerator 'IFF_AUTOMEDIA'
  IFF_AUTOMEDIA   = 1<<14, /* sysfs */
  ^
/usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA' was here
     IFF_AUTOMEDIA = 0x4000, /* Auto media select active.  */
     ^
/usr/include/linux/if.h:86:2: error: redeclaration of enumerator 'IFF_DYNAMIC'
  IFF_DYNAMIC   = 1<<15, /* sysfs */
  ^
/usr/include/net/if.h:79:5: note: previous definition of 'IFF_DYNAMIC' was here
     IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses.  */
     ^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
                 from src/iptables.c:36:
/usr/include/linux/if.h:169:8: error: redefinition of 'struct ifmap'
 struct ifmap {
        ^
In file included from /usr/include/xtables.h:16:0,
                 from src/iptables.c:33:
/usr/include/net/if.h:111:8: note: originally defined here
 struct ifmap
        ^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
                 from src/iptables.c:36:
/usr/include/linux/if.h:203:8: error: redefinition of 'struct ifreq'
 struct ifreq {
        ^
In file included from /usr/include/xtables.h:16:0,
                 from src/iptables.c:33:
/usr/include/net/if.h:126:8: note: originally defined here
 struct ifreq
        ^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
                 from src/iptables.c:36:
/usr/include/linux/if.h:252:8: error: redefinition of 'struct ifconf'
 struct ifconf  {
        ^
In file included from /usr/include/xtables.h:16:0,
                 from src/iptables.c:33:
/usr/include/net/if.h:176:8: note: originally defined here
 struct ifconf
        ^
Makefile:2748: recipe for target 'src/iptables.o' failed
make[1]: *** [src/iptables.o] Error 1
Makefile:1599: recipe for target 'all' failed
make: *** [all] Error 2
It seems pretty obvious that iptables is the issue, but I have no idea how to fix it. Other than what I specify in the note below, I installed iptables just as the BLFS book explains. If someone could lead me in the right direction as to what I should rebuild, that would be great. I like ConnMan because it has very few dependencies, and it allows me to connect through ethernet or wireless seamlessly. So I would prefer a way to build it properly, rather than suggestions as to other programs I should/could use, please. Lastly, if you would like any information regarding my system, just give me some commands to run and I will show you their output. THANKS.

Note: iptables 1.6.0 doesn't say anywhere that it has any real dependencies other than glib-c or whatever. But while building I got errors about not having libnftnl, which also requires libmnl. So I installed the latest versions of those just using the basic "./configure --prefix=/usr, make, make install" process. This could be related to the issue, but I would need verification on this. iptables seemed to build fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connman and WiFi network with multiple AP and same SSID RonanG Linux - Networking 1 04-05-2016 02:09 AM
[SOLVED] Using connman with Slackware 14.1 jgrim Slackware 8 04-23-2014 10:50 AM
[SOLVED] Connman borked my Network cov Linux - Networking 3 07-18-2012 03:50 PM
Debian Squeeze - Connman Does not see network Interfaces Jeff91 Linux - Software 0 06-24-2011 08:57 AM
Need help building firewall Iptables spoonpower Linux - Security 4 02-08-2007 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration