[Lcdproc] uClinux patching
Hans Eklund
hans@rubico.se
Thu Dec 14 07:47:01 2006
Hi Developers
First: Read something about Lcdproc uClinux port for a router in the archives,
but no details really. If anyone has information about a patch for lcdproc
0.5.1 against uClibc i would be glad, if not I may have a patch soon comming
up wich i believe would be appreciated by the uClinux community. Personally
im working with uClinux drivers for Blackfin.
Have made some basic patching to the code so it compiles(mostly changed
daemonzie code so far). But at link time it fails and im somwhat puzzled:
configuring with,
./configure --host=bfin-uclinux --disable-libusb --disable-ldap --enable-drivers=hd44780
CPPFLAGS="-DUCLINUX" LDFLAGS="-Wl,-elf2flt"
as usual. make goes through with compiling. But while building a shared
library:
bfin-uclinux-gcc -fPIC -Wall -O3 -Wno-unused-function -shared -Wl,-elf2flt -o
hd44780.so hd44780-hd44780.o libLCD.a hd44780-hd44780-serial.o
hd44780-hd44780-lis2.o hd44780-hd44780-4bit.o hd44780-hd44780-ext8bit.o
hd44780-lcd_sem.o hd44780-hd44780-winamp.o hd44780-hd44780-serialLpt.o
hd44780-i2c.o libbignum.a
-shared used without passing a shared library ID
collect2: ld returned 1 exit status
make[3]: *** [hd44780.so] Error 1
make[3]: Leaving directory `/home/hans/vpx/lcdproc-0.5.1/server/drivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hans/vpx/lcdproc-0.5.1/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hans/vpx/lcdproc-0.5.1'
make: *** [all] Error 2
But building a shared library fails and i have little experience with building
such, did some studys at
http://www.ucdot.org/article.pl?sid=03/11/25/1126257&mode=thread on how to
build shared libraries for uclinux. Would you recommend building it as a
shared library for uclinux or should i try to build the entire package in a
static manner instead? Is it possible, so any recommendations for that would
be appreciated.
regards
Hans Eklund.
www.rubico.ab