BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004624 [buildroot] Shared Library Support major always 08-17-08 23:36 08-22-08 07:27
Reporter lykowdk View Status public  
Assigned To buildroot
Priority normal Resolution fixed  
Status closed   Product Version 0.9.27
Summary 0004624: Cannot build Modular X.org: undefined references in libX11.so
Description Trying to build Modular X.org it crashes here..
I've tried everything I can think of to find the dependencies.
I am building with WCHAR enabled.

/bin/bash ../libtool --tag=CC --mode=link /home/lykowdk/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc -Os -I/home/lykowdk/buildroot/build_i686/staging_dir/usr/include -I/home/lykowdk/buildroot/build_i686/staging_dir/include --sysroot=/home/lykowdk/buildroot/build_i686/staging_dir/ -isysroot /home/lykowdk/buildroot/build_i686/staging_dir -mtune=i686 -march=i686 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -o sxpm sxpm.o -lX11 -lXt -lX11 -lSM -lICE -lXext ../src/libXpm.la
/home/lykowdk/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc -Os -I/home/lykowdk/buildroot/build_i686/staging_dir/usr/include -I/home/lykowdk/buildroot/build_i686/staging_dir/include --sysroot=/home/lykowdk/buildroot/build_i686/staging_dir/ -isysroot /home/lykowdk/buildroot/build_i686/staging_dir -mtune=i686 -march=i686 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -o sxpm sxpm.o /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libXt.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libSM.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libICE.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libXext.so ../src/.libs/libXpm.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so /home/lykowdk/buildroot/build_i686/staging_dir/usr/lib/libxcb-xlib.so /home/lykowdk/buildroot/build_i686/libxcb-1.1/src/.libs/libxcb.so /home/lykowdk/buildroot/build_i686/staging_dir/usr/lib/libxcb.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libXau.so /home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libXdmcp.so -ldl -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib/ -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/xlib_libXpm-3.5.7/src/.libs -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/staging_dir/usr/lib -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/libxcb-1.1/src/.libs -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib/ -Wl,--rpath -Wl,/home/lykowdk/buildroot/build_i686/staging_dir/usr/lib
/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so: undefined reference to `wctomb'
/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so: undefined reference to `mbstowcs'
/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so: undefined reference to `mbtowc'
/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so: undefined reference to `_stdlib_mb_cur_max'
/home/lykowdk/buildroot/build_i686/staging_dir//usr/lib//libX11.so: undefined reference to `mblen'
Additional Information
Attached Files

- Relationships

- Notes
(0010554)
antialize
08-20-08 06:41

Have you tried adding "locale support" in "make uclibc-menuconfig", it did the trick for me!
 
(0010614)
lykowdk
08-21-08 15:55

That did the trick.. So how do I close this out?

Shouldn't there be an autodependency defined such that both WCHAR and locale support are added automatically when Xorg is selected?
 
(0010634)
antialize
08-22-08 00:15

I'v been trying to look into how one would go about doing that, currently it is not possible to add deps between different menuconfigs. I have found several places where there realy should be deps between buildroot and linux26,uclibc or bussybox.
 
(0010644)
Paul Bussmann
08-22-08 00:22

AFAIK buildroot does such stuff by adding e.g.

echo "CONFIG_FEATURE_HAVE_RPC=y" >> project_build_arm/uclibc/busybox-1.10.3/.config
that will overrride the setting before and then doing something like "make oldconfig" ...

I'm not really familiar with it, but I think, I've seen it from time to time.
 
(0010654)
bernhardf
08-22-08 01:10

The correct thing to do is to fix Xorg (upstream, of course) not to rely on locale support unless it's available and not explicitely turned off in the configuration.
 
(0010674)
jacmet
08-22-08 07:27

I've committed a workaround to trunk as r23181:

xorg: depend on WCHAR and LOCALE
    
Xorg needs WCHAR and LOCALE, so make sure it cannot be selected unless
this is enabled in the toolchain.
    
We unfortunately cannot make BR2_XSERVER_xorg depend on BR2_USE_LOCALE
because of a strange recursion error with dbus, but now we atleast
inform the user what to do to get a working configuration.
    
The real solution is ofcause of fix xorg, but that's for another day.
 

- Issue History
Date Modified Username Field Change
08-17-08 23:36 lykowdk New Issue
08-17-08 23:36 lykowdk Status new => assigned
08-17-08 23:36 lykowdk Assigned To  => buildroot
08-20-08 06:41 antialize Note Added: 0010554
08-21-08 15:55 lykowdk Note Added: 0010614
08-22-08 00:15 antialize Note Added: 0010634
08-22-08 00:22 Paul Bussmann Note Added: 0010644
08-22-08 01:10 bernhardf Note Added: 0010654
08-22-08 07:27 jacmet Status assigned => closed
08-22-08 07:27 jacmet Note Added: 0010674
08-22-08 07:27 jacmet Resolution open => fixed
08-27-08 05:23 Cy8aer Issue Monitored: Cy8aer


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker