Rocket U2 | UniVerse & UniData

 View Only

Getting started with GCI in UV 11.3.3 (RHEL7)

  • 1.  Getting started with GCI in UV 11.3.3 (RHEL7)

    PARTNER
    Posted 12-21-2021 01:18
    I am looking at getting started with creating custom GCI functions on  UV 11.3.3 (RHEL7 installations).
    I know nothing about c programming or compiling so am looking for feedback on how to get started (specifically with GCI - I figure I can pick up the c stuff as I go).

    Has anyone worked through getting the example GCI functions  built and integrated with UV?

    I have already learned that I needed to install the glibc-devel package in order for the compiler to be happy it has all the includes.

    Now I am stuck with the following:

    root@h1133# pwd
    /usr/uv/gcidir
    root@h1133# make -f Make.gci gci_hello
    gcc -Iinclude -m64 -DU2_64_BUILD -fPIC -m64 -DU2_64_BUILD -DTHREADS -DFASTIO -DUSE_STDARG -DU_LINUX -DU2_LINUX -D_GNU_SOURCE -fPIC -Wimplicit-function-declaration -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNETwork=2 -DRAID -DUNIVERSEon -DU2SVNURL="/uvuddb-uv113/release/11.3.3@d15ee91-20210525" -lm -lcrypt -m64 gci_hello.c -o gci_hello
    /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
    (.text+0x20): undefined reference to `main'
    collect2: error: ld returned 1 exit status
    make: *** [gci_hello] Error 1
    root@h1133#


    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------