fgetln() seems to be *BSD-specific function, not available on Linux.
You can re-implement it easily using fgetc() or copy existing
implementation e.g.
http://www.koders.com/c/fid66062EDD2D0F4A1EA102F4C24CEBCCE33E830660.aspx?s=fgetln#L9

-- 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]
> 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

Reply via email to