[uClibc]Compiling dhcpcd

Richard A. Smith rsmith at bitworks.com
Wed Jan 17 00:15:08 UTC 2001


I am trying to compile dhcpcd with uClibc and I am having a bit of trouble..

Using the same procedure found in busybox to compile against uClibc results in bunches of 
symbol redefined messages and then it gets into parse errors.

The redefined symbols are in  $(LIBCDIR)/include/linux/socket.h and 
$(LIBCDIR)/include/bits/socket.h then there is some more in linux/if.h and net/if.h

So I am thinking I don't have the compiling flags set up correctly. Here's the additions I 
made to the makefile for dhcpcd.

LIBCDIR = /usr/src/uClibc
LDFLAGS += -s -Os -nostdlib -luClibc -lgcc $(LIBCDIR)/crt0.o
CFLAGS += -nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")

Then entire compile line looks like:

gcc -Os -Wall -nostdinc -I/usr/src/uClilbc/include -I/usr/lib/gcc-lib/i386-linux/2.95.2
/include -I. -c client.c

What do I not have set right or what do I need to go look for?



--
Richard A. Smith                         Bitworks, Inc.               
rsmith at bitworks.com               501.846.5777                        
Sr. Design Engineer        http://www.bitworks.com   







More information about the uClibc mailing list