FW: Re[2]: [uClinux-dev] brctl or bridging in 2.6 kernel

David McCullough davidm at snapgear.com
Sun Oct 30 18:08:47 EST 2005


Jivin Jordan Fuerst lays it down ...
> I did as suggested:
> 	cd user/bridge-utils
> 	make -f Makefile distclean
> 	cd ../..
> 	make user/bridge-utils_clean
> 	make user_only
> 
> and I still have the same problem. The compiler is still executing this
> mystery "/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../" I
> have no idea where this path comes from. I am grateful for any other
> suggestions. I really don't know how to fix this.


Looks like you don't have the appropriate -Wl,-elf2flt option on the
build line.

Try changing the configure line from:

	./configure --host=$(CROSS_COMPILE:-=) $(CONFOPTS)

to

	CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" ./configure --host=$(CROSS_COMPILE:-=) $(CONFOPTS)

on the configure line,  that may clean it up, remember to clean the dir
out properly before rebuilding,

Cheers,
Davidm


> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x -c
> libbridge_compat.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c
> libbridge_devif.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c libbridge_if.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c
> libbridge_init.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c
> libbridge_misc.c
> ar rcs libbridge.a libbridge_compat.o  libbridge_devif.o libbridge_if.o
> libbridge_init.o libbridge_misc.o
> m68k-elf-ranlib libbridge.a
> make[4]: Leaving directory
> `/home/jfuerst/Desktop/uClinux-dist-2005/user/bridge-utils/libbridge'
> make[4]: Entering directory
> `/home/jfuerst/Desktop/uClinux-dist-2005/user/bridge-utils/brctl'
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g -Os -g
> -fomit-frame-pointer -fno-common -fno-builtin -Wall   -DEMBED -msep-data
> -Dlinux -D__linux__ -Dunix -D__uClinux__ -I../libbridge
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c brctl.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g -Os -g
> -fomit-frame-pointer -fno-common -fno-builtin -Wall   -DEMBED -msep-data
> -Dlinux -D__linux__ -Dunix -D__uClinux__ -I../libbridge
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c brctl_cmd.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Wall -g -Os -g
> -fomit-frame-pointer -fno-common -fno-builtin -Wall   -DEMBED -msep-data
> -Dlinux -D__linux__ -Dunix -D__uClinux__ -I../libbridge
> -I/home/jfuerst/Desktop/uClinux-dist-2005/linux-2.6.x  -c brctl_disp.c
> ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE brctl.o brctl_cmd.o
> brctl_disp.o  -L ../libbridge -lbridge -o brctl
> /usr/local/lib/gcc-lib/m68k-elf/2.95.3/m5200/libgcc.a(__main.o): In
> function `__do_global_ctors':
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> c/libgcc2.c(.text+0x36): undefined reference to `__CTOR_LIST__'
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> c/libgcc2.c(.text+0x4c): undefined reference to `__CTOR_LIST__'
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> c/libgcc2.c(.text+0x54): undefined reference to `__CTOR_LIST__'
> /usr/local/lib/gcc-lib/m68k-elf/2.95.3/m5200/libgcc.a(__main.o): In
> function `__do_global_dtors':
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> c/libgcc2.c(.data+0x0): undefined reference to `__DTOR_LIST__'
> collect2: ld returned 1 exit status
> make[4]: *** [brctl] Error 1
> 
> 
> 
> 
> Regards,
> 
> Jordan 
> 
> -----Original Message-----
> From: uclinux-dev-bounces at uclinux.org
> [mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of David McCullough
> Sent: Thursday, October 27, 2005 5:53 PM
> To: uClinux development list
> Subject: Re: FW: Re[2]: [uClinux-dev] brctl or bridging in 2.6 kernel
> 
> 
> Jivin Jordan Fuerst lays it down ...
> > 
> > I have tracked the error farther up the chain to this:
> > 
> > make[4]: Entering directory
> > `/home/jfuerst/Desktop/uClinux-dist-2005/user/bridge-utils/brctl'
> > ucfront-gcc  m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE brctl.o brctl_cmd.o
> > brctl_disp.o  -L ../libbridge -lbridge -o brctl
> > /usr/local/lib/gcc-lib/m68k-elf/2.95.3/m5200/libgcc.a(__main.o): In
> > function `__do_global_ctors':
> >
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> > c/libgcc2.c(.text+0x36): undefined reference to `__CTOR_LIST__'
> >
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> > c/libgcc2.c(.text+0x4c): undefined reference to `__CTOR_LIST__'
> >
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> > c/libgcc2.c(.text+0x54): undefined reference to `__CTOR_LIST__'
> > /usr/local/lib/gcc-lib/m68k-elf/2.95.3/m5200/libgcc.a(__main.o): In
> > function `__do_global_dtors':
> >
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gc
> > c/libgcc2.c(.data+0x0): undefined reference to `__DTOR_LIST__'
> > collect2: ld returned 1 exit status
> > make[4]: *** [brctl] Error 1
> > 
> > 
> > 
> > I can't seem to figure out where the compiler gets this
> > /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/ path from. I
> think
> > if I can correct this to use the correct path than the problem will
> > probably go away.
> 
> 
> Looks like either you have changed compilers or the dist has some
> auto-configured files included.
> 
> 
> Do this:
> 
> 	cd user/bridge-utils
> 	make -f Makefile distclean
> 	cd ../..
> 	make user/bridge-utils_clean
> 	make user_only
> 
> and see if that cleans it up,
> 
> Cheers,
> Davidm
> 
> 
> -- 
> David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions +
> Security
> Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org
> http://www.cyberguard.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com



More information about the uClinux-dev mailing list