I'm running RedHat 7.1 and I can't get the readline author's example program
to compile (nor any other readline-using program).  Any suggestions?  Here
are the error messages:

[root@db:/home/jake/weber/unix/readline-example]$gcc -lreadline rl.c /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tgetnum' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tgoto' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tgetflag' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to BC' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tputs' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to PC' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tgetent' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to UP' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined reference to tgetstr' collect2: ld returned 1 exit status   0 Jason 7/13/2003 11:30:16 PM comp.unix.programmer 10762 articles. 0 followers. kokososo56 (349) is leader. 4 Replies 2276 Views Similar Articles [PageSpeed] 14 "Jason" <jake1138@NO.SPAM.yahoo.com> writes: > I'm running RedHat 7.1 and I can't get the readline author's example program > to compile (nor any other readline-using program). Any suggestions? Here > are the error messages: > > [root@db:/home/jake/weber/unix/readline-example]$ gcc -lreadline rl.c
> reference to tgetnum'
> reference to tgoto'
> reference to tgetflag'
> reference to BC'
> reference to tputs'
> reference to PC'
> reference to tgetent'
> reference to UP'
> reference to tgetstr'
> collect2: ld returned 1 exit status

--
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg

 0
Maurizio
7/14/2003 5:38:53 AM
Maurizio Loreti <mlo@foobar.it> wrote in message news:<rmy8z1u0pe.fsf@mlinux.pd.infn.it>...

Better make that "gcc rl.c -lreadline -ltermcap".
The order of sources and libraries matters, and so does spelling.

Cheers,

 0
ppluzhnikov
7/14/2003 8:53:24 PM
"Maurizio Loreti" <mlo@foobar.it> wrote in message
news:rmy8z1u0pe.fsf@mlinux.pd.infn.it...
> "Jason" <jake1138@NO.SPAM.yahoo.com> writes:
>
> > I'm running RedHat 7.1 and I can't get the readline author's example
program
> > to compile (nor any other readline-using program).  Any suggestions?
Here
> > are the error messages:
> >
> > [root@db:/home/jake/weber/unix/readline-example]$gcc -lreadline rl.c > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tgetnum' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tgoto' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tgetflag' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to BC' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tputs' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to PC' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tgetent' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to UP' > > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so: undefined > > reference to tgetstr' > > collect2: ld returned 1 exit status > > RTFM. gcc -lreadline -termcap rl.c > > -- > Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html > Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg And what FM would that be? I can compile this just fine on a Debian system with just -lreadline, but not on either of the RedHat systems that I've tried. I can add -ltermcap or -lncurses and either one will allow it to compile though. Anyone care to shed some light on why? What does readline have to do with termcap or ncurses? By the way, thanks for your responses. -- Jason [ jake1138 AT yahoo DOT com ]   0 Jason 7/15/2003 5:21:41 AM "Jason" <jake1138@NO.SPAM.yahoo.com> wrote in message news:<bf0316$sk7$1@terabinaries.xmission.com>... > And what FM would that be? This doesn't appear to be documented in the info pages ;-( You could have figured it out, though:$ nm -AD /usr/lib/lib*.so 2>/dev/null | grep ' tgetnum'
/usr/lib/libcurses.so:00029140 T tgetnum
/usr/lib/libncurses.so:00029140 T tgetnum
/usr/lib/libtermcap.so:00001e60 T tgetnum

> I can compile this just fine on a Debian system with just -lreadline, but
> not on either of the RedHat systems that I've tried.  I can add -ltermcap
> or -lncurses and either one will allow it to compile though.  Anyone care to
> shed some light on why?

Probably because libreadline.so on Debian has a dynamic dependency on
libtermcap.so or libncurses.so, while on RedHat it doesn't.

Run "ldd your_exe" to find which libreadline.so it uses, then
"ldd /path/to/libreadline.so" on both systems, and compare the results.

> What does readline have to do with termcap or ncurses?

It needs to redraw your screen (well, just the line on which you are typing),
and position your cursor. That's precisely what lib{curses,termcap} do.
Typing "info termcap" will tell you more.

