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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 # |
| |||
| 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 |
| |||
| 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 # |
| |||
| 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. |
| |||
| "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. |
| |||
| 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 |
| ||||
| 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 > |