[GE users] DRMAA library has undefined references

Rayson Ho rayrayson at gmail.com
Mon Sep 22 15:28:00 BST 2008


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

I think it is missing lib dl dependency. You can try adding -ldl after -ldrmaa.

Rayson



On 9/22/08, Atle Rudshaug <atle at numericalrocks.com> wrote:
> Hi!
>
> I'm trying to compile a small test application using DRMAA on Rocks Cluster
> 4 Linux with SGE 6.0u8. However I get the following error from the following
> command:
>
> $ gcc -I/opt/gridengine/include
> -L/opt/gridengine/lib/lx26-amd64 -ldrmaa drmaatest.c -o
> drmaatest
> /opt/gridengine/lib/lx26-amd64/libdrmaa.so: undefined
> reference to `dlclose'
> /opt/gridengine/lib/lx26-amd64/libdrmaa.so: undefined
> reference to `dlopen'
> /opt/gridengine/lib/lx26-amd64/libdrmaa.so: undefined
> reference to `dlsym'
> collect2: ld returned 1 exit status
>
> Code "drmaatest.c":
>
> #include <stdio.h>
> #include "drmaa.h"
>
> int main (int argc, char **argv) {
>  char error[DRMAA_ERROR_STRING_BUFFER];
>  if (drmaa_init (NULL, error, DRMAA_ERROR_STRING_BUFFER)
>     != DRMAA_ERRNO_SUCCESS) {
>   fprintf (stderr, "Could not initialize the DRMAA library: %s\n", error);
>   return 1;
>  }
>  fprintf (stdout, "Successfully started the DRMAA library\n");
>  if (drmaa_exit (error, DRMAA_ERROR_STRING_BUFFER)
>     != DRMAA_ERRNO_SUCCESS) {
>   fprintf (stderr, "Could not shut down the DRMAA library: %s\n", error);
>   return 1;
>  }
>  return 0;
> }
>
> Is there a bug or am I doing something wrong. It works on my local Condor
> installation.
>
> - Atle
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail:
> users-help at gridengine.sunsource.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list