Error on extern "C" pointer argument

Hi,
I am seeing the following formal argument error, which I assume to be a compiler bug:
In gmp.h there is following declaration:
extern "C"
void mp_get_memory_functions __GMP_PROTO ((void *(**) (size_t),
void *(**) (void *, size_t, size_t),
void (**) (void *, size_t)));
In gmpxx.h there is following usage:
struct __gmp_alloc_cstring
char *str;
__gmp_alloc_cstring(char *s) { str = s; }
~__gmp_alloc_cstring()
void (*freefunc) (void *, size_t);
mp_get_memory_functions (NULL, NULL, &freefunc);
(*freefunc) (str, std::strlen(str)+1);
This causes following error message:
"/usr/include/gmpxx.h", line 1301: Error: Formal argument 3 of type extern "C" void(*)(void*,unsigned)* in call to __gmp_get_memory_functions(extern "C" void*(*)(unsigned)*, extern "C" void*(*)(void*,unsigned,unsigned)*, extern "C" void(*)(void*,unsigned)*) is being passed void(*)(void*,unsigned)*.
As it is impossible to define freefunc as 'extern "C" void (*freefunc)(void *, size_t)', because it is rejected as local symbols may not have file linkage, I assume this might be a compiler bug...
What do you guys think?
- Thomas

That's libgmp version 4.2.2, which is included in Nexenta-3.0rc2.
OpenCSW also only has 4.2.2.
Installing 5.0.1 seems to fix the issue.
Thanks,
Thomas

