Thanks everyone for the feedback.
I'm happy to implement the function my purposes initially - I'll share it if I
can work out how to integrate it into the configuration (I'm still on a steep
learning curve with the unix toolset fo building projects, which has always
seemed unnecessarily arcane to me).
Regards,
Rob
----- Original Message ----
From: Ian Piumarta <[EMAIL PROTECTED]>
To: Fundamentals of New Computing <[email protected]>
Sent: Saturday, 28 June, 2008 6:28:47 AM
Subject: Re: [fonc] FONC on Ubuntu
On Jun 27, 2008, at 8:05 PM, Krzysztof Kowalczyk wrote:
> fgetln() seems to be *BSD-specific function, not available on Linux.
Sorry, my mistake. I thought I'd seen it in Linux man pages.
> You can re-implement it easily using fgetc() or copy existing
> implementation e.g.
> http://www.koders.com/c/
> fid66062EDD2D0F4A1EA102F4C24CEBCCE33E830660.aspx?s=fgetln#L9
I don't see how that one would be any better, since getline() is
specific to GNU libc. There is already a replacement fgetln for
win32 that only assumes fgetc, so I just renamed it and enabled its
use everywhere to remove dependencies on fgetln. HTH.
This whole thing would be moot if built-in command-line editing
wasn't so useful. Yoshiki recently pointed me to rlwrap which would
certainly simplify the situation, at least for systems that support
it. Does anyone have experience with and/or strong opinions about
rlwrap?
Cheers,
Ian
>
> -- kjk
>
> On Fri, Jun 27, 2008 at 7:10 PM, Rob Grainger
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm trying to get FONC working on a Ubuntu distro (8.04) on a VM.
>>
>> I've got a long way through the build (many of the posts here have
>> helped),
>> but it's failing with the following messages eventually (stage 2):
>>
>>
>> ./idc -g -g -k -I../objects main.st readline.o jolt.a -L/usr/local/
>> lib
>> -lreadline -o main
>> jolt.a(debug.o): In function `freedlineLoadHistory':
>> /home/user/trunk/function/objects/freedline.c:573: undefined
>> reference to
>> `fgetln'
>> collect2: ld returned 1 exit status
>>
>> (I must apologise, I'm a relative newcomer to Linux generally, so
>> may have
>> missed something obvious).
>>
>> Any suggestions?
>>
>> Thanks,
>>
>> Rob Grainger
>>
>> ----- Original Message ----
>> From: Michael Haupt <[EMAIL PROTECTED]>
>> To: Fundamentals of New Computing <[email protected]>
>> Sent: Sunday, 22 June, 2008 1:58:53 PM
>> Subject: Re: [fonc] 64-bit? was: fonc on ubuntu.
>>
>> Hi Ian,
>>
>> Am 21.06.2008 um 20:17 schrieb Ian Piumarta:
>>> Hmm, Mac OS has a /usr/lib/readline that doesn't provide the above
>>> function. (It looks like a wrapper around the BSD editline
>>> library.) I removed the call to the above and replaced it with a
>>> home-made almost-equivalent. (I'll remove the 'almost-' later.)
>>> Hope this helps.
>>
>> it does, thank you.
>>
>> So now I can report that "make spotless && make" works fine on
>> Leopard
>> for revision 469. :-)
>>
>> Best,
>>
>> Michael
>>
>> --
>> Dr.-Ing. Michael Haupt [EMAIL PROTECTED]
>> potsdam.de
>> Software Architecture Group Phone: ++49 (0) 331-5509-542
>> Hasso Plattner Institute for Fax: ++49 (0) 331-5509-229
>> Software Systems Engineering http://www.swa.hpi.uni-
>> potsdam.de/
>> Prof.-Dr.-Helmert-Str. 2-3, D-14482 Potsdam, Germany
>>
>> Hasso-Plattner-Institut für Softwaresystemtechnik GmbH, Potsdam
>> Amtsgericht Potsdam, HRB 12184
>> Geschäftsführung: Prof. Dr. Christoph Meinel
>>
>>
>>
>>
>>
>> ________________________________
>> Not happy with your email address?
>> Get the one you really want - millions of new email addresses
>> available now
>> at Yahoo!
>> _______________________________________________
>> fonc mailing list
>> [email protected]
>> http://vpri.org/mailman/listinfo/fonc
>>
>>
>
> _______________________________________________
> fonc mailing list
> [email protected]
> http://vpri.org/mailman/listinfo/fonc
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at
Yahoo! http://uk.docs.yahoo.com/ymail/new.html_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc