Pthreads on Solaris 64 bit

Hi all;
This is kinda of a vague question but maybe ye can help.
I am trying to compile a process using pthreads and in the link line and orginally i got a problem with sigwait but this flag -D_POSIX_PTHREAD_SEMANTICS sorted it. Now i am getting a problem with SIGKILL so i was wondering is their any other flags i need to set in relation to pthreads?
Thanks!

What kind of problem you get with SIGKILL?
As for posix stuff - there is controlling macro POSIXC_SOURCE.
Taking a look at /usr/include/sys/feature_tests.h:
*      Values of _POSIX_C_SOURCE
*              undefined       not a POSIX compilation
*                      1       POSIX.1-1990 compilation
*                      2       POSIX.2-1992 compilation
*                199309L       POSIX.1b-1993 compilation (Real Time)
*                199506L       POSIX.1c-1995 compilation (POSIX Threads)
*/It looks like you might want to set it to 199506L.
regards,
__Fedor.

Similar Messages

  • Memory leak using pthreads on Solaris 7

    I'm on Solaris 7
    uname -a:
    SunOS zelda 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-250
    compiling with g++ (2.95.2)
    purify 5.2
    I consistently get memory leaks related (apparently)
    to the pthreads lib. I've set the error reporting chain length to 30 (way big), the start of the chain in every case starts with threadstart [ libthread.so.1 ]
    when I end my process, I Join the threads before deleting them. What else can I do to get rid of these leaks?
    thanks,
    rich

    is it worth upgrading to a 64 bit OS with more ram.
    Well you're talking a fairly hefty investment in fact your best bets buying a new machine at that point since the motherboard would need to be upgraded as well as memory and OS.
    Now  I run on a 64 bit OS 12 gigs of ram, but i love my plug-ins, and most are 32 bit, so you would still be using the 32 bit Photoshop if you want the majority of all plugins for photoshop to work. Well while the 32 bit version still have the memory limitations on how much memory it can use, Because its in the 64 bit OS, you have available the full amount of that limitation available to the application.
    I can run several different memory intensive applications at one time and normally not have an issue.  I say normally cause, sometimes i will crash my graphics driver if i open one too many 3d apps hooked into the Nvidia drivers.
    I normally only reboot maybe once a week.
    So in short, would it help you to be able to go 64 bit with more ram, Most Certainly even more so if you could care less about plug-ins and want to use the 64 bit version. should you go to 16 gigs of ram.. That depends on your budget really,
    Personally I always plan to upgrade when I build my systems, Putting in the largest chips you can with out filling all the slots leaving room for upgrading if needed. that way you're not filling all your slots with cheaper lower memory ram that you would have to replace them all to upgrade.
    Hope this helps a bit

  • Solaris bit processor

    Hi ,
    can anyone tell me how to check whether it is 32 bit arch or 64 arch in solaris-10 update 5
    I gave the following command it says both as follows , not sure which one is the right one....
    -bash-3.00$ isainfo -v
    64-bit amd64 applications
    cx16 mon sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
    32-bit i386 applications
    cx16 mon sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu
    Thanks

    After installation, the code on the hard drive will have support for both 32 and 64 bit kernels. The boot loader will examine the processor and select the proper kernel.
    If desired, you can force a particular kernel via parameters in GRUB at boot time, but it's not usually necessary.
    There's nothing you have to do at install time to select one or the other.
    Darren

  • Solaris 10 x86 intallation problems

    I have an athlon based machine which was happily running XP this morning. I had previously divided the disk to use a Linux distribution on one half and XP on the other. I wanst using the Linux bit much due to graphics driver problems so I decided to replace it with a Solaris 10.
    I duly went through the installation and was told that the solaris boot loader was incomaptible with the Linux one, grub I think, so I overwrote it and proceeded with the install. During the disk layout procedure I asked it to preserve my XP partition and use the rest for solaris. I had to shrink the solaris bit beyond teh full size by 100k or so and eventually it was happy, or so I thought.
    Solaris is now duly installed and runs fine. I just need to sort out a network card driver. However my problem is that the sun boot loader sees the old XP partition as an extended dos partition (partition 3) and wont boot from it....
    WHat have I done wrong?
    Please dont tell me my XP partition is lost! Is there some tool I can use to make it bootable again? I have seen the grub bits on the GNU site. Are these any use?
    All Help gratefully recieved.

    FYI: I tried yet another version of solaris as i found out that theres a bug in the 64-bit kernel on update 4 for alot of new processors. Solaris 10 x86 update 7 did the trick! :). Installed right away on a standard 'Solaris 10 (64 bit)' VM. I still find it strange that the most recent version of solaris 10 fails to even start the installation.

  • Help with Install of Xerces-c 2.4.0 for Solaris

    After having memory leak issues with Xerces-c 2.3.0 for Solaris 2.7
    for CC 6.2 I have decided to update to at least 2.4. I have
    downloaded the binary tarball and have installed it on my development
    server, which runs Solaris 2.8. I do use CC 6.2 for my compiler. I
    have reset all the environment variables in Korn shell that point to
    the Xerces distribution.
    When I try to compile the same piece of code that compiles fine under
    Xerces 2.3 the compiler spits back the following errors compiling
    against 2.4 regarding the XSerializeEngine.hpp :
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 541: Warning: Too many arguments in macro Assert.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 541: Error: No direct declarator preceding "(".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 541: Error: Use ";" to terminate declarations.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 546: Error: Use ";" to terminate declarations.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 652: Warning: Too many arguments in macro Assert.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 657: Warning: Too many arguments in macro Assert.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 663: Warning: Too many arguments in macro Assert.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 663: Error: No direct declarator preceding "(".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 664: Error: A declaration does not specify a tag or an
    identifier.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 664: Error: Use ";" to terminate declarations.
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 664: Error: A declaration was expected instead of "{".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 665: Error: No direct declarator preceding "(".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 667: Error: "," expected instead of ")".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 670: Error: A declaration was expected instead of "}".
    "/opt/local/software/xerces/xerces-c2_4_0-solaris_27-cc_62/include/xercesc/internal/XSerializeEngine.hpp",
    line 702: Error: A declaration was expected instead of "}".
    11 Error(s) and 4 Warning(s) detected.
    gnu_make: *** [SchedUpdateSubscriber] Error 11
    Any ideas on what I am doing wrong?
    Thanks in advance.

    I've always compiled xerces from the source code. Have used 2.4.0 and 2.5.0 this way with Sun One Studio 8 without any issues.
    If you want to try compiling, I'd recommend going with the later release (more compiler tweaks and fixes) and the following build commands:-
    % cd xerces-c-src_2_5_0
    % export XERCESCROOT=`pwd`
    % cd src/xercesc
    % runConfigure -r pthread -p solaris
    % export CXXFLAGS="-library=stlport4" - skip this line if you're not using stlport
    % ./configure
    % gmake
    Hope that helps!

  • Compiling problem semaphore & pthread

    I'm try to compile an application that include <semaphore.h> and <pthread.h>, when compile that program, the compiler returns...
    Error: sem_t is not defined.
    Error: Type name expected instead of "sem_t".
    Error: The function "sem_init" must have a prototype.
    arning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const pthreadattr*, extern "C" void*(*)(void*), void*) is being passed void*(*)(void*).
    Error: The function "pipe" must have a prototype.
    Error: The function "pthread_kill" must have a prototype.
    Error: The function "sem_wait" must have a prototype.
    Error: The function "sleep" must have a prototype.
    to compile I use the options -compat=5 -lrt -lpthread, any tip to solve this problem...

    I'm using forte C++ 6U1, this is what CC -V returns: CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11, and define -Ddrem=remainder -DS_SUNOS5, should I define something else...
    that prototypes is what the compiler finds in /usr/include/pthread.h(solaris 8), in fact this is the prototype..
    extern int pthread_create(pthread_t *, const pthread_attr_t *,
                        void * (*)(void *), void *);
    I was trying to compile an application that uses semaphores, threads and others things, I don't know the exact configuration of the system where the application was actually developed and compiled, I even have the makefile used to compile the app, when I get that trouble, I look for a simple code that use that things and try to compile that and I get the same thing, so I assume this should be something about the compiler, the app is a C++ application, the simple code was a C code that compiles fine with cc, but crash with CC, I thing this is because C++ has a strictest grammatic than C about prototyping in compilation and linking time...

  • WVC210 accessories, wall mount, enclosures?

    I am looking to adapt the WVC210 to a chicken-cam situation and am interested in anyone's experience with either purchased or DIY outdoor enclosures for the WVC210 as well as any unique mounting solutions?
    my plan is to also use a 15W solar array with small battery to self-power the camera so that it will be completely self-contained and maintenance-free.
    i should be able to do the solar bit for under $200 in materials, i've looked at outdoor camera enclosures and the commercial ones seem to be very expensive so i am thinking of modifying an all-weather electrical junction box to serve as the camera enclosure if i can find one that'll fit - use the power transformer to provide a bit of heat for the camera and maybe a few packets of silica gel to control minor moisture build-up.
    anyone with any insight or experiences, i would be very interested in your viewpoint/analysis.
    thanks!
    rawlus 

    That's an impressive and innovative setup.  Thanks for the post and the pictures.
    We're looking at doing something similar in some of our classrooms so they can do a point-to-point video conference.  We've got some Logitech C910 camera's we're looking to use and some 50 inch plus flat panels.  We'll likely be using a wireless mic, but I'll post more on the details when we have some tests under our belt.
    Cheers!

  • Can't access Solaris 10 after install Essbase 11.1.1.3 32/64-bit clients

    We try to install Oracle Essbase 11.1.1.3 Client 11.1.1.3 32 and 64 bit in separated folders on Sun Solaris 10.
    Installation performed by root.
    1.
    32-bit Essbase 11.1.1.3 Client was installed and cofigured in ../ESS11113_32 folder with Oracle installer without
    problem.
    2.
    We tried to install the 64-bit Essbase 11.1.1.3 Client in separate ../ESS11113_64 folder by running command
    # installTool.sh -console
    3.
    After that, we got the problem on Solaris 10 system after 64-bit Essbase 11.1.1.3 Client installation which didn't succeed.
    We can't access the server with any user id (except root).
    The following is from /var/adm/messages,
    Error : Aug 21 14:53:46 renata telnetd[27562]: [ID 176939 daemon.error] libpkcs11: /usr/lib/security/pkcs11_kernel.so unexpected failure
    in ELF signature verification. System may have been tampered with. See
    cryptoadm(1M). Skipping this plug-in.Aug 21 14:53:47 renata telnetd[27562]: [ID
    234283 daemon.error] libpkcs11: /usr/lib/security/pkcs11_softtoken.so
    unexpected failure in ELF signature verification.
    So, please tell us is there anyway to fix this issue asap?
    Thanks,
    Vic

    Thanks john for your reply.
    Below are my questions which are still not clear to me. We are using only SAN Pillar Storage for DB servers and Local Hard disks for all Application servers. So said this App Servers cant access SAN storage all they have is local hard disk for each app server.
    1. For Essbase Server can i use SAN shared file system from pillar storage for ARBORPATH only for Active-Passive setup.
    2. For Applications can i use the local hard disk space as shared between two systems for HA (Active-Active).

  • Error in installation of 64 bit 11g client on solaris sparc64 bit

    hi,
    i am getting below error while installing the 11g 64 bit client on solaris sparc 64 bit machine.
    following error is occurred while installing 64 bit oracle 11.2 client on Solaris 64-bit sparcv9 OS:
    Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile
    kindly assist.
    Thanks,
    -Shubhen

    user12052679 wrote:
    hi,
    i am getting below error while installing the 11g 64 bit client on solaris sparc 64 bit machine.
    following error is occurred while installing 64 bit oracle 11.2 client on Solaris 64-bit sparcv9 OS:
    Pl read the Install Guide to ensure you meet all of the pre-installation requirements - http://docs.oracle.com/cd/E11882_01/install.112/e24347/pre_install.htm#CIHFICFD
    Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile
    kindly assist.
    Thanks,
    -ShubhenHTH
    Srini

  • Oracle 10g installation in an SPARC 64 bit Solaris 10 server

    Good morning,
    I'm trying to install Oracle 10g Enterprise Edition in a server with Solaris 10 as operating system. When I run the oui, the prerequisites part is passed but the installation gives me an error telling that the installer can't write in the /tmp directory. Nevertheless, I have writing grants and space enough in that directory, in fact the installer writes the installAction.log in this directory. So I don't understand which can be the problem?
    Any suggestions?
    Thanks in advance.
    Regards,
    Mabel

    It could be you don't have enough free space on the tmp dir.
    Check this point from the
    Oracle® Database Installation Guide. 10g Release 2 (10.2) for Solaris Operating System (SPARC 64-Bit). Part Number B15690-02
    If you determined that the /tmp directory has less than 400 MB of free disk space, then identify a file system with at least 400 MB of free space and set the TMP and TMPDIR environment variables to specify a temporary directory on this file system:
    1. Use the df -k command to identify a suitable file system with sufficient free space.
    2. If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory:
    $ su - root
    # mkdir /mount_point/tmp
    # chmod a+wr /mount_point/tmp
    # exit
    3. Enter commands similar to the following to set the TMP and TMPDIR environment variables:
    Bourne, Bash, or Korn shell:
    $ TMP=/mount_point/tmp
    $ TMPDIR=/mount_point/tmp
    $ export TMP TMPDIR
    C shell:
    % setenv TMP /mount_point/tmp
    % setenv TMPDIR /mount_point/tmp
    ~ Madrid.

  • Compatible HP laser jet printer for EBS 12.0.6 on Solaris 10 SPARC 64 bit

    Hi,
    We have our EBS 12.0.6 on Sun Solaris SPARC 64 bit. There are few hp printer (hp laserjet p2015dn) configured with our application and they are working fine.
    Now we have to add one more printer but ( hp laserjet p2015dn) is not available now.
    So please suggest the hp laserjet printer available for Solaris 10 Sparc 64 bit.
    Thanks,
    Sharad

    We have our EBS 12.0.6 on Sun Solaris SPARC 64 bit. There are few hp printer (hp laserjet p2015dn) configured with our application and they are working fine.
    Now we have to add one more printer but ( hp laserjet p2015dn) is not available now.
    So please suggest the hp laserjet printer available for Solaris 10 Sparc 64 bit.You already have the same type of printer configured and it is working properly, so I would say it is supported.
    What is the difference between the two printers configuration?
    Can you print from the OS to the new printer?
    What do you mean by "not available now"?
    Thanks,
    Hussein

  • Install - Oracle 9i 64 bit on Solaris 9 32 bit

    Hi Team,
    Is it possible to install Oracle 9i 64 bit version on Solaris 9 32 bit OS?
    Thanks in advance.
    Regards
    M.Saravanan

    Hi.
    This is the same question as "Is it possible copy 20GB of data to 10GB hard disk?".
    Of course it is not possible.

  • Install newest JRE on Solaris 9 Sparc (64-bit)

    Note: This message has also been posted on the JRE forum. This is the second attempt to post it here.
    I would like to know the best method to replace the JRE that is installed with a Solaris 9 (SPARC) installation. A clean installation of Solaris 9 comes with JRE 1.4 and I would prefer 1.4.1 (64-bit) or newer. Sun provides self-extracting archive downloads of the latest JREs for Solaris, but I have been unsuccessful in using these. I followed the instructions at:
    http://java.sun.com/j2se/1.4.2/install-solaris.html
    for doing a self-extracting installation, but this does not replace the contents of /usr/j2se with the new JRE. Additionally a pkginfo still points to the old JRE. I also read the instructions at:
    http://java.sun.com/j2se/1.4.2/install-solaris-64.html
    which stated I should install the 32-bit version, and then the 64-bit version. Finally, both set of instructions mention installation from packages, yet I am unable to find the packages to download. What is the best method to remove the JRE from a Solaris installation and install a newer version of the JRE so the pkginfo is updated and the new JRE resides in /usr/j2se? Any assistance is appreciated.

    I found by issue "mount -v" that our disk slices are
    UFS type. So we don't need apply patch 5257399,
    right? Please confirm. Thanks!!!For your information, you are asking the user community to confirm, not Oracle. Some (many?) of us are not employed by Oracle.
    Therefore, the only answers you can get are from 'friends'. Nothing would be official and Oracle (and Oracle Support) would not be legally responsible.
    Your safest bet would be to escalate the request wityh Oracle Support.

  • Can't download Oracle 8.1.7 Enterprise Edition for Solaris 32 bit??

    I can't download Oracle 8.1.7 Enterprise Edition for Solaris 32 bit. After filling out the form with the questions...I click on the actual link, but the box never pops up. The status bar on my Internet Explorer slowly increases, but never allows me to download. It just hangs. I have tried multiple times, and I can download other verions from your site...and have many times in the past. Could you please fix this. Thanks.

    I've looked at it and it seems fine. It might have been a temporary glitch - let us know if you continue to have trouble.
    OTN

  • Tuxedo 8.0 32-bit on Solaris 8 64-bit ( boot-mode)

    Hi:
    i have questions :
    I have Tuxedo 8.0 32-bit product, i'll need run on solaris 8
    ( 64-bit boot-mode ) .
    Is there Problems wiht that???
    My hardware is :
    Sun Microsystems sun4u
    Sun Enterprise 420R (2 X UltraSPARC-II 450MHz)
    System clock frequency: 113 MHz
    Memory size: 2048 Megabytes
    ========================= CPUs =========================
    Run Ecache CPU CPU
    Brd CPU Module MHz MB Impl. Mask
    0 1 1 450 4.0 US-II 10.0
    0 2 2 450 4.0 US-II 10.0
    mymachine#isainfo -v
    64-bit sparcv9 applications
    32-bit sparc applications
    thanks ...
    Alex ...

    Hi Anthony :
    Do you know something about performace between
    Tuxedo 32-bit and Tuxedo 64-bit ?
    Thanks ...
    Alex ...
    Do you working in Bea or other Enterprise ??
    "Anthony Fryer" <[email protected]> wrote:
    >
    Hi Alex, we are also using tuxedo 32-bit on Solaris 64-bit operating
    system. There
    is no problem doing this as your solaris version supports both 32 bit
    and 64 bit
    programs. The things to watch out for are when you are building a tuxedo
    application,
    you have to make sure that all the libraries you link with are also 32
    bit libraries,
    including oracle. We ran into build problems when some libraries were
    32 bit
    and others were 64 bit.
    There's good information about 32bit v 64bit on solaris at the following
    web site...
    http://docs.sun.com/?p=/doc/806-6543/6jffrdmee&a=view
    I personally would use 64bit if possible, but it's no big deal to build
    32 bit
    applications because my tuxedo application does not need a 64bit address
    space
    and is not computationally heavy. Most of the CPU takes place in the
    database,
    which in our case is Oracle, and which happens to be 64bit anyway. So
    it's not
    a bad thing to build a 32 bit tuxedo application that runs on a 64 bit
    operating
    system, for most types of tuxedo applications.
    "alex fuentes" <[email protected]> wrote:
    Hi again :
    you link show that :
    Sun Solaris 8 tuxedo v8.0 Native 64-bit version - SPARC
    Sun Solaris 8 SPARC X *(using 2.7 32-bit binaries)
    32-bit on 64-bit OS supported
    Then Tuxedo 8.0 32.bit ruuning on Solaris 8 64-bit. OK
    there is support from Bea . Is that is correct ???
    I'll need used Tuxedo 64-bit ,you could benefit in performance.
    Thanks Thanks ...
    Alex ..
    Scott Orshan <[email protected]> wrote:
    If the platform list shows that a 32-bit build is certified on a 64bit
    OS, then you can run it there.
    If you want an actual 64 bit build, it is because you want the big
    address space, longer longs in FML, and everything else you get from
    64
    bits.
    If you want to have an application span Solaris and Digital UNIX, which
    is always 64 bit, you might want both to be 64 bits so that you do
    not
    lose any data in the conversion.
    On HP, you can't link 32-bit Tuxedo with another product that is 64-bit
    (Oracle for example). You might need a 64 bit Tuxedo in order to work
    with other products.
         Scott Orshan
    alex fuentes wrote:
    HI :
    I have Tuxedo 8.0 32-bit for solaris, my questions is :
    Is there problems whith Tuxedo 8.0 32-bit running on Solaris 8 alsorunning 64-bit
    ( boot-mode )?
    there is a Tuxedo 8.0 64-bit Why ??
    Which different between Tuxedo 8.0 32-bit and 64-bit ??
    Thanks ....
    Alex ..