Cheers,
`
 0
ppluzhnikov
7/15/2003 4:41:29 PM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We're running a krb5-1.3.4 KDC on a Solaris 8 Ultra-10 box with 384Mb of real memory. Our database has about 280K principals (it's about 250Mb in size). Lately, we've been seeing problems with kadmin responses, in particular timing out on long requests (e.g., listprincs *) and sometimes even upon initial kadmin connection. Are there any known issues with 1.3.4 kadmind and memory? I notice that when I have a kadmin/kadmind session in progress, kadmind will show (according to 'top') resident memory usage at over 100M, which I...

font problem
Hi, Anyone has ever faced this problem? I am translating an English pdf file into Chinese, but when I input the Chinese characters, I got unreadable characters. So I followed information to change the font by right clicking the English charcters I want to change, and choose the properties, then the font to try to change the font. But I got the following errors when I try to make a font change, "The change to a different font was not done because the chosen font and the font encodings in the document differ and could not be resolved." Thanks for your information in advance Frank ...

Convert Reference No. to string
Dear All &nbsp; I am using a device (Phidget 8/8/8 IUSB nterface board) where the supplied VI's useinvoke nodes to enable you to read\write values to it. &nbsp; When the device is opened an automation refernce no. is generated (this points to an active X object). This appears to be a 10 digit decimal no, but is not of the numeric type. &nbsp; I&nbsp; need to convert this ref no. into a string (and also from string back into ref no. ) so that I can store and retrieve it form a string&nbsp; array. &nbsp; Can anyone please tell me what vi\function i should be using t...

Emulator RAM init differences
Greetings, I ran across another old Apple program ('Moptown Parade') that works on a r= eal Apple //e, but a .dsk image did not work on AppleWin (1.20.0). The cau= se is a bit different, so thought I'd share. After checking the usual suspects (volume number, hardware checks), I'll ad= mit I got stumped. So, I reached out to Brendan Robert to see if he could = try it on JACE, and perhaps shed any more light on what was happening. Bren= dan reported that it also failed (initially) on JACE in the same way I was = seeing, but then through some masterful keystrokes, wa...

Hello to all! How can I define and solve this problem? minimize -trace(Z) s.t. [Z L*A-A'*L+W*C L*B+W*D-G; we know the L,W,G, matrices. variables are matrices: A, B, C, D, Z. I have written the lmivars and lmiterms, but please tell me how can I define and solve the objective function and get the variables? and the codes: setlmis([]) ; i defined: lmivars lmiterms LMIs = getlmis now how can I solve this? min(-trace(Z))? A,B,C,D,Z? Do you have any reference to the problem you are trying to solve (i e:value of L W&#65292;G&#65292;and type of A, B, C, D, Z.) "Hamed Jafar...

Formating Statement problem (agregation problem)
Hi, How should I prepare PreparedStatement if: PreparedStatement stmt=conn.prepareStatement("select bit_or(cright) from codeaccess where cid=? and agid in (?) group by cid") Both parameters are to be numbers but in second one I have list of numbers which looks like that 10,20 The problem is that although I set first parameter as setInt(1,10) I encounter problem with second one. I have to write it as string but if I do that the second part of the query looks like this: "and agid in ('10,20')" which is incorrect since field agid is numeric &q...

Problem with hypcap.sty
Hello All I am experiencing a problem when using hypcap.sty with hyperref. When the hypcap package is used I am getting a different pagebreak on a page with a table on it. It appears that hypcap is adding some extra vertical space around the table. This is creating problems as I need both versions of my output to have identical page breaks (i.e. when using hyperref et al. and when not). My hyperref preamble is: \usepackage[dvips,colorlinks,bookmarksopen,bookmarksnumbered,% citecolor=blue,urlcolor=blue,linkcolor=blue,anchorcolor=blue,% filecolor=blue,menucolor=blue,pagecolor=blue]{hyperref}...

problem with
Hi I am trying to use one IDL program which will help my analysis. I received that program and sample data from other lab. But I have error message from running that program while other lab tells that the program is working fine with their computer. Does anyone have similar problem? The error message is " % Compiled module: WGHTDTTEST_AUTO. groups: 10 9 8 7 6 5 4 3 thrhlds: 0.0300000 0.0265527 0.0235014 0.0208009 0.0184106 0.0162950 0.0144225 0.0127652 0.0112983 0.0100000 In the FORWARD direction --->...

Problem in double while loop
Hi, &nbsp; I'm having a problem using double while loop. &nbsp; I put my program in a while loop where the condition is set to:" continue if true". &nbsp; this while loop is put in another while loop(as i want the user to interact with the program). The outer while loop is set to constant false and condition stop if true. &nbsp; i'm having a problem as i'm unable to display the result. Please help me. &nbsp; Attached is the diagram. I'musing llabview 7.0. &nbsp; Thanks. doublewhileloop.JPG: http://forums.ni.com/attachments/ni/170/249813/1/dou...

Best teams problem
Hello I need some help with this: A web company has n designers and n developers (suppose n = 3). Each designer has a preference order of developers Each developer has a preference order of designers. The problem is to creat the best n teams of two members each (a developer and a designer) in respect to each on preferences. Example: designer(john). designer(fred). designer(martha). developer(rebeka) developer(trish) developer(jack) /*lists are ordred from most preferred to least preferred */ prefers(john, [rebeka, jack, trish]). prefers(fred, [jack, rebeka, trish]). prefers(martha, [tr...

here 're my Xf86config-4 and the log files. everthing works totally fine before install the nvidia driver, and afterwards, xwin can't start. my video card is nvidia geforce4 mx 440se THANK YOU -- ��վ����һ��ɽͷ������ȥհ���㣻�ǳ����������ô���Ǽ�����������ô�������ӵ� ��ͬ��ô�� ���ѵ����أ�ƽ�������أ�ϣ�������ء� �Ҹ衣���������� �㻹���ţ������ţ� �ҵĸ���������������� "grape" <jian1zh@icqmail.com> wrote in message news:<yxD3b.92768$_V.28150@news04.bloor.is.net.cable.rogers.com>... > here 're my Xf86config-4 and the log files. > >... Printing problem (strange) Hi, A client is all of a sudden having a print problem at one of their computers. Here is what I know: 4 computers are networked. PC #4 is used simply as the print server. PC #1, #2, and #3 have our software loaded (Access2003). All 3 pcs use the printer connected to PC #4 to print documents. All four pcs are Windows XP, SP2. PC #1 and #2 work fine. PC #3 � Everything EXCEPT reports from our application print out just fine (i.e. Word/Excel/etc.) Any report generated from our application that contains a text box prints out as jibberish. Preview mode is fine. They export the ... Re: Mozilla form elements problem I think what you say is correct, and likely a bug. There is a similar bug that when you insert an element, it may appear in the correct place on the screen but it is always at the end of the array. http://bugzilla.mozilla.org/show_bug.cgi?id=204784 i.e. if you insertBefore the second item, it appears OK but it is the last item in the element[] array. IE seems to keep them in the correct order It's also a little weird that even when the parent is removed, the children hang around - this makes life really tough. <HTML> <BODY> <PRE> The following line should say '... Everypar problem Hallo! I reduced my problem to the example presented below. It shall simply format every paragraph in the document using a certain style. (Large font size was chosen as an example.) But compilation fails with "Missing number, treated as zero." in the line "\emph{Hay}\par". Any ideas? <code> \documentclass[11pt]{book} \def\readIt#1{ {\LARGE #1} } \begin{document} \everypar={\readIt} \emph{Hay}\par Bee \emph{Zee}\par \end{document} </code> Greets Stefan Teitge On Mon, 06 Aug 2007 17:21:11 +0200, Stefan Teitge wrote: > Hallo! > > I reduced my... problem with nan The exercise is to calculate the approximate area of a circle by the "calculus method." That is, finding the area of rectangles nearly filling the circle. I calculate the area of rectangles in 1/4 of the circle and multiply by 4 to get the total area. In the code below, if the value of nrect is used in the for loop, the value of area goes to "nan" in the last couple of iterations. When there are slightly fewer iterations than the value of nrect, the output is OK. This behaviour is the same for smaller values of nrect. I'm not sure I understand nan (I know it mea... strange problem when I access yahoo mail Hi, Sometimes when I access yahoo mail and hit reply/forward when reading an e-mail, it does not work. I think it works fine from another computer. What could be the problem? Thanks for your help. ... Inconsistency with IO.readlines I've noticed a slight inconsistancy with IO.readlines depending on the line ending. If the line ending is PC (\r\n) or Unix (\n) then it works fine no matter the platform. But if the line ending is Mac (\r), IO.readlines returns one line no matter how many lines it is supposed to be. Maybe this isn't such a big deal anymore since Mac OS X uses Unix line endings, but believe it or not I've got files coming in from Mac OS 9 users. Anyone else seen this? I'm using a build built from the last stable snapshot under Cygwin. -- Justin Rudd http://seagecko.org/thoughts/ Hmm, ... partial page loading problem I am working on a PHP project and having a partial page loading problem randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with database connection to oracle 10g. The problem happens randomly with partial or blank page loaded. Refresh will get a complete page in most of time. I checked the error log and seems there is no specific error message corresponding to this problem. Anybody has the similar experience? Any suggestion/advice is appreciated. ... loop (non intiger) problems for i = 0:0.01:L Y(i) = N*(((L*(i*i))/2)-((i*i*i)/6)) end basically the loop won't run as the Y value cannot be 0 or a non intiger, I know that, but I not sure how to run the loop with vales of say 0.002 etc. L here refers here to a pre calculated length value (in this case 0.45) and N is already been calculated thanks in advance cnt = 1; for i = 0:0.01:L Y(cnt) = N*(((L*(i*i))/2)-((i*i*i)/6)); cnt = cnt+1; end "Nicholas " <nickskely@hotmail.com> wrote in message news:gtc7d2$2m4$1@fred.mathworks.com... > for i = 0:0.01:L > ... Installation problem with active directory Hello, Problem installing DB2 on a Windows Server 2003 R2 WITH Active Directory Tried V8.2 WSE, V8.2 WSUE, V9.1 WSE Same error. Here is the content of db2wi.log =3D=3D=3D D=E9but de l'=E9criture dans le journal=A0: 09/07/2011 14:27:05 = =3D=3D=3D Action 14:27:05=A0: INSTALL. D=E9but de l'action 14:27:05=A0: INSTALL. Action 14:27:05=A0: AppSearch. Recherche des applications d=E9j=E0 install=E9es D=E9but de l'action 14:27:05=A0: AppSearch. AppSearch: Propri=E9t=E9=A0: Y2K_UPDATE2_98=A0; signature=A0: _Y2K_UPDATE2_= 98 AppSearch: Propri=E9t=E9=A0: MDACVERINSTAL... wxDllLoader problems hello. I am writing simple program that uses Dll library. in myframe.h i wrote: #include <wx/dynlib.h> and in program implementation wxDllType dllHandle= wxDllLoader::LoadLibrary(LIB_NAME); where LIB_NAME is static const wxChar *LIB_NAME= _T("MyDll.dll"); when I am compiling this code i get :wxDllLoader has not been declared it's strange because <wx/dynlib.h> was included... i use wxWidgets 2.5.4 and wxDevCpp 6.7 can somebody tell me what is wrong?? thanks for Your help. On Sat, 26 Mar 2005 14:49:48 +0100 verdi <piotr2579@o2.pl> ... problem cp how to make a function cp who would go like I read the name of the old file I it copis in a variable$variable I re-elect the new file and I copy it towards the old file while keeping the same name of the file john.swilting wrote: > how to make a function cp > who would go like > I read the name of the old file I it copis in a variable $variable I > re-elect the new file and I copy it towards the old file while keeping the > same name of the file en français je lis le nom de l'ancien fichier je le copis dans une variable$variable je renomme le nouveau fichier et je l...