Unix Technical Forum

4GL and Linux

This is a discussion on 4GL and Linux within the Informix forums, part of the Database Server Software category; --> 4gl 7.31UC3 on SuSE Standard Server v8 (2.4.21-5-smp kernel) I get this error trying to compile the most basic ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:41 PM
Neil Truby
 
Posts: n/a
Default 4GL and Linux

4gl 7.31UC3 on SuSE Standard Server v8 (2.4.21-5-smp kernel)

I get this error trying to compile the most basic 4GL program. Any ideas?

informix@dell:/exports/andy> cat test.4gl
database test

informix@dell:/exports/andy> c4gl test.4gl
/opt/informix/5.20/lib/esql/libifos.so: the use of `mktemp' is dangerous,
better use `mkstemp'
/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:
cannot find -lcurses
collect2: ld returned 1 exit status

thanks
Neil


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:41 PM
Clive Eisen
 
Posts: n/a
Default Re: 4GL and Linux

Neil Truby wrote:
> > /usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:

> cannot find -lcurses
> collect2: ld returned 1 exit status
>

Install the curses libraries from the suse media?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 10:41 PM
Paul Watson
 
Posts: n/a
Default Re: 4GL and Linux

You don't have libcurses installed, should on the media


Neil Truby wrote:
>
> 4gl 7.31UC3 on SuSE Standard Server v8 (2.4.21-5-smp kernel)
>
> I get this error trying to compile the most basic 4GL program. Any ideas?
>
> informix@dell:/exports/andy> cat test.4gl
> database test
>
> informix@dell:/exports/andy> c4gl test.4gl
> /opt/informix/5.20/lib/esql/libifos.so: the use of `mktemp' is dangerous,
> better use `mkstemp'
> /usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:
> cannot find -lcurses
> collect2: ld returned 1 exit status
>
> thanks
> Neil


--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 10:41 PM
Five Cats
 
Posts: n/a
Default Re: 4GL and Linux

In message <40C5D40E.CD3058B1@oninit.com>, Paul Watson <paul@oninit.com>
writes
>You don't have libcurses installed, should on the media
>

<snip>

There is an O'Reilly book entitled 'Programming with Curses'. It always
seems strange to me that anyone actually needed to write a book on this.
Dr*t. D*mn. etc.... At least it has a nice feisty animal on the front
- a warthog.



--
Five Cats
Email to: cats_spam at uk2 dot net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 10:41 PM
Neil Truby
 
Posts: n/a
Default Re: 4GL and Linux

"Paul Watson" <paul@oninit.com> wrote in message
news:40C5D40E.CD3058B1@oninit.com...
> You don't have libcurses installed, should on the media


I've got packages called ncurses and ncurses-devel installed - are these
different?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 10:41 PM
Paul Watson
 
Posts: n/a
Default Re: 4GL and Linux

I assume so, 'cos the last Suse problem I say said install ncurses,
I had curses on the box

Neil Truby wrote:
>
> "Paul Watson" <paul@oninit.com> wrote in message
> news:40C5D40E.CD3058B1@oninit.com...
> > You don't have libcurses installed, should on the media

>
> I've got packages called ncurses and ncurses-devel installed - are these
> different?


--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-19-2008, 10:41 PM
Andrew Hamm
 
Posts: n/a
Default Re: 4GL and Linux

Neil Truby wrote:
> "Paul Watson" <paul@oninit.com> wrote in message
> news:40C5D40E.CD3058B1@oninit.com...
>> You don't have libcurses installed, should on the media

>
> I've got packages called ncurses and ncurses-devel installed - are
> these different?


ncurses is "new curses" - just a nother rewrite.

ncurses-devel has extra crap that you need to actually build C code, whereas
ncurses merely contains the library objects which can be linked into
something like, say,,,,, a runner build. Count on ncurses-devel adding
include files, source code, and Codd forbid, perhaps even some useful tools.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-19-2008, 10:41 PM
Neil Truby
 
Posts: n/a
Default Re: 4GL and Linux


"Clive Eisen" <clive@serendipita.com> wrote in message
news:40c5cd01$0$4579$db0fefd9@news.zen.co.uk...
> Neil Truby wrote:
> > >

/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:
> > cannot find -lcurses
> > collect2: ld returned 1 exit status
> >

> Install the curses libraries from the suse media?


I don't think this is the problem, because if I change the c4gl script to
use -lncurses instead of -lcurses it returns the same message (except it
says cannot ind -lncusrses of course).
So there's something more fundamental wrong I think.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-19-2008, 10:42 PM
Andreas Breitfeld
 
Posts: n/a
Default Re: 4GL and Linux

Neil Truby wrote:

> 4gl 7.31UC3 on SuSE Standard Server v8 (2.4.21-5-smp kernel)
>
> I get this error trying to compile the most basic 4GL program. Any ideas?
>
> informix@dell:/exports/andy> cat test.4gl
> database test
>
> informix@dell:/exports/andy> c4gl test.4gl
> /opt/informix/5.20/lib/esql/libifos.so: the use of `mktemp' is dangerous,
> better use `mkstemp'
> /usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:
> cannot find -lcurses
> collect2: ld returned 1 exit status

This is a known bug and fixed in 7.32.UC2. There are 2 workarounds:
1. create a symbolic link libcurses.so -> libncurses.so
2. change -lcurses to -lncurses in the c4gl script

Andreas

>
> thanks
> Neil


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-19-2008, 10:42 PM
Neil Truby
 
Posts: n/a
Default Re: 4GL and Linux

Thanks for your reply.
Neither of the workarounds, both of which I've already tried (even though
they effectively do the same thing!) works.
Which makes me think I have something else wrong somewhere. On both systems
:-(

cheers
Neil

"Andreas Breitfeld" <abreitfe@de.ibm.com> wrote in message
news:ca6e8k$1cti$1@gazette.almaden.ibm.com...
> Neil Truby wrote:
>
> > 4gl 7.31UC3 on SuSE Standard Server v8 (2.4.21-5-smp kernel)
> >
> > I get this error trying to compile the most basic 4GL program. Any

ideas?
> >
> > informix@dell:/exports/andy> cat test.4gl
> > database test
> >
> > informix@dell:/exports/andy> c4gl test.4gl
> > /opt/informix/5.20/lib/esql/libifos.so: the use of `mktemp' is

dangerous,
> > better use `mkstemp'
> >

/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:
> > cannot find -lcurses
> > collect2: ld returned 1 exit status

> This is a known bug and fixed in 7.32.UC2. There are 2 workarounds:
> 1. create a symbolic link libcurses.so -> libncurses.so
> 2. change -lcurses to -lncurses in the c4gl script
>
> Andreas
>
> >
> > thanks
> > Neil

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com