pointer to integer

Hello all and sorry for this stupid question.

I did some research on this forum but I have not found the answers... it's perhaps too obvious!

I use the library function node call to a DLL and I need to pass a pointer to an integer, but I did not succeed.

I tried on a very simple function: void FctIntEtoile (int * data), which increments the variable data (Data = data + 1), but it does not work!

Can you help me please?

Hello

Of course, you do like this increment:

void Your_Functions (short int * data)
{
* Data += 1;
}

Is it not?

Andrey.

Tags: NI Software

Similar Questions

  • Table 2D-fixed points allocated to the amount of disk space!

    Hello

    I'm trying to create a 2D table file that will be saved on a real-time target. And should be read by my application in real time.

    To create a file as small as possible I have it recorded in fixed point format. (integer 16 bits 6 bits)

    The table size is 1024 X 1024 data points which is ~ 1 M data.

    If I save the file to the DBL format I expect to get 8 MB (each data point is represented by b bytes) of the file - and that's what I

    If I save a U16 format, I expect to get 2 MB file - and that's what I indeed.

    I waited get a 2 MB file with fixed point format-, but as you can see in the screenshot - I did not!

    No explanation why the checkpoint file is fixed so great?

    Thank you

    The FXP is 64-bit internally.

  • How to generate a random integer between 1-5?

    If I use random how can I convert an integer?

    Alana says:
    What exactly does the I32?

    "Of I32' converts your floating-point to integer number, as you specified in your first post as a requirement.

    Here's a version that gives all 5 numbers with equal probabilities. Instead of explicitly convert I32, I use + 1 output configuration. Same difference.

  • Thickness of the plot

    Hi all

    I am doing a project in LabWindows/CVI, where I have to post 16 tracks.

    I did it with a StripChart, but I had to reboot with graphic, because I wanted to use the zoom feature.

    Now, I can show my 16 tracks on the chart, but I have a problem with SetPlotAttribute. Here are some of my code (Simplified):

    for (int k = 0; k)<16 ;="">

    Plot (panelHandle, PANEL_GRAPH, time, k + 1, time + delaiCommande [i], k + 1, VAL_GREEN);
    SetPlotAttribute (panelHandle, PANEL_GRAPH, intrigue, ATTR_LINE_STYLE, VAL_SOLID);
    SetPlotAttribute (panelHandle, PANEL_GRAPH, plot, ATTR_PLOT_THICKNESS, 4);

    }

    It compiles, but it crashes. I warnings: "incompatible pointer to integer conversion from ' int (int, int, double, double, double, double, int) __attribute__ ((stdcall))' to 'int' type parameter»

    I'm sure that's no big deal, but I don't really know what to do now...

    Thanks for any help!

    Kind regards

    jerome_gab.

    Plot returns a handle thet you use during subsequent calls to set the attributes of the plot:

    for(int k=0 ; k<16 ; k++){
            plotH = PlotLine (panelHandle, PANEL_GRAPH, tempsEcoule, k+1, tempsEcoule+delaiCommande[i], k+1, VAL_GREEN);
            SetPlotAttribute (panelHandle, PANEL_GRAPH, plotH, ATTR_LINE_STYLE, VAL_SOLID);
            SetPlotAttribute (panelHandle, PANEL_GRAPH, plotH, ATTR_PLOT_THICKNESS, 4);
    }
    

    You use a function instead, definition where the error you get.

  • Upgrade VMware Tools to 11.1 in Xubuntu invited 14.04 fails

    Hello

    Upgrade VMware Tools from 11.0 to 11.1 in Xubuntu 14.04 fails - see the error message below.

    My Xubuntu 14.04 is up-to-date. I've recently performed 'apt - get dist-upgrade'.

    I can continue with the installation, but then shared folders does not work.

    I don't know what the problem... Everything has worked fine up to 11.0 and I never had problems with VMware Tools upgrade. Help, please.

    Annex: Error Message

    Using the kernel build system.

    "do: Verzeichnis" / tmp/modconfig-snuOuv/vmhgfs-only 'enter wird. "

    / usr/bin/make /lib/modules/3.13.0-46-generic/build/include/ - c... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Verzeichnis»/usr/src/linux-headers-3.13.0-46-generic«wird enter

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/backdoor.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/backdoorGcc64.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/cpName.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/bdhandler.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/cpNameLinux.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/cpNameLite.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/dentry.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/dir.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/file.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/filesystem.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/fsutil.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/hgfsBd.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/hgfsEscape.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/hgfsUtil.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/inode.o

    CC [M] /tmp/modconfig-snuOuv/vmhgfs-only/link.o

    In file included from usr/src/linux-headers-3.13.0-46-generic/arch/x86/include/asm/percpu.h:44:0,

    of usr/src/linux-headers-3.13.0-46-generic/arch/x86/include/asm/preempt.h:5.

    of include/linux/preempt.h:18.

    of include/linux/spinlock.h:50.

    of include/linux/mmzone.h:7.

    of include/linux/gfp.h:4.

    of include/linux/mm.h:8.

    of include/linux/pagemap.h:7.

    from /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:29:

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c: in function 'HgfsPermission ':

    include/Linux/kernel.h:793:27: error: 'struct dentry' has no member named 'd_alias '.

    const typeof (((type *) 0)-> member) * __mptr = (ptr); \

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:708:13: Note: the expansion of the macro 'hlist_entry_safe '.

    for (pos = hlist_entry_safe ((head)-> first, typeof (* (pos)), member); \)

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    include/Linux/kernel.h:793:48: warning: initialization of the [default] incompatible pointer type

    const typeof (((type *) 0)-> member) * __mptr = (ptr); \

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:708:13: Note: the expansion of the macro 'hlist_entry_safe '.

    for (pos = hlist_entry_safe ((head)-> first, typeof (* (pos)), member); \)

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    In file included from include/linux/compiler-gcc.h:106:0,

    of include/linux/compiler.h:54.

    of include/uapi/linux/stddef.h:1.

    of include/linux/stddef.h:4.

    of usr/src/linux-headers-3.13.0-46-generic/include/uapi/linux/posix_types.h:4.

    of include/uapi/linux/types.h:13.

    of include/linux/types.h:5.

    of tmp/modconfig-snuOuv/vmhgfs-only/./shared/driver-config.h:71.

    from /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:26:

    include/Linux/compiler-gcc4.h:14:34: error: 'struct dentry' has no member named 'd_alias '.

    #define __compiler_offsetof(a,b) __builtin_offsetof (a, b)

    ^

    include/linux/STDDEF.h:17:31: Note: the expansion of the macro '__compiler_offsetof '.

    #define offsetof (TYPE, MEMBER) __compiler_offsetof (TYPE, MEMBER)

    ^

    include/Linux/kernel.h:794:29: Note: the expansion of the macro "offsetof".

    (type *) ((char *) __mptr - offsetof (type, member)) ;})

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:708:13: Note: the expansion of the macro 'hlist_entry_safe '.

    for (pos = hlist_entry_safe ((head)-> first, typeof (* (pos)), member); \)

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    In file included from include/linux/preempt.h:10:0,

    of include/linux/spinlock.h:50.

    of include/linux/mmzone.h:7.

    of include/linux/gfp.h:4.

    of include/linux/mm.h:8.

    of include/linux/pagemap.h:7.

    from /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:29:

    include/linux/List.h:710:35: error: 'struct dentry' has no member named 'd_alias '.

    POS = hlist_entry_safe ((pos)-> member.next, typeof (* (pos)), member))

    ^

    include/linux/List.h:697:12: Note: in the definition of the macro 'hlist_entry_safe '.

    ({typeof (ptr) ___ptr = (ptr); \})

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    include/linux/List.h:710:35: error: 'struct dentry' has no member named 'd_alias '.

    POS = hlist_entry_safe ((pos)-> member.next, typeof (* (pos)), member))

    ^

    include/linux/List.h:697:28: Note: in the definition of the macro 'hlist_entry_safe '.

    ({typeof (ptr) ___ptr = (ptr); \})

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    In file included from usr/src/linux-headers-3.13.0-46-generic/arch/x86/include/asm/percpu.h:44:0,

    of usr/src/linux-headers-3.13.0-46-generic/arch/x86/include/asm/preempt.h:5.

    of include/linux/preempt.h:18.

    of include/linux/spinlock.h:50.

    of include/linux/mmzone.h:7.

    of include/linux/gfp.h:4.

    of include/linux/mm.h:8.

    of include/linux/pagemap.h:7.

    from /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:29:

    include/Linux/kernel.h:793:27: error: 'struct dentry' has no member named 'd_alias '.

    const typeof (((type *) 0)-> member) * __mptr = (ptr); \

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:710:13: Note: the expansion of the macro 'hlist_entry_safe '.

    POS = hlist_entry_safe ((pos)-> member.next, typeof (* (pos)), member))

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    include/Linux/kernel.h:793:48: warning: initialization makes pointer from integer without a cast [default]

    const typeof (((type *) 0)-> member) * __mptr = (ptr); \

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:710:13: Note: the expansion of the macro 'hlist_entry_safe '.

    POS = hlist_entry_safe ((pos)-> member.next, typeof (* (pos)), member))

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    In file included from include/linux/compiler-gcc.h:106:0,

    of include/linux/compiler.h:54.

    of include/uapi/linux/stddef.h:1.

    of include/linux/stddef.h:4.

    of usr/src/linux-headers-3.13.0-46-generic/include/uapi/linux/posix_types.h:4.

    of include/uapi/linux/types.h:13.

    of include/linux/types.h:5.

    of tmp/modconfig-snuOuv/vmhgfs-only/./shared/driver-config.h:71.

    from /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:26:

    include/Linux/compiler-gcc4.h:14:34: error: 'struct dentry' has no member named 'd_alias '.

    #define __compiler_offsetof(a,b) __builtin_offsetof (a, b)

    ^

    include/linux/STDDEF.h:17:31: Note: the expansion of the macro '__compiler_offsetof '.

    #define offsetof (TYPE, MEMBER) __compiler_offsetof (TYPE, MEMBER)

    ^

    include/Linux/kernel.h:794:29: Note: the expansion of the macro "offsetof".

    (type *) ((char *) __mptr - offsetof (type, member)) ;})

    ^

    include/linux/List.h:687:40: Note: the expansion of the macro «container_of»

    #define hlist_entry (ptr, type, member) container_of (ptr, type, member)

    ^

    include/linux/List.h:698:15: Note: the expansion of the macro 'hlist_entry '.

    ___ptr? hlist_entry (___ptr, type, member): NULL; \

    ^

    include/linux/List.h:710:13: Note: the expansion of the macro 'hlist_entry_safe '.

    POS = hlist_entry_safe ((pos)-> member.next, typeof (* (pos)), member))

    ^

    /tmp/modconfig-snuOuv/vmhgfs-only/inode.c:1920:7: Note: the expansion of the macro 'hlist_for_each_entry '.

    hlist_for_each_entry (dentry,

    ^

    make [2]: * [/ tmp/modconfig-snuOuv/vmhgfs-only/inode.o] Fehler 1

    make [2]: * Auf noch nicht processes wird going going...

    make [1]: * [_module_/tmp/modconfig snuOuv/vmhgfs-only] error 2

    make [1]: Verzeichnis»/usr/src/linux-headers-3.13.0-46-generic«verlassen wird

    make: * [vmhgfs.ko] Fehler 2

    "do: Verzeichnis" / tmp/modconfig-snuOuv/vmhgfs-only "verlassen wird."

    The filesystem (vmhgfs module) driver is used only for the shared folder

    feature. The rest of the software provided by VMware Tools is designed to work

    regardless of this function.

    If you want the shared folders feature, you can install the driver of

    running vmware-config - tools.pl again after making sure that gcc, binutils, make

    and your kernel sources are installed on your computer.

    These packages are available on the installation of your distribution CD.

    [Press the Enter key to continue]

    As Barney42 pointed out, this question comes with the new kernel 3.13.0 - 46. And indeed helped me to find a workaround:

    Tools can be patched manually. In vmhgfs.tar, inode.c d_alias should be replaced by d_u.d_alias put it back to the tar and then recompile tools.

    Here is a script that does this (tested on ubuntu 32 bit 14.04, vmware workstation on a windows host 11.1):

    #!/bin/sh -x
    cd /usr/lib/vmware-tools/modules/source
    tar xf vmhgfs.tar
    grep -q d_u.d_alias vmhgfs-only/inode.c && echo "already patched" && exit 0
    sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c
    cp -p vmhgfs.tar vmhgfs.tar.orig
    tar cf vmhgfs.tar vmhgfs-only
    vmware-config-tools.pl -d -m

    NOTE: This makes incompatible tools with older versions of the kernel, i.e. 3.13.0 - 45.

    (Original post at askubuntu)

    However, @VMware-team, please do run again out of the box, or submit a patch for the Linux kernel. You are a large business, should be no problem.

  • Linux - compilation of the modules in the kernel (bundle of VMware Workstation 9.0.2) against core 3.10 fails

    Hey,.

    I try to get VMware Workstation running on an Ubuntu 13,10 pre 9.0.2 bundle, but the kernel modules won't get compiled with the kernel 3.10.0 - 6.

    Here is the log of the build scripts:

    Using 2.6.x kernel build system.

    do: go in Verzeichnis "/ tmp/modconfig-DQkPL0/vmnet-only.

    / usr/bin/make /lib/modules/3.10.0-6-generic/build/include/ - c... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Betrete Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/driver.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/hub.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/userif.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/netif.o

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/netif.c:42:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/netif.c:42:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c: in function 'VNetNetIf_Create ':

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c:191:33: error: dereferencing pointer to incomplete type

    netIf-> port.jack.procEntry-> read_proc = VNetNetIfProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c:192:33: error: dereferencing pointer to incomplete type

    netIf-> port.jack.procEntry-> data is netIf;.

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/netif.o] Fehler 1

    make [2]: * Warte auf noch nicht processes going...

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/hub.c:43:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/driver.c:51:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/hub.c:43:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/driver.c:51:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c: in function 'VNetHubFindHubByID ':

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:132:49: warning: 'sizeof' into 'memcmp' appeal argument is the expression even as the first source. Did you provide an explicit length? [- Wsizeof - pointer-memaccess]

    memcmp (idNum, currHub-> id.pvnID, sizeof idNum))) {}

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c: in function 'VNetHubAlloc ':

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:315:36: warning: the argument of 'sizeof' into 'memcpy' appeal is the same type of pointer ' uint8 *' as the destination. EXPECTED "uint8" or explicit length [- Wsizeof - pointer-memaccess]

    memcpy (hub-> id.pvnID, id, id sizeof);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:366:28: error: dereferencing pointer to incomplete type

    Jack-> procEntry-> read_proc = VNetHubProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:367:28: error: dereferencing pointer to incomplete type

    -->--> Data procEntry Jack is jack.;

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/userif.c:46:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/userif.c:46:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/hub.o] Fehler 1

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c: in function 'VNetUserIfIoctl ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:810:7: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE(VNET_NOTIFY_VERSION == 5);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:811:7: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE(ACTION_EXPORTED_VERSION == 2);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c: in function 'VNetUserIf_Create ':

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:1049:34: error: dereferencing pointer to incomplete type

    userIf-> port.jack.procEntry-> read_proc = VNetUserIfProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:1050:34: error: dereferencing pointer to incomplete type

    userIf-> port.jack.procEntry-> data = userIf.

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/userif.o] Fehler 1

    make [1]: * [_module_/tmp/modconfig-DQkPL0/vmnet-only] error 2

    make [1]: Verlasse Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    make: * [vmnet.ko] Fehler 2

    make: Verlasse Verzeichnis "/ tmp/modconfig-DQkPL0/vmnet-only.

    Vmnet failed.  Cannot run the command build.

    Using 2.6.x kernel build system.

    do: go in Verzeichnis "/ tmp/modconfig-DQkPL0/vmblock-only.

    / usr/bin/make /lib/modules/3.10.0-6-generic/build/include/ - c... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Betrete Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/block.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/control.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/dentry.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/file.o

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:38:4: warning: initialization of the [default] incompatible pointer type

    .d_revalidate = DentryOpRevalidate,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:38:4: WARNING: (near initialization for 'LinkDentryOps.d_revalidate') [default]

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c: in function 'DentryOpRevalidate ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:104:7: warning: argument passing 2 of 'actualDentry-> d_op-> d_revalidate' makes whole pointer without a [default] casting

    return actualDentry - > d_op-> d_revalidate (actualDentry, nd);

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:104:7: Note: expected 'unsigned int' but argument is of type ' struct nameidata *'

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c: in function 'SetupProcDevice ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:211:4: error: implicit declaration of function 'create_proc_entry' [-Werror-implicit-function-declaration =]

    controlProcEntry = create_proc_entry (VMBLOCK_CONTROL_DEVNAME,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:211:21: warning: assignment makes pointer from integer without a cast [default]

    controlProcEntry = create_proc_entry (VMBLOCK_CONTROL_DEVNAME,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:221:20: error: dereferencing pointer to incomplete type

    controlProcEntry-> proc_fops = & ControlFileOps;

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c: in function 'ExecuteBlockOp ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:285:9: warning: [default] incompatible pointer type assignment

    name = getname (buf);

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:296:4: warning: passing argument 1 of the [default] incompatible pointer type "putname"

    putname (Name);

    ^

    In file included from include/linux/proc_fs.h:8:0,

    from /tmp/modconfig-DQkPL0/vmblock-only/linux/control.c:28:

    include/Linux/FS.h:2055:13: Note: expected ' struct filename *' but argument is of type ' char *'

    extern void putname (struct filename * name);

    ^

    Cc1: some warnings are treated as errors

    make [2]: * [/ tmp/modconfig-DQkPL0/vmblock-only/linux/control.o] Fehler 1

    make [2]: * Warte auf noch nicht processes going...

    make [1]: * [_module_/tmp/modconfig DQkPL0/vmblock-only] error 2

    make [1]: Verlasse Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    make: * [vmblock.ko] Fehler 2

    make: Verlasse Verzeichnis "/ tmp/modconfig-DQkPL0/vmblock-only.

    Vmblock failed.  Cannot run the command build.

    I hope that the core 3.10 will be supported with the next version of bundle.

    Greetings

    Thilo

    There is a patch for VMWare WS 9.0.2 to play nice with 3.10 kernel here:

    https://wiki.archlinux.org/index.php/VMware#3.10_kernels

    Or you can wait for VMWare WS 10.0 out...

  • VMware workstation 7.1.4 failed on Debian

    Hello

    I'm trying to install VMware-Workstation-Full - 7.1.4 - 385536.x86_64.bundle under the Debian Wheezy (test version).

    I use the linux kernel "3.0.0 - 1-amd64.

    I have patched my kernel to compile the interfaces (with this patch and tutorial)-> http://Weltall.HelioHost.org/WordPress/2011/05/14/running-VMware-Workstation-player-on-Linux-2-6-39-updated/

    Compilation failed for the 'file system blocking'

    Starting VMware services:
    USB VMware arbitrator shall
    Virtual machine monitor makes
    Virtual machine communication interface is
    VM communication interface socket family is
    Block file system failed
    Virtual Ethernet is

    I saw during the compilation of these curious message

    Description: VMware virtual network driver.
    Author: VMware, Inc..
    depends on:
    vermagic: 3.0.0 - 1-amd64 SMP, modversions mod_unload
    ERROR: modinfo: module vmblock is not found
    file name: /lib/modules/3.0.0-1-amd64/misc/vmci.ko
    support: external

    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:348:4: warning: passing of argument 3 of 'kern_path' from incompatible pointer type
    /usr/src/linux-headers-3.0.0-1-common/include/Linux/Namei.h:76:12: Note: expected ' struct path *' but argument is of type ' struct nameidata *'
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c: in function 'FsOpGetSb ':
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:622:4: error: implicit declaration of function 'get_sb_nodev '.
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:622:4: warning: return makes pointer from integer without a cast
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c: at the highest level:
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:48:23: warning: 'FsOpMount' used but never defined
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:58:12: warning: 'FsOpReadSuper' used but never defined
    /tmp/vmware-root/modules/vmblock-only/Linux/filesystem.c:617:1: warning: 'FsOpGetSb' defined but not used
    make [4]: * [/ tmp/vmware-root/modules/vmblock-only/linux/filesystem.o] error 1
    make [3]: * [_module_/tmp/vmware-root/modules/vmblock only] error 2
    make [2]: * [branded] error 2
    make [1]: * [all] error 2
    make [1]: leaving directory '/usr/src/linux-headers-3.0.0-1-amd64 '.
    make: * [vmblock.ko] error 2
    make: leaving directory '/ tmp/vmware-root/modules/vmblock-only.
    Using 2.6.x kernel build system.

    You have a solution?

    Thank you for your help

    Try it - it works for the 3.1.4 VMware Player, so I think it will work the same for 7.1.4 workstation:

    http://communities.VMware.com/thread/324995?TSTART=180

  • Query where clause of different table without data

    Hello

    Oracle 11g.

    I have a 'Points' table that stores information point.
    In carts, users can record information on these points.
    Then, the user can some carts he wants to apply to display data in a report.

    Here is a minimal example (I hope I didn't too many mistakes):
    create table points (
         pt_id integer,
         pt_type varchar2(1),
         pt_accl varchar2(15),
         pt_class varchar2(10),
         pt_status varchar2(1),
         constraint pk_pt_id primary key(pt_id),
         constraint ck_pt_type check(pt_type in ('B','P', 'S', 'T')),
         constraint ck_pt_status check(pt_status in ('A','E'))
    );
    
    create table carts(
         cart_id integer,
         cart_name varchar2(30),
         cart_current varchar2(1),
         constraint pk_cart_id primary key(cart_id),
         constraint ck_cart_current check(cart_current in ('Y','N')) 
    );
    
    create table user_selected_types(
         ust_id integer,
         ust_cart_id integer,
         ust_type varchar2(1),
         constraint pk_ust_id primary key(ust_id),
         constraint fk_ust_cart_id foreign key(ust_cart_id) references carts(cart_id)
    );
    
    create table user_selected_accls(
         usa_id integer,
         usa_cart_id integer,
         usa_accl varchar2(15),
         constraint pk_usa_id primary key(usa_id),
         constraint fk_usa_cart_id foreign key(usa_cart_id) references carts(cart_id)
    );
    
    create table user_selected_classes(
         usc_id integer,
         usc_cart_id integer,
         usc_class varchar2(10),
         constraint pk_usc_id primary key(usc_id),
         constraint fk_usc_cart_id foreign key(usc_cart_id) references carts(cart_id)
    );
    
    create table user_selected_status(
         uss_id integer,
         uss_cart_id integer,
         uss_status varchar2(1),
         constraint pk_uss_id primary key(uss_id),
         constraint fk_uss_cart_id foreign key(uss_cart_id) references carts(cart_id)
    );
    
    insert into carts values (1, 'cart_1', 'N');
    insert into carts values (2, 'cart_2', 'Y');
    insert into carts values (3, 'cart_3', 'Y');
    
    insert into points values (1, 'B', 'AAA', 'AAKCM', 'A');
    insert into points values (2, 'B', 'BIONH1', 'AAKCM', 'A');
    insert into points values (3, 'B', 'BIONH1', 'AAKCM', 'E');
    insert into points values (4, 'B', 'CTF1', 'RF45Q33', 'E');
    insert into points values (5, 'T', 'L4C', 'H4V1', 'A');
    insert into points values (6, 'T', 'L4C', 'H4V1', 'E');
    insert into points values (7, 'S', 'BIONH1', 'RX4', 'A');
    insert into points values (8, 'S', 'L4D', 'L2585', 'A');
    insert into points values (9, 'S', 'L4D', 'L2585', 'E');
    insert into points values (10, 'S', 'CTF1', 'CCMBQX', 'A');
    insert into points values (11, 'S', 'CTF1', 'CCMBQX', 'E');
    insert into points values (12, 'S', 'CTF2', 'CCMBQX', 'A');
    insert into points values (13, 'S', 'CTF2', 'CCMBQX', 'E');
    insert into points values (14, 'P', 'H4', 'L44W', 'A');
    insert into points values (15, 'P', 'H4', 'L44W', 'E');
    insert into points values (16, 'P', null, 'RK', 'E');
    
    insert into user_selected_types values (1, 1, 'B');
    insert into user_selected_types values (2, 1, 'S');
    insert into user_selected_types values (3, 3, 'T'); 
    
    insert into user_selected_accls values (1, 1, 'BIONH1');
    insert into user_selected_accls values (2, 2, 'CTF1');
    insert into user_selected_accls values (3, 2, 'CTF2');
    insert into user_selected_accls values (4, 3, 'L4C');
    
    insert into user_selected_classes values (1, 1, 'AAKCM');
    
    insert into user_selected_status values (1, 3, 'A');
    If a user may for example have the following carts (according to the example above):
    cart_1
    Types : 'B', 'S'
    Accls : 'BIONH1'
    Classes : 'AAKCM'
    Status : [All]
    
    cart_2
    Types : [All]
    Accls : 'CTF1', 'CTF2'
    Classes : [All]
    Status : [All]
    
    cart_3
    Types : 'T'
    Accls : 'L4C'
    Classes : [All]
    Status : 'A'
    When no value is selected for an item, it must return all values.

    For now, I have the following query:
    with t as (select cart_id d from carts where cart_current = 'Y')
    select
         *
    from
         points
    where
         ...
         and (
              pt_type in (select ust_type from user_selected_types where ust_cart_id in (select d from T))
              or not exists (select 1 from user_selected_types where ust_cart_id in (select d from T)))
         and (
              nvl(pt_accl, '' - (null)'') in (select nvl(usa_accl, '' - (null)'') from user_selected_accls where usa_cart_id in (select d from T))
              or not exists (select 1 from user_selected_accls where usa_cart_id in (select d from T)))
         and (
              pt_class in (select usc_class from user_selected_classes where usc_cart_id in (select d from t))
              or not exists (select 1 from user_selected_classes where usc_cart_id in (select d from T)))
         and (
              pt_status in (select uss_status from user_selected_status where uss_cart_id in (select d from T))
              or not exists (select 1 from user_selected_status where uss_cart_id in (select d from T)))
    It works, but the data or mixed...
    If the user apply cart_2 and cart_3, I don't want to for example points to accl "L4C" with status "E", forthcoming.
    I just want to return the union all selected each carts.

    Of course I can loop over Cart ID, PL_SQL, and build the query dynamically, as:
    for cur_c in (select cart_id d from carts where cart_current = 'Y') loop
         l_query := l_query || 'select ... from ... where ...' || ' union all ';
    end loop;
    l_query := substr(l_query,1,length(l_query)-11);
    But imagine the user ask 500 wagons..., I've reached the limit of varchar2.
    I can't use a CLOB that I use Oracle APEX to view the report, and he expects the query a varchar2.

    I don't want to use a temporary table, as it is too slow for the application (I've tested).

    You have a solution?

    Thank you.

    Yann.

    Thanks for create/insert statements - makes it much easier to help :D

    Here's one way:

    SQL> select
      2  c.cart_id,
      3  p.pt_id,
      4  p.pt_type,
      5  p.pt_accl,
      6  p.pt_class,
      7  p.pt_status
      8  from carts c
      9  cross join points p
     10  where c.cart_current = 'Y'
     11  and ( not exists(select null from user_selected_types ust where ust.ust_cart_id = c.cart_id)
     12     or p.pt_type in (select ust.ust_type from user_selected_types ust where ust.ust_cart_id = c.cart_id)
     13      )
     14  and ( not exists(select null from user_selected_accls usa where usa.usa_cart_id = c.cart_id)
     15     or p.pt_accl in (select usa.usa_accl from user_selected_accls usa where usa.usa_cart_id = c.cart_id)
     16      )
     17  and ( not exists(select null from user_selected_classes usc where usc.usc_cart_id = c.cart_id)
     18     or p.pt_class in (select usc.usc_class from user_selected_classes usc where usc.usc_cart_id = c.cart_id)
     19      )
     20  and ( not exists(select null from user_selected_status uss where uss.uss_cart_id = c.cart_id)
     21     or p.pt_status in (select uss.uss_status from user_selected_status uss where uss.uss_cart_id = c.cart_id)
     22      )
     23  order by
     24  c.cart_id,
     25  p.pt_id
     26  ;
    
       CART_ID      PT_ID P PT_ACCL         PT_CLASS   P
    ---------- ---------- - --------------- ---------- -
             2          4 B CTF1            RF45Q33    E
             2         10 S CTF1            CCMBQX     A
             2         11 S CTF1            CCMBQX     E
             2         12 S CTF2            CCMBQX     A
             2         13 S CTF2            CCMBQX     E
             3          5 T L4C             H4V1       A
    
    6 rows selected.
    

    The cross join creates all the possible combinations of carriage/point. Then they are checked for 4 columns according to your rules. I think that the result is correct, if I read your question right?

    If it's the most effective depends a lot on your actual data. Are the usual cases each cart sets a very small subset of points, or each cart will usually define a substantial part of the points. Carts of how are your tables? How many tables of user_selected_? How is the distribution? How many points? Indexes are available?

    If the data are such that it can "pay" to build all of the possible production and "weed" down, then the foregoing can be very effective. If the data is such that the result is usually very small subset then the effectiveness may depend on the index are available.

    Test and see if it works for you ;-)
    If it takes hours, so if please give some information on the quantity and distribution of the data and the expected quantity and size carts etc. Then we could think in a different way...

  • VMWare Tools/Ubuntu 9.04 edition - "Failed to generate the vmhgfs module."

    Because vmhgfs have not built correctly during the installation of VMWare tools, I can't access my VMWare "Shared Folders".

    I tried to create a new virtual machine in VMWare Fusion 2.0.4 (159196) run Ubuntu 9.04 (Jaunty Jackalope) using the installer of ubuntu - 9.04 - desktop - i386.iso. When creating the virtual machine I HAVE NOT used the "Linux Easy install".

    Once installation is complete, I tried to install the VMWare tools. Everything was going along fine, until the VMWare tools installer gave the error "failed to generate the vmhgfs module. Now I'm unable to access the "shared folders" through VMWare.

    It's the relevant output of the installation of VMWare tools:

    Extract the vmhgfs module sources.
    The construction of the vmhgfs module.
    Using 2.6.x kernel build system.
    do: enter the directory ' / tmp/vmware-config0/vmhgfs-only.
    do /lib/modules/2.6.28-11-generic/build/include/ - C... SUBDIRS = $PWD SRCROOT = $PWD. modules of
    make [1]: Entering directory ' / usr/src/linux-headers-2.6.28-11-generic'
    CC /tmp/vmware-config0/vmhgfs-only/backdoor.o
    CC /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o
    CC /tmp/vmware-config0/vmhgfs-only/bdhandler.o
    CC /tmp/vmware-config0/vmhgfs-only/cpName.o
    CC /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
    CC /tmp/vmware-config0/vmhgfs-only/cpNameLite.o
    CC /tmp/vmware-config0/vmhgfs-only/dentry.o
    CC /tmp/vmware-config0/vmhgfs-only/dir.o
    CC /tmp/vmware-config0/vmhgfs-only/file.o
    CC /tmp/vmware-config0/vmhgfs-only/filesystem.o
    CC /tmp/vmware-config0/vmhgfs-only/fsutil.o
    CC /tmp/vmware-config0/vmhgfs-only/hgfsBd.o
    CC /tmp/vmware-config0/vmhgfs-only/hgfsEscapeLinux.o
    CC /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
    CC /tmp/vmware-config0/vmhgfs-only/inode.o
    CC /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o
    CC /tmp/vmware-config0/vmhgfs-only/link.o
    CC /tmp/vmware-config0/vmhgfs-only/messageBackdoor.o
    CC /tmp/vmware-config0/vmhgfs-only/message.o
    CC /tmp/vmware-config0/vmhgfs-only/module.o
    CC /tmp/vmware-config0/vmhgfs-only/page.o
    /tmp/vmware-config0/vmhgfs-only/page.c: in function 'HgfsDoWriteBegin ':
    /tmp/vmware-config0/vmhgfs-only/page.c:763: warning: ISO C90 prohibited mixed declarations and code
    /tmp/vmware-config0/vmhgfs-only/page.c: in function 'HgfsWriteBegin ':
    /tmp/vmware-config0/vmhgfs-only/page.c:867: error: implicit declaration of function '__grab_cache_page '.
    /tmp/vmware-config0/vmhgfs-only/page.c:867: warning: assignment makes pointer from integer without a cast
    make [2]: * /tmp/vmware-config0/vmhgfs-only/page.o error 1
    [make [1]: * \[_module_/tmp/vmware-config0/vmhgfs-only] error 2
    make [1]: leaving directory ' / usr/src/linux-headers-2.6.28-11-generic'
    [do: * \[vmhgfs.ko\] error 2
    make: leaving directory ' / tmp/vmware-config0/vmhgfs-only.


    Could not generate the vmhgfs module.
    The filesystem (vmhgfs module) driver is used only for the shared folder
    feature. The rest of the software provided by VMware Tools is designed to work
    regardless of this function.
    If you want the shared folders feature, you can install the driver of
    running vmware-config - tools.pl again after making sure that gcc, binutils, make
    and your kernel sources are installed on your computer.
    These packages are available on the installation of your distribution CD.
    ------[Press Enter key to continue--------]

    A blog at http://laptopbisnis.blogspot.com/2009/04/ubuntu-904-beta-in-vmware-fusion.html this problem and the solution is to change a line in the file page.c, re - tar file updated the and then restart the installation of VMWare tools. When I try to re-run the installation of VMWare tools, however, I get the following error:

    The following VMware kernel modules were found on your system that have been
    not installed by Setup of VMware.  Please, remove them and then run this
    installation program again.
    vmxnet
    vmblock
    VMCI
    vmmemctl
    Be - ' rm /lib/modules/2.6.28-11-generic/misc/ & lt; ModuleName & gt;. {o, k}'
    The execution is canceled.

    Any help would be appreciated.

    The instructions in the blog worked well to solve the problems of hgfs.

    However, I'd suggest the following sequence:

    a. run vmware - uninstall - tools.pl (if you get what other messages on modules installed)

    b. create the vmware-tools-distrib directory

    c. apply the hotfix according to the directives of the blog page

    d. run vmware - install.pl

    If all else fails, follow the suggestion of the error message to delete the modules 'by hand' and then re-run the installation

  • How check and rounding a whole number?

    Newbie question:

    How can I check a given integer (and not int) to see if there are round and next round.

    for example
    If the integer is 3456 - do nothing.

    If the integer is 3456.9 - round until 3456

    Thank you!

    This is the behavior of the integers already. If you assign a number to floating point to integer (int or integer) it truncates the fraction part.

  • Peacekeeping contexts ODCI sweep between sessions

    Hello

    I have a problem when implementing the interface for function ODCI pipeline in Java using 11.1.0.7. I have copy and paste the example code [url http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28425/pipelined_example.htm#CHDHDHEE] from the documents, only adding an ODCITablePrepare function to take advantage of the knowledge of the columns that are covered by the request. Everything works fine the first time I run my function as you can see from the trace
    SQL>exec insert_ab10_cat;
    Entering ODCITablePrepare
    setContext key=0
    create hashtable
    setContext new key=1
    Created context with key = 0
    Marking fields accessed by query: 3 - 13 - 14 - 15 ...
    Leaving ODCITablePrepare with context = DWH.PARSEFILECAT
    
    Entering ODCITableStart with context = DWH.PARSEFILECAT
    Retrieving context with key = 0
    getContext key=0 count=1
    Calling list_files() with sysName = AB10, fileType = CAT
    Leaving ODCITableStart
    
    Entering ODCITableFetch with nrows = 1
    Retrieving context with key = 0
    getContext key=0 count=1
    Opening file /mnt/cluster/xxxxxxxxx
    Leaving ODCITableFetch with nrows = 276
    
    Entering ODCITableFetch with nrows = 32766
    Retrieving context with key = 0
    getContext key=0 count=1
    Leaving ODCITableFetch with nrows = 0
    
    Entering ODCITableClose
    Retrieving context with key = 0
    getContext key=0 count=1
    Leaving ODCITableClose
    
    PL/SQL procedure successfully completed.
    Also, things are ok, if I run the function again in the same session, given that I have does not clear the previous context. This time Oracle does not call ODCITablePrepare because the SQL query is stored in the shared area:
    SQL>exec insert_ab10_cat;
    Entering ODCITableStart with context = DWH.PARSEFILECAT
    Retrieving context with key = 0
    getContext key=0 count=1
    Calling list_files() with sysName = AB10, fileType = CAT
    Leaving ODCITableStart
    
    Entering ODCITableFetch with nrows = 1
    Retrieving context with key = 0
    getContext key=0 count=1
    Opening file /mnt/cluster/......
    Leaving ODCITableFetch with nrows = 250
    
    Entering ODCITableFetch with nrows = 32766
    Retrieving context with key = 0
    getContext key=0 count=1
    Leaving ODCITableFetch with nrows = 0
    
    Entering ODCITableClose
    Retrieving context with key = 0
    getContext key=0 count=1
    Leaving ODCITableClose
    
    PL/SQL procedure successfully completed.
    But things go wrong if I connect and once again, or if I try a new session:
    SQL>exec insert_ab10_cat;
    Entering ODCITableStart with context = DWH.PARSEFILECAT
    Retrieving context with key = 0
    getContext key=0 count=0
    Exception in thread "Root Thread" java.lang.NullPointerException
            at oracle.CartridgeServices.ContextManager.getContext(ContextManager.java:48)
            at myClass.ODCIstart(ParseFile.java:144)
            at myClass.ODCITableStart(ParseFileCAT.java:97)
    BEGIN insert_ab10_cat; END;
    
    *
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    Note that the accident occurred inside the ContextManager Oracle class... Hmm... Of course, everything go back to normal if I drain the shared pool. The behavior (except of course for the part of crash) is somewhat understandable, given that different sessions are not supposed to share memory, so the context that was originally created by ODCITablePrepare is not available to the other sessions, even if the index of the object that is stored by the ContextManager CartigeServices is an attribute of the object type (in this case DWH.) PARSEFILECAT) and is shared by all sessions.

    So what is the solution to this situation? I have the feeling that the right way to do would be to define and store all the objects that should be passed between sessions as attributes of the object type, instead of a pointer to integer unique to a ContextManager entry; However, the Java object representing the context is quite complex and I have no idea how to represent in PL/SQL, this coding by hand would be very difficult and prone to error, still less a maintenance nightmare. Does anyone know of a better way to do it?

    Thanks for your help,
    Chris

    Hi Chris:
    There is an inconsistency here between the docs and reality :(
    Note This article (http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/pipe_paral_tbl.htm#ADDCI4712):
    >
    Prepare, method

    ODCITablePrepare() is called during query compilation. It generates and saves the information to reduce the runtime of the query.

    If you do implement a ODCITablePrepare(), ODCITableStart() initializes the context whenever it is called. However, if you do not implement ODCITablePrepare(), it initializes the context of analysis, which is passed to the ODCITableStart () when the query is run, by reducing the startup time. In addition, when ODCITablePrepare() is implemented, ODCITableClose() is called only once during the query, rather than every time the table service is restarted. This offers the following advantages:

    It reduces the execution time by reducing the number of calls to ODCITableClose().

    It allows the context of scanning between the table function restarts.

    ODCITablePrepare() also provides information of projection to the table function. If you do not ODCITablePrepare() implement for the table of functions that return collections of types defined by the user (UDT), your table function must define all the attributes of the UDT of each element, because there is no way to know which attributes are used. On the other hand, selection in an ordinary table retrieves only the required columns, which is naturally faster in most cases. However, if you do not implement ODCITablePrepare(), it can build a table of positions of the attribute, record the return type information in an argument of type ODCITabFuncInfo and save this information in the analysis, as described in example 13-14. >
    But I'm sure that if you close a connection to the DB, the OJVM fade and all information stored in a hash table will disappear (remember that ContextManager.setContext (ctx); in-house is implemented by a hash table).
    My recommendation is:
    -Try to implement most of part of the pipeline in PLSQL, switch to Java implies a change in SQL in the Java context space. For example, you can implement Prepare and describe the method in PLSQL and only implemt start/extraction/close in Java.
    -If you can not retrieve information from struct in another parallel to the Java session, try to use a temporary with instance field table and stores rated context, you can use the args as the key value, this value is passed into all the functions describe, prepare, start, is therefore a good candidate to work as a key and the temporary table will work as a shared memory area stored in the LMS.
    Best regards, Marcelo.

  • Determine if an integer is a floating-point number

    I want to create a program that when an integer is entered in the digital constant, a floating-point number with zeros to the right of the decimal point lights up the LED on the front panel. The LED remains off for any other floating-point number. I know I want to use a ride to the nearest function, but don't know where to go from there.

    rtufaro wrote:

    I want to create a program that, when an integer is entered in the digital constant,.

    You want to say CONTROL, right?

    You just need a type of rounding.  No matter if round you upwards or downwards.  If you just around and then compare the entry to the rounded value.  If they are equal, you turn on your LED.  So all you need is a digital control, 2 functions, and a boolean flag.

  • BUG: Large floating point numbers convert the wrong integer

    Hello

    When you use the 'balls' conversion to convert integers to SGL, DBL and EXT there are certain values that convert evil. An example is the 9223370937343148030 integer that can be represented exactly as a SGL (and therefore exactly as DBL and EXT as well). If you convert this I64 you get 9223370937343148032 instead, even if the correct integer is in the range of an I64. There are many cases similar, all (I noticed) at the wide end of the ranges.

    It has nothing to with the integers can be represented exactly as a floating point value or not. This is a bug of authentic conversion you mind.

    See you soon,.

    Steen

    Hi Steen,

    Thanks for this identification. I confirmed the EXT to U64 conversion problem in simply trying to make a round trip on a xFFFFFFFFFFFFF9B0 of value U64 EXT and back, is xFFFFFFFFFFFFFFFF as well (and the intermediate value in EXT is correct).

    The problem seems to be limited to integer values with the upper part of 53 bits set, as well as all of one or more of the 11 lowest.

    I have reported this (#396305), as well as the limited display accuracy questions (#396337).

    Jim

  • AS: getting an integer from the object reference in the text to the insertion point

    I think the merger of data that I need a whole number of the insertion point. I have a practical object reference that says: 'text 78 to character... ". »

    I'm trying different ways to get this whole first, but everything the average back fail to transform into an integer. Brute force such as the constraint do not work. How to extract '78' of an object reference? Thanks, sam

    "Index of objRef.

  • Size of the text cursor (insertion point)?

    How can I control the size of the text cursor (insertion point)? The Windows setting in Accessability Options of the Panel seems to ignore Firefox.

    Try to create these two integer prefs:

    ui.caretWidth
    ui.caretBlinkTime (milliseconds;use 0 to disable blink)
    

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences can be reset to the default value using the context menu if they are set of users
    • Preferences can be changed via the context menu: Edit (string or integer) or toggle (Boolean)

Maybe you are looking for

  • Difficulty the width of the content area

    In recent days, the right side of the content area of my firefox ends after a fixed width. Not the content itself - the whole of the area. How can I fix this without resetting my preferences? Screenshot: https://picasaweb.Google.com/LH/photo/6SIGsjt1

  • Is there a difference in s60 - a 60-w or 60-t

    I have a s60 and I broke the glass. Is it the same with the 60-o and the 60-t?

  • Acer Iconia a500

    Hi, I have an Acer a500 Tablet and have had trouble with the internet. I can't update via internet, either, I always get the message of network coverage is currently poor no matter how near my router I am. I was wondering if anyone could tell me if I

  • has my e-mail window program and "error".

    My e-mail window program started giving me a message that my email software has an error - it won't let me see the mail sent or deleted mail. Because I work outside computers that I empty the deleted mail manually instead of their output. This allows

  • I did ' sfc/scannow' and that's what I got

    I just did "sfc/scannow". He did this to me: Now, here's the CBS log file. http://1drv.Ms/V3mTUu What is the problem? How to fix?