Error Loading Sharable Executable
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up IDL CALL_EXTERNAL crashing when passing arguments to C++ up vote 1 down vote favorite I'm trying to run a c++ script from IDL using the CALL_EXTERNAL function. I've been able to get it to work without arguments, but when I try to add an arg, such as a single IDL LONG INT, IDL crashes. with the error: % CALL_EXTERNAL: Error loading sharable executable. Symbol: main, File = /home/inspired/workspace/TestCode/main. so /home/inspired/workspace/TestCode/main.so: wrong ELF class: ELFCLASS64 % Execution halted at: TEST_EXTERNAL 7 /home/inspired/IDLWorkspace/Analyze Data/test_external.pro % $MAIN$ The test code I'm using is as follows. The C++ code: #include von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen Sign in Pricing Blog Support Search GitHub This repository Watch 1 Star 2 Fork 2 segasai/pg_idl Code https://github.com/segasai/pg_idl/issues/2 Issues 1 Pull requests 1 Projects 0 Pulse Graphs New issue PGSQL_QUERY: Error loading sharable executable #2 Open knutago opened this Issue Mar 22, 2016 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants knutago commented Mar 22, 2016 I'm trying error loading to install pg_idl, and while the installation completes (albeit with warnings about variable types), running pgsql_query() generates the error: % PGSQL_QUERY: Error loading sharable executable. Symbol: IDL_Load, File = /Users/olsen/idllib/pgsql/pg_idl-mast er/pgsql_query.so dlopen(/Users/olsen/idllib/pgsql/pg_idl-master/pgsql_query.so, 1): image not found Seems pgsql_query.so should have been built by make, but wasn't. OBJFILES and SOFILES are defined in the error loading sharable Makefile, but as far as I can tell never used. Owner segasai commented Mar 23, 2016 But did it create the directory DLM? I've just tried it on linux (I am not a mac user, and don't have access to mac) with the most recent version of IDL and it did make the DLM directory with the .so and .dlm file: $ ls DLM pgsql_query.dlm pgsql_query.so Also the actual compilation of the pgsql_query library is done by IDL itself (last line of the Makefile). Did it actually run ? Here is what I am seeing when it runs echo "make_dll,['pgsql_query','pgsql_query_util'],'pgsql_query','IDL_Load',input_directory='./',extra_cflags='"-Ipostgresql-9.5.1/src/interfaces/libpq/ -Ipostgresql-9.5.1/src/include/"',extra_lflags='"postgresql-9.5.1/src/interfaces/libpq/libpq.a"',compile_directory='./',/show_all_output,output_directory='DLM'" | idl IDL Version 8.2.1 (linux x86_64 m64). (c) 2012, Exelis Visual Information Solutions, Inc. Installation number: . Licensed for use by: XXXXXXXXXX Running the .idl_startup script... % gcc -Ipostgresql-9.5.1/src/interfaces/libpq/ -Ipostgresql-9.5.1/src/include/ -fPIC -I"/opt/ioa/idl/idl82/external/include" -c -m64 -D_REENTRANT "/tmp/pg_idl/pgsql_query.c" -o "pgsql_query_2508_calx115.o" % gcc -Ipostgresql-9.5.1/src/interfaces/libpq/ -Ipostgresql-9.5.1/src/include/ -fPIC -I"/opt/ioa/idl/idl82/external/include" -c -m64 -D_REENTRANT "/tmp/pg_idl/pgsql_query_util.c" -o "pgsql_query_util_2508_calx115.o" % ld -r pgsql_query_2508_calx115.o -o partial_obj_2508