[ minicom-Bugs-303512 ] how to cross compiing minicom for arm , i did some.but meet some trouble , please help.

noreply at alioth.debian.org noreply at alioth.debian.org
Wed Jul 5 19:44:18 UTC 2006


Bugs item #303512, was opened at 2006-06-02 06:04
You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=100031&aid=303512&group_id=30018

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: how to cross compiing minicom for arm ,i did some.but meet some trouble ,please help.

Initial Comment:
below is my ./configure 
./configure --host=arm-linux --prefix=/root/blue/out  CC=/root/blue/arm-linux/bin/arm-linux-gcc  CPP=/root/blue/arm-linux/bin/arm-linux-cpp AR=/root/blue/arm-linux/bin/arm-linux-ar STRIP=/root/blue/arm-linux/bin/arm-linux-strip RANLIB=/root/blue/arm-linux/bin/arm-linux-ranlib  LD=/root/blue/arm-linux/bin/arm-linux-ld



and after that, I  sucessfully produce Makefile 
but ,further step ,i type "make ".some problems occur.
below is error messages
gcc -g -O2 -Wall -W -o minicom minicom.o vt100.o config.o help.o updown.o util.o dial.o window.o wkeys.o ipc.o windiv.o sysdep1.o sysdep1_s.o sysdep2.o rwconf.o main.o file.o getsdir.o wildmat.o common.o ../lib/libport.a
minicom.o(.text+0x199c): In function `main':
/root/blue/minicom-2.1/src/minicom.c:1155: undefined reference to `COLS'
minicom.o(.text+0x19a0):/root/blue/minicom-2.1/src/minicom.c:1155: undefined reference to `LINES'
config.o(.text+0x230c): In function `dotermmenu':
/root/blue/minicom-2.1/src/config.c:1175: undefined reference to `LINES'
config.o(.text+0x54c8): In function `doscrkeyb':
/root/blue/minicom-2.1/src/config.c:980: undefined reference to `LINES'
config.o(.text+0x5518):/root/blue/minicom-2.1/src/config.c:980: undefined reference to `COLS'
help.o(.text+0x340): In function `help':
/root/blue/minicom-2.1/src/help.c:88: undefined reference to `COLS'
dial.o(.text+0x3208): In function `dialdir':
/root/blue/minicom-2.1/src/dial.c:1667: undefined reference to `COLS'
dial.o(.text+0x321c):/root/blue/minicom-2.1/src/dial.c:1667: undefined reference to `LINES'
window.o(.text+0xb8): In function `outstr':
/root/blue/minicom-2.1/src/window.c:189: undefined reference to `tputs'
window.o(.text+0x438): In function `_gotoxy':
/root/blue/minicom-2.1/src/window.c:328: undefined reference to `tgoto'
window.o(.text+0x4c8):/root/blue/minicom-2.1/src/window.c:281: undefined reference to `tgoto'
window.o(.text+0x50c):/root/blue/minicom-2.1/src/window.c:289: undefined reference to `tgoto'
window.o(.text+0x54c):/root/blue/minicom-2.1/src/window.c:322: undefined reference to `COLS'
window.o(.text+0x550):/root/blue/minicom-2.1/src/window.c:322: undefined reference to `LINES'
window.o(.text+0x73c): In function `_write':
/root/blue/minicom-2.1/src/window.c:366: undefined reference to `LINES'
window.o(.text+0x740):/root/blue/minicom-2.1/src/window.c:366: undefined reference to `COLS'
window.o(.text+0x91c): In function `wleave':
/root/blue/minicom-2.1/src/window.c:668: undefined reference to `LINES'
window.o(.text+0xa68): In function `wreturn':
/root/blue/minicom-2.1/src/window.c:686: undefined reference to `LINES'
why??


my email :  redwall76 at hotmail.com

expected your answer 

----------------------------------------------------------------------

Comment By: Nobody (None)
Date: 2006-07-05 19:44

Message:
Logged In: NO 

As far as the tputs and tgoto functions go, by the by, there should have been many more functions starting with 't' that crashed, these are all associated with the NCurses library.  You need to cross compile the NCurses library with the prefix of your arm-linux directory where all of the include files are to be found.  If you notice when you try to configure minicom there will be a little section of output where it states "checking for tputs".  It should start in -ltinfo and then move on to -lncurses, then -lcurses and so forth.  If all of these are followed by a "no" then the NCurses library, or rather curses.h specifically, was not found.  
As for the LINES and COLS errors, these come up because since you are cross compiling for an ARM platform the variable _UWIN2PO is not defined; hence these other two variables do not get defined.  This definition is found in minicom.h.  The program should compile if the line "#ifdef _UWIN2PO" is commented out along with the following "#endif".  However, I do not know what problems, if any, this will cause.

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=100031&aid=303512&group_id=30018



More information about the minicom-devel mailing list