ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linux, datasocket, shared library, error 1143

Hi,

I have the following problem: I've built under linux a shared library using Application Builder of Labview 8.6, this shared library contains function using datasocket, and finally I've linked this library to a C++ program. Sometimes (let say 1 every 10) running my program I get errror 1143 every time I call functions of the library using datasocket, at this point killing my program and running again most of the times works but sometimes not. Am I missing some initialization? or  something wrong with datasocket, or compiler options?

 

I am using gcc 3.3 and if it could be useful this is what returns ldd on my program (libmylibrary.so is the shared library built with Application Builder):

$ ldd myprogram 

        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb75a2000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb758a000)
        libmylibrary.so => ./lib/libmylibrary.so (0xb7585000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7579000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7438000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb737e000)
        liblvrtdark.so.8.6 => /usr/local/lib/liblvrtdark.so.8.6 (0xb689d000)
        libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb6886000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb685f000)
        /lib/ld-linux.so.2 (0xb7f12000)

 

Thanks in advance,

Gonzalo 

 

0 Kudos
Message 1 of 5
(4,423 Views)

Hi Gonzalo,

have you installed NI Datasocket?

 

Regards,

 

Licia

0 Kudos
Message 2 of 5
(4,386 Views)

Yes, in fact, as I said, most of the times it works.

But some times it happens that just killing my program and relaunching it, without changing anything, gives error 1143.

 

Gonzalo 

0 Kudos
Message 3 of 5
(4,373 Views)

Maybe a problem of firewall?

Regards.

Licia

0 Kudos
Message 4 of 5
(4,366 Views)

I'm running everything locally and without firewalls.

Any ather suggestion?

 

Gonzalo 

0 Kudos
Message 5 of 5
(4,359 Views)