Cannot execute functions from dbx

I tried calling these functions from dbx but nothing seems to work.
print strlen("hello");
dbx: can't find a system call entry point -- program not linked with libc?
loadobject shows that libc.so is mapped.
(dbx) loadobject -list | grep libc
m /lib/libc.so.1
any particular reason?

uname -a
SunOS whitestar2-0 5.11 i86pc i386 i86pc snv_66 X86
dbx -V
Sun Dbx Debugger 7.1 Patch 112759-02 2003/11/11
Infact I am not able to call functions in my own library also. I get the same error. Those functions are definitely not overloaded. They are unique and are in my library.
Thanks for looking at this. Appreciate your help
Message was edited by:
slashgmg
Message was edited by:
slashgmg

Similar Messages

  • How to invoke math functions from dbx?

    Is there an easy way to invoke math functions from dbx? If I try, for example, to call sqrt I get meaningless results:
    (dbx) print sqrt(4.0)
    sqrt(4) = 1074790400
    (dbx)
    This is from code which uses sqrt, so sqrt should be accessible. Does this need some kind of cast?

    It turns out that this is a bit different than it looks: dbx is indeed able to invoke functions invoked in this way correctly; dbx just fails to print a sensible return value.
    I tried with the following small function:
    #include <stdio.h>
    int printme(double x) {
    printf("This is %g\n",x);
    return (int)2*x;
    Compiling this without -g, linking this with some hello world program and invoking the function from dbx gives
    (dbx) print ((int (*)(double))printme)(4.0)
    This is 4
    ((int (*)(double)) printme)(4) = &(noname)(double) at 0x8
    (dbx)
    The line "This is 4" clearly indicates that the function has been invoked correctly. Just the printed return value is meaningless. In this case, it is even possible to construct expressions with the return value:
    (dbx) print 5 + ((int (*)(double))printme)(4.0)
    This is 4
    5+((int (*)(double)) printme)(4) = 13
    i.e. dbx "knows" the correct return value 8. This does, however, apparently not work with return values of type double (i.e. in the original sqrt-Example).
    I have therefore submitted a bug report with bugs.sun.com; I will post the BugID when (and if) this has been accepted.

  • Powershell error while importing module and executing function from module

    powershell error while importing module and executing function from module
    Function called in uncertain order..
    VERBOSE: The 'Function1' command in the MyModule module was imported, but because its name does not include an approved verb, it might be difficult to find. The
    suggested alternative verbs are "Clear, Install, Publish, Unlock".
    VERBOSE: Importing function 'Function1'.
    VERBOSE: The 'Function2' command in the MyModule' module was imported, but because its name does not include an approved verb, it might be difficult to fin
    d. For a list of approved verbs, type Get-Verb.
    VERBOSE: Importing function 'Function2'.

    First of all those errors look more related to HBR, though if it worked before I would restart services then log into the planning app and then try again.
    Have you tried a different form as well one without an ampersand &.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Execute function from custom table value ?

    Hi,
    I have custom table with following field
    FUNNAME        CHAR    1000
    That contains records like the following
    CALL FUNCTION 'ZMATF' EXPORTING MATNR = P_MATNR IMPORTING MATDESCRIPTION = V_MATERIALDESC.
    CALL FUNCTION 'Y_CHECK_EXIT' EXPORTING USEREXIT = 'EFNDTAXWAR' IMPORTING EXECUTE  =  EXECUTE TABLES I_ZA01   =  I_ZA01.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.
    CALL FUNCTION 'RS_TABLE_LIST_CREATE' EXPORTING TABLE_NAME = TABNAME.
    My requirement is according some of the user conditions i need to select entry from this table and execute the corresponding function module
    Any info highly appreciated.
    aRs

    Hi,
    I believe it should not be a problem...
    As the subroutine is not physically created in the program..
    Also check this link for a sample program..
    http://help.sap.com/saphelp_46c/helpdata/EN/9f/db999535c111d1829f0000e829fbfe/frameset.htm
    Thanks,
    Naren

  • Cannot Execute Scripts from UNC Despite GPOs Allowing Me To Do So

    Hello! 
    I'm having an issue getting scripts to execute from a UNC share.
    I have followed in instructions in the below two blog postings:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/29/how-to-run-powershell-scripts-from-a-shared-directory.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/08/10/weekend-scripter-run-powershell-scripts-from-remote-file-share-part-2.aspx
    I have also used Group Policy to set the execution policy to Unrestricted for the MachinePolicy and UserPolicy scopes:
    PS C:\> Get-ExecutionPolicy -List | Ft -AutoSize
            Scope ExecutionPolicy
    MachinePolicy    Unrestricted
       UserPolicy    Unrestricted
          Process       Undefined
      CurrentUser       Undefined
     LocalMachine    RemoteSigned
    Unfortunately, I am still getting the following prompt when executing a script from a remote share:
    \\Server1\Share\Install-Something.ps1 -Parameter1 Value1 -Parameter2 Value2
    Security warning
    Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
    computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
    message. Do you want to run
    \\tlehmann.vcs.coaxis.net\Source\QA_Automation\QA_Repository\Scripts\Installation\AutoBuildv2\Install-AutoBuild.ps1?
    [D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"): r
    I have executed GPRESULT and it states the GPOs are being applied successfully.
    Why am I still getting this prompt? Please help before I go crazy.

    AS IS ALWAYS THE CASE, ONCE I ASK FOR HELP I FIND AN ANSWER ON MY OWN.
    <FrustratedSquabbling>fhj19387ruasd;lkfj rlkghkushdvas907faihsc</FrustratedSquabbling>
    When I entered the UNC path, I was entering an FQDN and not a NETBios name (e.g. \\Server1.domain.com\Share\Script1.ps1 vs \\Server\Share\Script1.ps1)
    Can someone help me understand WHY the FQDN did this to me?
    PowerShell Extraordinaire - The Toddle

  • Why is my deployed application not executing functions from an external .dll?

    My application executes python scripts via function calls made to the python C/API, python24.dll.  It works fine in the development environment, but my deployed application does not seem to find the .dll since the the application crashes at what seems to be the first attempt to access the python shared library.
    I believe I've included all the necessary support files.  LV automatically included python24.dll into the installer.  And I've tried to make all the paths to script files and other support files point to where the app.exe is located...some debugging windows have shown the paths to be correct in the deployed app.  The call library function nodes are configured to find the python .dll in the win\system32 folder.
    I feel like I'm missing some step in the build process since it works in the development environment, but perhaps there is some other trick using CLFN's that I don't understand.
    I using LV7.
    Thanks.

    Hello CraigerB,
    It seems like you are doing everything the right way. Click on the following link for a related discussion forum post.
    Here is what you can try:
    1. Place the dll in the C:\WINDOWS\system32 on your development machine.
    2. Make sure your Call Library Function Node VI is pointing to C:\WINDOWS\system32\python24.dll
    3. Build your executable
    4. LabVIEW will not make a copy of your python24.dll because it will treat it differently
    5. Manually copy the python24.dll to the target PC's C:\WINDOWS\system32\
    6. Make sure you have all supporting files for your python24.dll to insure the dll itself is working.
    7. If you are using relative paths to call your dll, switch to hard paths, or take a look at this KB for relevent information.
    Hope this helps!
    Kalin T.
    National Instruments

  • JBO,EJB: Cannot execute AM from another user.

    Hi,
    I have standalone DACF application with Application Modules deployed
    as session EJB to O8i.
    My environment is: JDev 3.2.2 (915) and O9I AS version 1.0.2 for NT.
    Deployment was done with jdbc-connect as the Application Owner,
    suppose AAA.
    Deployment was done from JDeveloper, so loadjava was running with
    -grant "PUBLIC".
    When I start the application and connect as AAA, everything works fine.
    Next, I've created new user BBB, granted him all java-required permissions
    like I did for AAA.
    From JDev, I can open iiop-connection with BBB-user and see all loaded
    AMs - so they are accessible for BBB.
    Thinking that all loaded classes are "PUBLIC"ly available, I start the
    application and try to connect as BBB-user.
    I get JBO-25222 'Unable to create application module'.
    Trace on Application Server applied.
    Then, I deploy all Business Components (and BC4J Runtime) under jdbc-
    connection as BBB.
    Now application works ok for BBB-connect as well.
    (but each deployment takes about 60 minutes - for 22 AMs - and 5M in
    SYSTEM tablespace)
    Is it possible to avoid such extra BC-deployment for every new user ?
    I thought that loadjava with -grant "PUBLIC" allows to execute loaded
    classes for every user, is it so ?
    What's wrong in my thinking ?
    Thanks,
    Arkadi
    shared_pool_size=50M
    java_pool_size=70M
    java_soft_sessionspace_limit=10M
    Dump file D:\Oracle\admin\O9IAS\udump\o9iasS000.TRC
    Tue Jun 12 11:50:44 2001
    ORACLE V8.1.7.0.0 - Production vsnsta=0
    vsnsql=e vsnxtr=3
    Windows NT Version 4.0 Service Pack 4, CPU type 586
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Windows NT Version 4.0 Service Pack 4, CPU type 586
    Instance name: o9ias
    Redo thread mounted by this instance: 1
    Oracle process number: 12
    Windows thread id: 148, image: ORACLE.EXE
    *** 2001-06-12 11:50:44.349
    *** SESSION ID:(12.1553) 2001-06-12 11:50:44.239
    org.omg.CORBA.MARSHAL: serialized object is corrupted minor code: 0 completed: No
    at com.visigenic.vbroker.orb.CaffeineInputStream.read_estruct(CaffeineInputStream.java)
    at a05_bc.common.ejb._A0HomeImplBase._execute(_A0HomeImplBase.java:122)
    at a05_bc.common.ejb._A0HomeImplBase._execute(_A0HomeImplBase.java:81)
    at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
    at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
    at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
    at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
    at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
    at oracle.aurora.server.GiopServer._service(GiopServer.java)
    at oracle.aurora.server.GiopServer.service(GiopServer.java)
    at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
    at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
    null

    Does anybody know about successful implementation of deploying ApplicationModule as EJB by one user and executing this AM by another user (IIOP client) ?
    If so, would you please to guide me with deployment details ?
    Thanks
    null

  • Executing functions from a package file

    I have a package setup, and one of the files in the package is commands.java. I've compiled this file successfully. Inside of it I have function that returns a value. Is there a way to call this fuction from a different file that includes this package? I've tried and I can't seem to get it to work.

    Revised main class
    import java.io.*;
    import includes.*;
    class test
    public static void main(String args[]);
        commands commandsObject = new commands(); 
        commandsObject.dothis();
    }You really might want to go through the online tutorials available on this site starting with http://java.sun.com/docs/books/tutorial/java/concepts/index.html
    And it's good to follow some basic conventions as well. Class names should start with CAPITAL letters. ie. Commands and Test

  • Possibility to execute Acrobat Pro's "Combine files into PDF" function from within SAP?

    Good day.
    Presently, a company uses Acrobat Pro to manually combine files such as *.pdf, *.jpg, *.doc, which have been downloaded from SAP's Document Management System, into one pdf file. I would like to know if it is possible to automatically execute Acrobat Pro's "Combine files into PDF" function from within SAP (ECC 6.0) application system. I'm wondering if this could be achieved from a program via OLE (Object Linking and Embedding) or RFC (remote function call).
    Thanks in advance for your thoughts and inputs.

    Yes, you can combine PDF files via IAC/COM methods.

  • How can i execute a SAP function from destop in froeground mode?(JCO)

    Hi Experts,
    I faced a problme during my work.
    i need a programme log on a SAP system and then execute a function from my windows desktop. however i need this function to be executed in front end because there are someting need to be poped up.
    i am using Jco but it seems it only support executing a RFM in background mode?
    how can I do?
    Many thanks!!
    Useful answers will be awarded!
    Cliff

    Hi Apurva,
    thanks for your reply.
    the situation is like that. my function is to call catt/ecatt which need sapgui popup sometimes..
    i test the fuction inside R3 system which works fine however when i use JCO to call it from desktop error shows..
    log infomation is useful however in this situation popup sapgui is very important.
    the idea way is JCO call SAPGUI in destop and execute my fuction automatically:)
    Many thanks for your replies!
    Cliff

  • How can i execute a SAP function from destop in froeground mode?

    Hi Experts,
    I faced a problme during my work.
    i need a programme log on a SAP system and then execute a function from my windows desktop. however i need this function to be executed in front end because there are someting need to be poped up.
    i am using Jco but it seems it only support executing a RFM in background mode?
    how can I do?
    Many thanks!!
    Useful answers will be awarded!
    Cliff

    Does any one can help?

  • How to execute a packaged function from within DML

    Hi
    can someone explain in how many ways can we execute a packaged function from within a DML statement.
    examples will help.
    Thanks

    Hi,
    There's no difference between using functions in DML and using functions in any other SQL statement. Almost any place where a literal is allowed, you can have any kind of expression, including a an expression involving one or more functions.
    For example, in
    UPDATE  table_x
    SET     column_a = 0
    WHERE   column_b > SYSDATE;You could use functions instead of 0, column_b, or SYSDATE. (Actually, SYSDATE is a function.) You can not use functions instead of table_x or column_a (since it is to the left of the "=" sign).

  • Execute a stored function from command line

    Hello,
    I have a db stored function and I need to execute it from command line. I've tried by this way:
    (I need to connect with sys credentials)
    sqlplus sys/mypwd@mydb AS SYSDBA @myfile.sql
    and myfile.sql is:
    exec myschema.sf_test;
    but I get this error:
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00221: 'sf_test' is not a procedure or is undefined
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    You can use exec command for the execution of a procedure with out bind variable, but for a function always use bind variable.
    Function should return a value, so you must have to assign the function return value to a variable.
    like given below(or simply query the function using select statement)
    Method 1
    ======
    variable v1 number;
    exec :v1 := t_func;
    Method 2
    ======
    declare
    x1 NUMBER;
    begin
    x1 := t_func;
    end;
    SQL> create function t_func return number
    2 as
    3 begin
    4 return 0;
    5 end;
    6 /
    Function created.
    SQL> exec t_func;
    BEGIN t_func; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00221: 'T_FUNC' is not a procedure or is undefined
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Method 3
    ======
    SQL> select t_func from dual;
    T_FUNC
    0
    Regards
    JJ

  • After accepting a meeting invitation through an email attachment, I cannot delete it from my calendar.  There is no edit function

    After accepting meeting invitations I cannot delete them from calendar. Edit function does not appear.

    settings - icloud - calendar - ON

  • Cannot call CS SDK function from javascript

    Hi!
    I'm trying it in Illustrator. I'm trying to call the actionscript code from ExtendScript.
    I read this two articles: http://forums.adobe.com/thread/634947?tstart=0 and http://cookbooks.adobe.com/post_Communicating_between_JavaScript_and_the_CS_SDK_us-17383.h tml
    They all propose the same technique, like var jsxInterface:HostObject = HostObject.getRoot( HostObject.extensions[ 0 ] )
    I'm using the external script (not an embedded one) I added my script to manifest file:
    <ScriptPath>./script.jsx</ScriptPath>
    And then trying to call jsxInterface.init( this ) which is defined in my jsx file. But with no luck. I just got an exception.
    It seems like  jsxInterface.init is not defined after all (of course, I defined it in .jsx file)
    Is there a way to call a CS SDK function from external ExtendScript script in Illustrator? Or a way to pass "this" object
    to javascript for a later access?
    Thank you!

    Hi Anastasiy,
    Weird!
    It looks like it does not work during a creationComplete event.
    If you change your code to intitialize in a function, and call that function outside the creationComplete event, it works fine. Like so:
    ExtendScript:
    function initializeJSX(){
      try
        alert('SUCCESS! foregroundColor object = '+app.foregroundColor);  } catch(e)
        alert('ERROR: '+e.description);
    MXML:
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSXSWindowedApplication
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:csxs="com.adobe.csxs.core.*"
        layout="absolute" historyManagementEnabled="false"
        creationComplete="initApplication(event)">
        <mx:Script>
            <![CDATA[
                [  Embed (source=  "../assets/test.jsx" , mimeType=  "application/octet-stream" )]
                private static var _testJSX:Class;
                [Bindable]
                private var hostName:String = HostObject.mainExtension;
                private var jsxManager: HostObject;
                private function initApplication( e: Event ):void
                    jsxManager = HostObject.getRoot(HostObject['extensions'][0]);
                    jsxManager.eval( new _testJSX().toString() );
            ]]>
        </mx:Script>
        <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
            <mx:Button label="Run PS code" click="jsxManager.initializeJSX()" enabled="{hostName.indexOf('photoshop') > -1}"/>
        </mx:VBox>
    </csxs:CSXSWindowedApplication>
    I presume you can get what you what by calling the function via a timer or some other event...
    Harbs

Maybe you are looking for