Professional Web Applications Themes

Custom 4GL runner - Informix

Guys- I am trying to create a custom runner, so I can give our QA's a random sample of lots to test. I downloaded a c function (from IIUG) to generate a random number, but when I try to link it, ld errs out. Like this: cfglgo random.c -o myfglgo ld: Unsatisfied symbol "usrcfuncs" in file /usr/informix/lib/tools/libfglgo.a[fgitable.o] ld: Unsatisfied symbol "pushint" in file random.o ld: Unsatisfied symbol "popint" in file random.o 3 errors. If I read the manual correctly, it needs to include a library called fglrt.h. I tried adding it to the C code, but it errs out with ...

  1. #1

    Default Custom 4GL runner


    Guys-
    I am trying to create a custom runner, so I can give our QA's a
    random sample of lots to test. I downloaded a c function (from IIUG) to
    generate a random number, but when I try to link it, ld errs out. Like
    this:

    cfglgo random.c -o myfglgo
    ld: Unsatisfied symbol "usrcfuncs" in file
    /usr/informix/lib/tools/libfglgo.a[fgitable.o]
    ld: Unsatisfied symbol "pushint" in file random.o
    ld: Unsatisfied symbol "popint" in file random.o
    3 errors.

    If I read the manual correctly, it needs to include a library called
    fglrt.h. I tried adding it to the C code, but it errs out with this
    message:

    cpp: "random.c", line 7: error 4036: Can't open include file 'fglrt.h'.

    Where does it live? I went to $INFORMIXDIR (/usr/Informix) and ran find
    .. -name fglrt.h, but it came up empty.

    I don't know if it will help, but my LD_LIBRARY_PATH is this:
    /usr/informix/lib:/usr/informix/lib/esql:

    The platform is HP-UX 11.0 (64 bit), IDS 7.31.FD4, 4GL-RDS 7.31.FC1,
    esql 9.51.FC3 and the c compiler is gcc.

    Everett E. Mills
    Systems Administrator/Programmer
    National Beef Packing Co., LLC.
    P. O. Box 539
    Dodge City, KS 67801-0539

    Voice: (620)338-4288
    Fax: (620)338-4335
    E-Mail: [email]eemillsnationalbeef.com[/email]


    sending to informix-list
    Everett Mills Guest

  2. #2

    Default Re: Custom 4GL runner

    Everett Mills wrote:
    > Guys-
    > I am trying to create a custom runner, so I can give our QA's a
    > random sample of lots to test. I downloaded a c function (from IIUG) to
    > generate a random number, but when I try to link it, ld errs out. Like
    > this:
    >
    > cfglgo random.c -o myfglgo
    > ld: Unsatisfied symbol "usrcfuncs" in file
    > /usr/informix/lib/tools/libfglgo.a[fgitable.o]
    > ld: Unsatisfied symbol "pushint" in file random.o
    > ld: Unsatisfied symbol "popint" in file random.o
    > 3 errors.
    For usrcfuncs, you need to look at the code in
    $INFORMIXDIR/etc/fgiusr.c and either include it in random.c (if you
    are only ever going to need the one additional function - or a pair of
    them; one to set the seed and one to generate numbers), or copy the
    file locally and compile it as a separate object and include it in the
    link line. Either way, you need to extend it with the functions you
    add to the runner.

    For pushint and popint, you should include "fglsys.h" in the C code.
    Also, I would expect you to be using retint rather than pushint. You
    use pushint when you are putting values on the I4GL stack to be used
    by the next called I4GL function; you use retint when you are trying
    to return values to the calling function.
    > If I read the manual correctly, it needs to include a library called
    > fglrt.h. I tried adding it to the C code, but it errs out with this
    > message:
    No - fglrt.h is unlikely to the answer. It has a purpose, but not
    this one.
    > cpp: "random.c", line 7: error 4036: Can't open include file 'fglrt.h'.
    >
    > Where does it live? I went to $INFORMIXDIR (/usr/Informix) and ran find
    > . -name fglrt.h, but it came up empty.
    Not sure. Check in the files list ($INFORMIXDIR/etc/fgpfiles, I
    think) and see whether it is listed in there. If not, then presumably
    it comes with the c-code compiler and not the p-code compiler - a
    little odd.
    > I don't know if it will help, but my LD_LIBRARY_PATH is this:
    > /usr/informix/lib:/usr/informix/lib/esql:
    You might need to think about adding /usr/informix/lib/tools, and on
    HP-UX, you need to use LIBPATH rather than LD_LIBRARY_PATH, don't you?
    > The platform is HP-UX 11.0 (64 bit), IDS 7.31.FD4, 4GL-RDS 7.31.FC1,
    > esql 9.51.FC3 and the c compiler is gcc.
    Using gcc can be fun, too. You may need to do some cleanup work in
    your copy of cfglgo -- you did make a backup first, didn't you (and
    you've got the original media somewhere safe, too, haven't you?)


    --
    Jonathan Leffler #include <disclaimer.h>
    Email: [email]jlefflerearthlink.net[/email], [email]jlefflerus.ibm.com[/email]
    Guardian of DBD::Informix v2003.04 -- [url]http://dbi.perl.org/[/url]

    Jonathan Leffler Guest

Similar Threads

  1. Update Custom Collection that is bound to DataGrid made up of Custom COlumns
    By Terry Holland in forum ASP.NET Data Grid Control
    Replies: 9
    Last Post: October 28th, 06:20 AM
  2. How to assign a custom principal with a custom soap extension
    By Michael in forum ASP.NET Web Services
    Replies: 3
    Last Post: May 12th, 04:20 PM
  3. Keep custom property-value in custom rendered control
    By Rob Joosen in forum ASP.NET Building Controls
    Replies: 0
    Last Post: May 12th, 11:56 AM
  4. Replies: 1
    Last Post: March 1st, 02:01 PM
  5. Custom error message in custom Web publishing
    By Tim Booth in forum FileMaker
    Replies: 0
    Last Post: July 2nd, 05:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139