dhcpcd-discuss

RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4

Saima

Fri Apr 25 00:04:39 2014

I tried the trunk version: dhcpcd-a396836f3daa8827

 

and it failed with the same missing TAILQ functions error:

 

configure args: --disable-ipv6
Deriving operating system from ... x86_64-unknown-linux
Configuring dhcpcd for ... linux
Using compiler .. cc
cc (GCC) 3.4.4 20050721 (Red Hat -)
dhcpcd-definitions.conf will be embedded in dhcpcd itself
Testing for getifaddrs ... yes
Testing for clock_gettime ... yes (-lrt)
Testing for arc4random ... no
Testing for closefrom ... no
Testing for getline ... yes
Testing for strlcpy ... no
Testing for TAILQ_FOREACH_SAFE ... no
Testing for TAILQ_CONCAT ...no
Testing for posix_spawn ... yes
Testing for pollts ... no
Testing for ppoll ... no
Testing for pselect ... yes
Testing for MD5Init ... no
Checking for libudev ... no
Checking for ntpd ... /usr/sbin/ntpd (50-ntp.conf)
Checking for ypbind ... /sbin/ypbind (50-yp.conf Linux)

   SYSCONFDIR =         /etc
   SBINDIR =            /sbin
   LIBDIR =             /lib
   LIBEXECDIR =         /libexec
   DBDIR =              /var/db
   RUNDIR =             /var/run
   MANDIR =             /usr/share/man
   HOOKSCRIPTS =        50-ntp.conf 50-yp.conf

/bin/sh  genembedh dhcpcd-definitions.conf dhcpcd-embedded.h.in > dhcpcd-embedded.h
/bin/sh  genembedc dhcpcd-definitions.conf > dhcpcd-embedded.c
cc -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -I./crypt -MM common.c control.c dhcpcd.c duid.c eloop.c if-options.c if-pref.c net.c script.c dhcp-common.c dhcpcd-embedded.c if-linux.c if-linux-wireless.c arp.c dhcp.c ipv4.c ipv4ll.c auth.c compat/arc4random.c compat/closefrom.c compat/strlcpy.c compat/pselect.c > .depend
cc -O2 -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -I./crypt -c common.c -o common.o
cc -O2 -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -I./crypt -c control.c -o control.o
cc -O2 -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -I./crypt -c dhcpcd.c -o dhcpcd.o
dhcpcd.c: In function `write_pid':
dhcpcd.c:111: warning: implicit declaration of function `dprintf'
dhcpcd.c: In function `find_interface':
dhcpcd.c:303: warning: implicit declaration of function `TAILQ_FOREACH'
dhcpcd.c:303: error: `next' undeclared (first use in this function)
dhcpcd.c:303: error: (Each undeclared identifier is reported only once
dhcpcd.c:303: error: for each function it appears in.)
dhcpcd.c:303: error: syntax error before '{' token
dhcpcd.c:304: error: `__s1_len' undeclared (first use in this function)
dhcpcd.c:304: error: `__s2_len' undeclared (first use in this function)
dhcpcd.c:304: error: syntax error before ')' token
dhcpcd.c: In function `warn_iaid_conflict':
dhcpcd.c:554: error: syntax error before '{' token
dhcpcd.c:559: error: break statement not within loop or switch
dhcpcd.c: At top level:
dhcpcd.c:568: error: syntax error before "if"
dhcpcd.c: In function `handle_interface':
dhcpcd.c:736: warning: implicit declaration of function `TAILQ_FIRST'
dhcpcd.c:736: warning: assignment makes pointer from integer without a cast
dhcpcd.c:736: warning: implicit declaration of function `TAILQ_NEXT'
dhcpcd.c:736: warning: assignment makes pointer from integer without a cast
dhcpcd.c:758: warning: assignment makes pointer from integer without a cast
dhcpcd.c: In function `reconf_reboot':
dhcpcd.c:814: warning: assignment makes pointer from integer without a cast
dhcpcd.c: In function `stop_all_interfaces':
dhcpcd.c:842: warning: implicit declaration of function `TAILQ_LAST'
dhcpcd.c:842: error: `if_head' undeclared (first use in this function)
dhcpcd.c:842: warning: assignment makes pointer from integer without a cast
dhcpcd.c:858: confused by earlier errors, bailing out
make: *** [dhcpcd.o] Error 1


Any help is much appreciated.

 

thanks,

Saima


 

> Date: Thu, 24 Apr 2014 10:43:20 +0100
> From: roy@xxxxxxxxxxxx
> To: sa_farooqui@xxxxxxxxxxx
> CC: dhcpcd-discuss@xxxxxxxxxxxx
> Subject: RE: [dhcpcd-discuss] Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4
> 
> On 24/04/2014 10:08, Roy Marples wrote:
> > On 24/04/2014 1:26, Saima wrote:
> >> This is the patch I used, is it ok to set the constant values to 0:
> > 
> > No that's not OK.
> > Whilst it may compile, it surely won't work.
> > I've changed a few things around since 6.3.2 so future patches won't 
> > compile.
> > Are you able to install fossil and get the latest head build, or
> > download a snapshot (you will have to log in as anonymous) from the
> > project page?
> > 
> > I think I've fixed everything apart from IPV6_RECVPKTINFO,
> > IPV6_RECVHOPLIMIT, IFA_F_OPTIMISTIC, IFA_F_DADFAILED.
> > These are IPv6 specifc defines. It could be possible to work without
> > them, but I'm tempted to disable IPv6 entirely because IFA_F_DADFAILED
> > doesn't exist which is kind of essential.
> 
> OK, I think I now have everything fixed apart from IFA_F_DADFAILED.
> If that's the only failure, you could #define it to zero as you did 
> before and see if everything at least works.
> IPv6 address failures are uncommon, so you should be ok. I'll just think 
> about how to handle it.
> 
> Thanks
> 
> Roy
> 
 		 	   		  

Follow-Ups:
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Roy Marples
References:
Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Farooqui, Saima
Re: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Roy Marples
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Saima
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Roy Marples
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Saima
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Saima
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Roy Marples
RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4Roy Marples
Archive administrator: postmaster@marples.name