Similar Messages

  • Error:Out-of-bou​nds pointer argument CVI12.0 Cannot access data member of a nested structure

    Hi,
    I'm getting an error "FATAL RUN-TIME ERROR:   Out-of-bounds pointer argument (before start of memory block)" while trying to access a data element from a nested structure (structure with in a structure) in a dll file in debug as well as release mode.
    I'm using CVI 12.0, and i came across some messages in the forum stating that similar erros was there for CVI 8.0, 8.5 & 9.0 but not 8.1. posted message
    A previous  Message posted some time back  clearly explains the issue for CVI 9.0, but i don't know whether the isuue still persists for CVI12.0 too.
    Will be helpful  if somebody can throw some light regarding the above mentioned issue;
    Thanks.

    Dosth wrote:
    i don't know whether the isuue still persists for CVI12.0 too.
    As you can see here this issue has been fixed in CVI 9.0.1

  • ERROR: -1639 INVALID COMMAND LINE ARGUMENT

    Trying to install software for Shuffle that Santa brought and get this error messsage...
    "Error: -1639 invalid command line argument. Consult the windows Installer SDK for detailed command line help."
    Install stops at this point.
    SOMEONE HELP... My kid is chomping at the bit !
    Thanks.

    Ok I'll do some more searching but I found something in the community forums.
    APPSearch can not return this data into a property, so instead, for some unspeakable reason, returns a value of Null, follwed by another Null. This means that the property is created, and populated with two null characters. Bad news if the property also happens to be a PUBLIC property. All public properties are passed as part of the command line sent in a stream to the background installer process by the Execute Action. Since this stream now contains a double null value in a property, the stream is prematurely terminated. This creates an invalid command line, and thus the 1639 error.
    This user solved it by using the MSi Cleanup installer util.
    EDIT: A little more info...
    This problem is almost impossible to detect through the MSI log files since our friends at Microsoft chose to limit the length of any line in the log. It is impossible to get a dump of the full command line that generates this error.
    EDIT2:Note that error 1639 only ocurrs when the install package is run from removable media. When the package is run from local storage, the behavior is far more obtuse. The background install process, failing to receive a complete command line, is forced to run as if there had been no UI session, which in turn causes the APPSearch action to run again as if the install was running in silent mode. This causes re-evaluation of all properties a second time, destroying the feature selections made in the UI session, and also forcing the install to run under user credentials instead of elevated, even though AdminUser, ALLUSERS and Privleged properties are set. This is a very serious error that causes total failure of the installation.

  • What is External Break points?

    Hello,
    What are external Break points...?
    My issue : I need to check a condition in the Source code...
    What do I need to do to get control at that condition directly to check whether the data is passing in those tables or not?
    Any suggestions would be appreciated...
    Regards,
    Krishna Chaitanya

    Hi,
    Breakpoints
    Setting and editing breakpoints, too, in the new Debugger is almost identical to the classic Debugger. However, several breakpoints can be set simultaneously in the new Debugger if you choose the path Breakpoint ® Create Breakpoint. Afterwards, the system displays a window in which the following options are available.
    Here it is obvious that, in contrast to the classic Debugger, all the input fields u2013 with the exception of those in the ABAP command tab u2013 have a search help function (function key F4). For example, under the Method tab you enter a certain class. Then, in the search help, all the methods that belong to this class are proposed.
    There are also certain differences when setting and deleting breakpoints. A double-click within a source code line creates a breakpoint in this line in both Debugger types, provided the cursor was not positioned on an ABAP keyword. A second double-click in the same line deletes this breakpoint in the classic Debugger, while it is only deactivated in the new Debugger.
    Breakpoint Types
    When you set a breakpoint in the Debugger, it is created as a debugger breakpoint by default. A debugger breakpoint is only valid while the Debugger instance, in which it was set, is active. When the Debugger is closed, all debugger breakpoints set in it are deleted.
    If you set a breakpoint in the ABAP Editor, for example, this breakpoint is a session breakpoint. Session breakpoints remain active independently of the existence of a Debugger and are valid for all external sessions of a logon. Within the Debugger, you can convert a debugger breakpoint into a session breakpoint and vice versa.
    If the setting Session Breakpoints Active Immediately is checked (via Utilities ® Settings ® ABAP Editor ® Debugging in the ABAP Editor or Object Navigator), you can set a session breakpoint in an external session of a logon to force a running program into the Debugger that runs in the same logon (for example, in an external session) and will process the point at which the session breakpoint was set.
    User breakpoints (previously known as external breakpoints) are valid for all user logons on the current server of the current system. User breakpoints are specifically required when debugging BSP or Web Dynpro applications. In these cases, you do not log on using the SAP GUI but via a browser, for example. Therefore, any breakpoints must be set before logging on.
    User breakpoints are only valid for a period of 2 hours.
    As of Release 7.00, user breakpoints set for BSP or Web Dynpro applications are also valid for SAP GUI logons.
    Within the Debugger, you can convert debugger or session breakpoints into user breakpoints and vice versa.
    External Debugging
    Use
    You can use debugging in order to carry out detailed troubleshooting. With the debugger, you check a given section of code in the Request Handler or an ABAP function module for errors.
    Basically, there are two different types of debugging:
    ·        With conventional debugging, you can analyze programs that you call up within your own user session on the server, with breakpoints being set at corresponding points in the coding.
    ·        With external debugging, you can analyze programs that are called up by an external user with HTTP. For the purpose of external debugging, special breakpoints (external breakpoints) are set on the target server.
    Two variants are available for conventional debugging: the classical variant and the new (2-processor) variant, which creates a separate session for the debugger. At present, external debugging can only be performed with the classical variant.
    This section deals especially with external debugging, as it is generally makes sense to call up an external user completely (with all sent parameters) in one step when investigating ICF processes.
    Prior to Release 640, the external debugging described below was known as HTTP debugging.
    Prerequisites
    ·        If you use load distribution for your system environment, the server group (logon group) is reduced to one server before debugging commences.
    ·        Ideally, the user who performs the debugging should not be a collective user.
    Activities
    Note that the troubleshooting method described here can affect your system performance. You should therefore only activate it if you really need it. You are advised to monitor the corresponding settings regularly and to deactivate any functions you no longer require.
    In transaction SICF, you can use the external debugger to set external breakpoints and check the debugging of the relevant section of code:
           1.      Select the required service in the service hierarchy.
           2.      Choose Edit ® Debugging ® Activate Debugging.
           3.      Enter the required data (if you have selected the service previously, the system will propose the service path for you). 
    Reward If Helpfull,
    Naresh.

  • Out-of-bounds pointer argument (past end of memory block).

    Hey guys,
      I'm trying to run a modified Acq-IntClk.C and got the following error:
     "FATAL RUN-TIME ERROR:   "Acq-IntClk.c", line 155, col 29, thread id 0x00001564:   Out-of-bounds pointer argument (past end of memory block)."
    here is the segment that gives me error:
    PlotY(panel,PANEL_GRAPH,&(data[numRead]),numRead,VAL_DOUBLE,VAL_THIN_LINE,VAL_EMPTY_SQUARE,VAL_SOLID,1,plotColors[1%12]);
    &(data[numRead]) is the problem
     i did some printfs:
    printf("sizeof(data):%d, numRead: %d, address: %d",sizeof(data),numRead,&(data[numRead]));
     and got:
    sizeof(data):4, numRead: 80000, address: 51233856
    the data array is carried over from
    RandomGen(taskHandle,sampsPerChan,10.0,DAQmx_Val_GroupByChannel,data,sampsPerChan*numChannels,&numRead,NULL);
    int32 RandomGen (TaskHandle taskHandle, int32 samplePerChannel, float64 timeout,bool32 fillMode, float64 *readArray,uInt32 arraySize, int32 *samplesPerChannelRead, bool32 *reserved){
    int i;
    double min = GblDataLow[taskHandle];
    double max = GblDataHigh[taskHandle];
    if (GblReadyForNiData[taskHandle]){
    //for (i = 0; i < arraySize; i++)
    for (i = 0; i < GblArraySize[taskHandle]; i++)
    readArray[i] = Random(min, max);
    *samplesPerChannelRead = arraySize;
    }else{
    *samplesPerChannelRead = 0;
    return 0;
    what is wrong with data here? RandomGen basically creates random data points to emulate DAQmxReadAnalogF64 and allows for Acq-IntClk to graph points as if the data came from some instrument.
    thanks!

    I think the problem is that you're passing a pointer to the end of your data array to the plotting function.  The function is expecting a pointer to the beginning of the data array.  I think this is what you should be doing:
    PlotY(panel,PANEL_GRAPH,&(data[0]),numRead,VAL_DOUBLE,VAL_THIN_LINE,VAL_EMPTY_SQUARE,VAL_SOLID,1,plotColors[1%12]);
     or more simply:
    PlotY(panel,PANEL_GRAPH,data,numRead,VAL_DOUBLE,VAL_THIN_LINE,VAL_EMPTY_SQUARE,VAL_SOLID,1,plotColors[1%12]);

  • How can I display different error bars for each point on a scatter graph?

    I have a scatter chart in Numbers and I need to add error bars to the points along both the x and y axes, however, the size of the error bars for each point need to be of different sizes. Is there a way to accomplish this or is there some kind of work around to acheieve a similar result? So far the only way I can find to add error bars only allows a standard amount for each point.

    I found the answer here https://discussions.apple.com/message/16440653#16441393

  • When i open terminal i get (login(1685,0x7fff73770960) malloc: *** error for object 0x106d2c4d0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug  [Process completed])

    so all of a suddun i open terminal and i get
    login(1685,0x7fff73770960) malloc: *** error for object 0x106d2c4d0: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug
    [Process completed]
    in the terminal window any help?

    Launch the Console application by entering the first few letters of its name into a Spotlight search, and look under "User Diagnostic Reports" for crash logs related to "login." Select the most recent one and post the contents -- the text, please, not a screenshot.

  • While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    I faced the same issue. This solved it for me: Troubleshooting issues with iTunes for Windows updates
    Hope this helps.

  • Was trying to update my ITunes and get this error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Just got the new IPhone and am trying to share music files. Can any

    I have Windows Vista computer. I am trying to upgrade my ITunes so can share files with other home computer. (Just got the new IPhone). I get this system error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Tries system restore and redownloaded...NOW Itunes will not even open. Can anyone help?

    I uninstalled Apple Application Support, opened iTunesSetup with WinRar, and went down the list of msi's. AppleApplicationSupport was an install, all the others I did Repair.  Did not have to reboot. Works okay now.
    HTH

  • Job error in external Service when printing from Google Cloud: HP Laserjet Profession​al P 1102w

    I have set up my printer and associated it with Google Cloud Printing. I have shared the printer with my daughter who is on a chromebook. When she tries to print, the printer is there and the job is sent to ePrint bu I get an error saying: "job error in external service". No documents are able to print. Google says this is an HP problem.
    I have deleted the printer on my daughters account and re-shared it and reassociated it, but this does not help. On my printers page, my daughter's google account is identified as "allowed to print". But it still doesnt work. Any ideas?
    This question was solved.
    View Solution.

    Hello mapuche,
    Welcome to the HP Support Forums!
    Will the Laserjet P1102w accept an ePrint from any / all other areas? For example, if (on the Chromebook) you open an Email, forward the Email to the printers ePrint address, will it print?
    Try logging into HPConnected, under Devices, click Settings> Open to Anyone.
    Try sending a print via Google Cloud Print now with this setting enabled, let me know if it sends the print through. I have seen this straighten many issues out.
    Would not be a bad idea to check for firmware updates on the printer too: HP LaserJet P1102w Firmware Update Utility<---A USB connection and Windows computer is needed.
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Error in external tax system: SAX processing failed on input stream SAX pro

    Hi
    When I was posted in T.Code: FB70,  (Customer Invoice) I am getting below mentioned error.
    Error in external tax system: SAX processing failed on input stream SAX processi.
    I put tick mark on calculate Tax column and select O1(A/R Sales Taxable).
    Pls. help me.
    Thanks
    Ranjith

    Hi Ranjith,
    I also face this problem in Production now.
    Could you kindly share with me how you resolved this issue?
    Thanks,
    Markus

  • Getting Error-- "The procedure entry point _UP_GetActiveTreeCell could not be located in the dynamic link library cvirte.dll" on host machine.

    I am trying to build an executible program that will be portable to machines which do not have CVI installed.  It works fine on my CVI v9.1 system.  However, whether or not I include "Full run-time support" in the build options, I get the error "The procedure entry point _UP_GetActiveTreeCell could not be located in the dynamic link library cvirte.dll" when I try to run it on a machine without CVI.  Please help.

    To run a CVI application on a system were the CVI IDE is not installed you need to have the CVI RunTime Engine installed. According to the error message at the bottom of this page you may have an older RTE installed in the target system.
    To obtain it you can either download the RTE and install in the target system or better let the IDE build a distribution disk that installs all necessary software in it: this guide drives you in creating the appropriate installer for your application: you can find it also in CVI help function.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can't launch itunes due to the following error; The procedure entry point AVCFPlayerAppliesMediaSelectionCriteriaKey could not be located in the dynamic link library AVFoundationCF.dll.

    Can't launch itunes due to the following error; The procedure entry point AVCFPlayerAppliesMediaSelectionCriteriaKey could not be located in the dynamic link library AVFoundationCF.dll.

    Hey bcolden,
    I would try uninstalling and reinstalling following the directions in here:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    This section in particular contains important information in the uninstall process:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

  • Error message: "invalid command line argument" while lodaing itunes

    I'm trying to load Itunes onto a computer that already has a version of itunes on it. I get a message that says "error: -1639 invalid command line argument" Does anyone know what this means? Does this mean I can't load itunes onto a computer that already has itunes on it?
    Also, I was able to load itunes on my laptop, but My ipod Icon is not appearing anywhere, not in itunes, not in explorer, not in my computer. I am, however, able to transfer music automatically when I plug the Ipod into the laptop. I have created several playlists and they have transferred over to the ipod as playlists. Any ideas why I can transfer despite not being recognized anywhere on the computer?
    Last thing is, I have plugged the Ipod into three different computers with itunes on them, and the ipod does not show up in the source list.
    I'm somewhat perplexed by all of this. Any help or insight would be greatly appreciated
    Dell   Windows XP Pro  

    hiya!
    "error: -1639 invalid command line argument"
    hmmm. folks typically only get that error if they are installing from removable media (such as a CD), although i have seen it happen if someone tries to install into the "recovery partition" of certain makes of PC.
    if you download and save an installer to your C drive and run the install from there, do you still get the 1639?
    iTunes 6.0.4.2 Installer
    love, b

  • Error opening external DTD 'book.dtd'

    I know this may be something simple, but can't get it to work. I have a local (on my local network) dtd file that I'm trying to use for validation on my xml file.
    My first two lines in the xml are:
    <?xml version="1.0" ?>
    <!DOCTYPE book SYSTEM "D:\tmp\book.dtd">
    When trying to parse it in Java, I get the exception thrown of:
    Error opening external DTD 'book.dtd'.
    I checked, and the file has full permissions for read and write, and it is in the directory specified.
    How can I use an external dtd file on my local network for my DTD validation?
    Thanks in advance!
    null

    Try using PUBLIC instead of SYSTEM.
    Oracle XML Team

Maybe you are looking for