Maybe you are looking for

  • I have to tell the world . . .

    THIS POST WAS ACTUALLY TAKEN FROM MY BLOG. <Edited by Moderator> "I have something to tell you." That was the phrase I uttered to my wonderful husband, when I got home from work the other day. But, before I tell you why, let me back up. You see, for

  • Difference in File Adapter Read File as attachment and Use File streaming

    Hi all, As part of our POC we created a File adapter using the option Read file as attachment and File streaming we observed below things 1.When we are taking "Attachment" option in file adapter, Its able to archive, but not supporting to write data

  • Problem in passing xstring data from abap to webservice method.

    Hi, I want to upload the document from ABAP to Microsoft SharePoint. So for that i have created the webservice in .net for uploading the document in SharePoint. Now in Abap i have consumed this service by creating proxy class. The web service has one

  • Usage

    Hiya all, Just checked my usage and it's nearly 200Gb just goes to show how much you use with an ipad2 + galaxy tab I'm on option2 so it's not a problem but it just go to show how fast your usage goes up when using these items. Before I had either of

  • Not able to access local path for script file

    Hi All, I am integration my application (built in Asp.Net/Vb.Net) with InDesign Server CS4. InDesignServer is installed on separte machine other than the machine on which application is running. All of the scripts and indd files are placed on the mac