Finch and console ui

Bill Fassler bill.fassler at yahoo.com
Wed Sep 5 11:33:25 EDT 2007


Although I am attempting to build ELF flat static, I am still having success up until panel symbols.  According to my config.log the autoconf utilities find glib, and then they cannot find the wide versions of ncurses or panel, but then they fall back on the narrow versions (as the script infers that they should).

Here are excerpts of what I am seeing:

**********************************
Seems to find glib OK
**********************************
configure:25174: checking for GLIB
configure:25182: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0 gthread-2.0"
configure:25185: $? = 0
configure:25200: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0 gthread-2.0"
configure:25203: $? = 0
configure:25261: result: yes

*********************************
Can't find ncursesw (expected)
********************************
configure:27749: checking for initscr in -lncursesw
configure:27784: bfin-uclinux-gcc -o conftest -D__linux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -D__lin
ux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -lpthread -L/home/vocal/project/blackfin-svn-branch/elf_flat
/uClinux-dist/staging/usr/lib conftest.c -lncursesw  -lnsl -lresolv  >&5
/home/vocal/project/blackfin-svn-branch/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.1/../../../../bfin-uclinux/bin/ld.real: cannot find -lncursesw

*********************************
But does find ncurses
*********************************
configure:28103: checking for initscr in -lncurses
configure:28138: bfin-uclinux-gcc -o conftest -D__linux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -D__lin
ux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -lpthread -L/home/vocal/project/blackfin-svn-branch/elf_flat
/uClinux-dist/staging/usr/lib conftest.c -lncurses  -lnsl -lresolv  >&5
configure:28144: $? = 0
configure:28162: result: yes
*************************************
Can't find panelw (expected)
*************************************
configure:27816: checking for update_panels in -lpanelw
configure:27851: bfin-uclinux-gcc -o conftest -D__linux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -D__lin
ux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -lpthread -L/home/vocal/project/blackfin-svn-branch/elf_flat
/uClinux-dist/staging/usr/lib conftest.c -lpanelw  -lnsl -lresolv  >&5
/home/vocal/project/blackfin-svn-branch/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.1/../../../../bfin-uclinux/bin/ld.real: cannot find -lpanelw
**************************************
But does find panel
*************************************
configure:28170: checking for update_panels in -lpanel
configure:28205: bfin-uclinux-gcc -o conftest -D__linux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -D__lin
ux__ -DNOMMU -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include -lpthread -L/home/vocal/project/blackfin-svn-branch/elf_flat
/uClinux-dist/staging/usr/lib conftest.c -lpanel  -lnsl -lresolv  >&5
/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/lib/libpanel.a(p_update.o): In function `_update_panels':
****************************************
But fails here... I am not positive that this is the last hurdle
to a console, but I hope so.  I just don't understand this one yet.
Since I am building ELF flat static, I wonder it the pidgin/finch
link commands are in the right order for dependencies.  I would venture
to guess that static builds of Finch are not often (if ever) tested.
In any event I solicit anyones opinion here..
****************************************************************
../../panel/p_update.c:(.text+0x8): undefined reference to `__nc_panelhook'
../../panel/p_update.c:(.text+0x8c): undefined reference to `_is_linetouched'
../../panel/p_update.c:(.text+0xf0): undefined reference to `__nc_panelhook'
../../panel/p_update.c:(.text+0x102): undefined reference to `_wnoutrefresh'
collect2: ld returned 1 exit status
configure:28211: $? = 1
configure: failed program was:

Any ideas?  Is it possible that the order of dependent libraries are not correct since almost everybody uses shared?

Regards,
Bill

Kelly Wilson <wilsonkk at shaw.ca> wrote: Hey Bill,

I don't think the actual console ui build will be done until the issues
with ncurses are addressed. That is the way things were for me when
porting libpurple/finch to Syllable OS. I used the
--enable-consoleui=yes argument like you did but it wasn't enabled at
the end of the configure script until I had dynamic libraries for
ncurses.

For my build I had to get ncurses dynamic libraries to build on Syllable
first, then the configure script would find -lncurses and -lpanel (this
will solve the problems #3 and #4 since you don't need ncursesw to
build...just -lncurses. The same goes for -lpanel and -lpanelw). The
initscr function will then be found properly, as well, I believe. 

I can't guarantee that finch will run without -lncursesw/-lpanelw, just
that it will build, since finch won't run on Syllable yet (maybe I do
need those libs to run?!? Could someone let me know? ;)

I have my ncurses dynamic libraries in /usr/local/lib. The
libform.so ,libncurses++ and libmenu.so are also included in the ncurses
package.

Thanks,
K.Wilson




_______________________________________________
Devel mailing list
Devel at pidgin.im
http://pidgin.im/cgi-bin/mailman/listinfo/devel


       
---------------------------------
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20070905/b5e1ad64/attachment.html>


More information about the Devel mailing list