dhcpcd-discuss

RE: Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4

Saima

Tue Apr 22 13:55:29 2014

Yes, I have /usr/include/sys/queue.h

 

Here is the complete build log:

 

cd dhcpcd-6.3.2; ./configure
configure args:
Deriving operating system from ... x86_64-unknown-linux
Configuring dhcpcd for ... linux
Using compiler .. /auto/home/lsbuild/desktop-426383/usr/bin/gcc
gcc (GCC) 3.4.4 20050721 (Red Hat -)
dhcpcd-definitions.conf will be embedded in dhcpcd itself
Testing for getifaddrs ... yes
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 ypind ... /sbin/ypbind (50-yp.conf)

   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

cd dhcpcd-6.3.2; make
make[1]: Entering directory `/distro_main/421819/dhcpcd/dhcpcd-6.3.2'
GNUmakefile:4: no file name for `-include'
/auto/home/lsbuild/desktop-426383/usr/bin/gcc
 -O1 -std=gnu99 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DINET -DINET6 
-I./crypt -c dhcpcd.c -o dhcpcd.o
dhcpcd.c: In function `write_pid':
dhcpcd.c:109: warning: implicit declaration of function `dprintf'
dhcpcd.c: In function `find_interface':
dhcpcd.c:301: warning: implicit declaration of function `TAILQ_FOREACH'
dhcpcd.c:301: error: `next' undeclared (first use in this function)
dhcpcd.c:301: error: (Each undeclared identifier is reported only once
dhcpcd.c:301: error: for each function it appears in.)
dhcpcd.c:301: error: syntax error before '{' token
dhcpcd.c:302: error: `__s1_len' undeclared (first use in this function)
dhcpcd.c:302: error: `__s2_len' undeclared (first use in this function)
dhcpcd.c:302: error: syntax error before ')' token
dhcpcd.c: In function `warn_iaid_conflict':
dhcpcd.c:552: error: syntax error before '{' token
dhcpcd.c:557: error: break statement not within loop or switch
dhcpcd.c: At top level:
dhcpcd.c:566: error: syntax error before "if"
dhcpcd.c: In function `handle_interface':
dhcpcd.c:732: warning: implicit declaration of function `TAILQ_FIRST'
dhcpcd.c:732: warning: assignment makes pointer from integer without a cast
dhcpcd.c:732: warning: implicit declaration of function `TAILQ_NEXT'
dhcpcd.c:732: warning: assignment makes pointer from integer without a cast
dhcpcd.c:754: warning: assignment makes pointer from integer without a cast
dhcpcd.c: In function `reconf_reboot':
dhcpcd.c:810: warning: assignment makes pointer from integer without a cast
dhcpcd.c: In function `stop_all_interfaces':
dhcpcd.c:838: warning: implicit declaration of function `TAILQ_LAST'
dhcpcd.c:838: error: `if_head' undeclared (first use in this function)
dhcpcd.c:838: warning: assignment makes pointer from integer without a cast
dhcpcd.c:854: confused by earlier errors, bailing out
make[1]: *** [dhcpcd.o] Error 1
make[1]: Leaving directory `/distro_main/421819/dhcpcd/dhcpcd-6.3.2'
make: *** [all] Error 2


Thanks,

Saima

> Date: Thu, 17 Apr 2014 09:25:13 +0100
> From: roy@xxxxxxxxxxxx
> To: dhcpcd-discuss@xxxxxxxxxxxx
> Subject: Re: [dhcpcd-discuss] Trouble compiling dhcpcd wiht glibc 2.3.5 and gcc 3.4.4
> 
> Hi
> 
> On 17/04/2014 1:05, Farooqui, Saima wrote:
> > I am getting the following errors in compiling dhcpcd 6.3.2 with gcc
> > 3.4.4 and glibc 2.3.5:
> > dhcpcd.c: In function `write_pid':
> > dhcpcd.c:109: warning: implicit declaration of function `dprintf'
> > dhcpcd.c: In function `find_interface':
> > dhcpcd.c:301: warning: implicit declaration of function
> > `TAILQ_FOREACH'
> > dhcpcd.c:301: error: `next' undeclared (first use in this function)
> > dhcpcd.c:301: error: (Each undeclared identifier is reported only once
> > dhcpcd.c:301: error: for each function it appears in.)
> > dhcpcd.c:301: error: syntax error before '{' token
> > dhcpcd.c:302: error: `__s1_len' undeclared (first use in this
> > function)
> > dhcpcd.c:302: error: `__s2_len' undeclared (first use in this
> > function)
> > dhcpcd.c:302: error: syntax error before ')' token
> > dhcpcd.c: In function `warn_iaid_conflict':
> > dhcpcd.c:552: error: syntax error before '{' token
> > dhcpcd.c:557: error: break statement not within loop or switch
> > dhcpcd.c: At top level:
> > dhcpcd.c:566: error: syntax error before "if"
> > dhcpcd.c: In function `handle_interface':
> > dhcpcd.c:732: warning: implicit declaration of function `TAILQ_FIRST'
> > dhcpcd.c:732: warning: assignment makes pointer from integer without a
> > cast
> > dhcpcd.c:732: warning: implicit declaration of function `TAILQ_NEXT'
> > dhcpcd.c:732: warning: assignment makes pointer from integer without a
> > cast
> > dhcpcd.c:754: warning: assignment makes pointer from integer without a
> > cast
> > dhcpcd.c: In function `reconf_reboot':
> > dhcpcd.c:810: warning: assignment makes pointer from integer without a
> > cast
> > dhcpcd.c: In function `stop_all_interfaces':
> > dhcpcd.c:838: warning: implicit declaration of function `TAILQ_LAST'
> > dhcpcd.c:838: error: `if_head' undeclared (first use in this function)
> > dhcpcd.c:838: warning: assignment makes pointer from integer without a
> > cast
> > dhcpcd.c:854: confused by earlier errors, bailing out
> > make[1]: *** [dhcpcd.o] Error 1
> > 
> > Any help is greatly appreciated.
> 
> Can you post the output of ./configure please?
> Also, does /usr/include/sys/queue.h exist?
> 
> 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
Archive administrator: postmaster@marples.name