Gcc problems on Solaris 10 X86

I'm using Solaris 10 x86 and gcc from /usr/sfw/bin and have come across a couple of problems:
which gcc
/usr/sfw/bin/gcc
gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure prefix=/usr/sfw with-as=/usr/sfw/bin/gas with-gnu-as with-ld=/usr/ccs/bin/ld without-gnu-ld enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Problem 1
cat ll.cc
#include <signal.h>
int CS;
gcc -c ll.cc
ll.cc:2: error: expected unqualified-id before numeric constant
ll.cc:2: error: expected `,' or `;' before numeric constant
CS is defined in the file /usr/include/sys/regset.h as:
#define CS 15
I've changed the code to use MYCS instead and this gets around the problem. Does anyone have a more elegant solution to the problem?
Problem 2
In a g++ compilation I have a file that includes cpp_type_traits.h.
The compilation fails with:
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/cpp_type_traits.h:69: error: expected unqualified-id before "namespace"
The relevant line in cpp_type_traits.h is:
namespace __gnu_internal
Knowing rather little about g++ I've been Googling for an hour but not found anyone else with the same problem.
Many Thanks
Andy

I'm not fully sure what might cause your problems since I'm not a programmer myself. However, I do wonder if the gcc version located in /opt/sfw/bin may do you some good. When all other options fair I'd recommend getting the Studio 11 package and just use the cc compiler provided by Sun themselves. Its free anyway.

Similar Messages

  • Installation problem sun solaris 9 x86 on intel

    I am trying to install sun solaris 9 x86 intel platform edition on my home pc hp e-vectra, configuration is PIII 800 Mhz, 10 GB HDD, 128 MB Ram, 17" color monitor, but it giving me following error :-
    BooT Panic: trap type e, error 0 at 117499
    Cr0: 800000011, cr1: 4, cr3: 17e000
    Eax: 0, ebx: 7e2c, ecx: 0 edx: 16e350
    Es: fffffffe, edi: 17dfe0, ebp: 7e40, esp: 7e20
    Entering boot debugger:
    Please help me, how can I install sun solaris 9 x86 on my HP E-Vectra PC.
    Kalpesh Mehta

    I had similar problems several months ago. I suspect this happens when host pc does not have floppy drive(or bios somehow misreports it) as it was in my case. Solaris 8 seems to work fine in the same environment, so I keep using it for now. Possible workaround might be to use DCA from Solaris 8: Installation of Sol9 started just fine after I entered Sol8 DCA and asked it to boot from Sol9 CD.
    Hope this problem will be fixed in subsequent Sol9 releases.
    Victor

  • Several mysterious problems with Solaris 11 x86 install

    Hi folks,
    I've recently installed Solaris 11 x86 as a replacement for Solaris 9 SPARC on an Ultra 2 machine. I like the operating system, but I've promptly acquired some mysterious problems. The computer is a Fujitsu Siemens Esprimo E2500 with a Pentium 4 HT 3.06 GHz processor, 2 GB RAM, an 80 GB SATA disk and a 147 GB SCSI disk.
    I have had a few occasions on which the screen goes totally blank, the monitor claims that there is no signal, and I have to restart the machine. However, with the blank screen, the hard drive activity light is sometimes still flashing. This happens predictably when I try to log off (as opposed to shutting down) and when I use Totem media player and click on anything inside the Totem window. The motherboard has built-in graphics and brief specifications can be found here:
    http://uk.ts.fujitsu.com/rl/servicesupport/techsupport/professionalpc/ESPRIMO/Datasheets/ds_esprimo_edition_e2500.pdf
    Yesterday my PS/2 keyboard started causing the motherboard to beep crazily when I use it. It beeps rapidly 4 times, then prints the expected character. However, the problem doesn't occur at the initial log in screen. The mouse cursor has also gone beserk on one occasion, flying all over the screen (I had this problem with a previous PC, but a different OS, and thought it was a hardware fault, which I why I got this new computer). With the keyboard problem, the machine is basically unusable. However, it is configured as a dual boot machine, and the keyboard problem isn't present with Windows XP.
    There are also a few smaller, odd problems. Occasionally all the icons vanish from my Gnome desktop. The command prompt also mysteriously changed from $chris@pluto to $bash-4.1 just before the keyboard problem appeared, although that might have had something to do with me copying my home directory to a different disk and editing the /etc/auto_home file (moving the home directory worked fine). Also, unlike with Solaris 9 SPARC, I find that I have to have external SCSI devices switched on at boot time, should I want to use them later. That's a pain. With Solaris 9, I could run "boot -r" when I first attached the device, then switch on the SCSI devices and mount them whenever I wanted.
    After the useful advice I received here about "more" and "less", I thought I'd post these problems and see if anyone can help. I'd really appreciate some advice. Can anyone identify likely causes for these problems? Which problems can I expect to solve and which do I have to live with?
    Many thanks,
    Chris Tidy
    Edited by: Chris Tidy on 23-Mar-2012 03:36

    Hi folks,
    I've recently installed Solaris 11 x86 as a replacement for Solaris 9 SPARC on an Ultra 2 machine. I like the operating system, but I've promptly acquired some mysterious problems. The computer is a Fujitsu Siemens Esprimo E2500 with a Pentium 4 HT 3.06 GHz processor, 2 GB RAM, an 80 GB SATA disk and a 147 GB SCSI disk.
    I have had a few occasions on which the screen goes totally blank, the monitor claims that there is no signal, and I have to restart the machine. However, with the blank screen, the hard drive activity light is sometimes still flashing. This happens predictably when I try to log off (as opposed to shutting down) and when I use Totem media player and click on anything inside the Totem window. The motherboard has built-in graphics and brief specifications can be found here:
    http://uk.ts.fujitsu.com/rl/servicesupport/techsupport/professionalpc/ESPRIMO/Datasheets/ds_esprimo_edition_e2500.pdf
    Yesterday my PS/2 keyboard started causing the motherboard to beep crazily when I use it. It beeps rapidly 4 times, then prints the expected character. However, the problem doesn't occur at the initial log in screen. The mouse cursor has also gone beserk on one occasion, flying all over the screen (I had this problem with a previous PC, but a different OS, and thought it was a hardware fault, which I why I got this new computer). With the keyboard problem, the machine is basically unusable. However, it is configured as a dual boot machine, and the keyboard problem isn't present with Windows XP.
    There are also a few smaller, odd problems. Occasionally all the icons vanish from my Gnome desktop. The command prompt also mysteriously changed from $chris@pluto to $bash-4.1 just before the keyboard problem appeared, although that might have had something to do with me copying my home directory to a different disk and editing the /etc/auto_home file (moving the home directory worked fine). Also, unlike with Solaris 9 SPARC, I find that I have to have external SCSI devices switched on at boot time, should I want to use them later. That's a pain. With Solaris 9, I could run "boot -r" when I first attached the device, then switch on the SCSI devices and mount them whenever I wanted.
    After the useful advice I received here about "more" and "less", I thought I'd post these problems and see if anyone can help. I'd really appreciate some advice. Can anyone identify likely causes for these problems? Which problems can I expect to solve and which do I have to live with?
    Many thanks,
    Chris Tidy
    Edited by: Chris Tidy on 23-Mar-2012 03:36

  • "/network/physical:default" problem in Solaris 10 x86

    I have a problem with network interface on Solaris 10 x86 on HP Proliant ML 370 G4 server.
    The problem is that at the boot time it report some problem with network interface and writes "see svcs -x"
    # svcs -x
    svc:/network/physical:default (physical network interfaces)
    State: maintenance since Mon 21 Mar 2005 09:55:39
    Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
    See: http://sun.com/msg/SMF-8000-KS
    See: ifconfig(1M)
    See: /etc/svc/volatile/network-physical:default.log
    Impact: 5 dependent services are not running. (Use -v for list.)
    svc:/application/print/server:default (LP print server)
    State: disabled since Mon 21 Mar 2005 09:55:38
    Reason: Disabled by an administrator.
    See: http://sun.com/msg/SMF-8000-05
    See: lpsched(1M)
    Impact: 2 dependent services are not running. (Use -v for list.)
    svcs -v shows that /network/physical:default need maintance
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
         inet 127.0.0.1 netmask ff000000
    # svcs -xv /network/physical:default
    svc:/network/physical:default (physical network interfaces)
    State: maintenance since Mon 21 Mar 2005 09:55:39
    Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
    See: http://sun.com/msg/SMF-8000-KS
    See: man -M /usr/share/man -s 1M ifconfig
    See: /etc/svc/volatile/network-physical:default.log
    Impact: 5 dependent services are not running:
    svc:/milestone/network:default
    svc:/network/nfs/nlockmgr:default
    svc:/network/nfs/client:default
    svc:/network/nfs/status:default
    svc:/network/ssh:default
    # more /etc/svc/volatile/network-physical:default.log
    [ Mar 21 09:55:37 Enabled. ]
    [ Mar 21 09:55:38 Executing start method ("/lib/svc/method/net-physical") ]
    [ Mar 21 09:55:38 Timeout override by svc.startd.  Using infinite timeout ]
    ifconfig: plumb: eri0: No such file or directory
    moving addresses from failed IPv4 interfaces: eri0 (couldn't move, no alternative interface).
    [ Mar 21 09:55:39 Method "start" exited with status 96 ]
    I have not any eri device in /dev directory
    How can I add a network interface?

    Try elxl0 :-) This is: E L X L - zero :-) instead of: qfe0.
    PS The 0 can increase to 1,2,.. if you have more 3com cards in the system.

  • PCI I/O Port, IRQ, DMA problem in  Solaris 9 x86

    H, I am writing a PCI RADI card driver. I have a problem about the PCI resource.
    After Solaris system call my driver's attach routine, and my driver map the PCI resource
    (I/O port, DMA, PCI) success. How do I to verify that the mapping is correct?
    Is there any superuser command to show the mapping resource?
    Or I can write code to display these resource in my driver?
    Do anyone have sample code?
    Regards,
    Roger

    Your update_drv command looks ok.
    AFAIR, update_drv was a new feature for one of the S9 update
    releases. I'm not sure if it was present in the first S9 release, and if
    it supports all of the update_drv features from S10.
    Maybe the S9-x86 patch 118462-01 helps.
    If it still doesn't work with that patch applied, just add the new
    driver binding to the /etc/driver_aliases file and reboot:
    skge "pci1558,700"

  • Problem Install Solaris 10 x86 on HP Workstation.

    Hi,
    I got problem of installation Solaris 10 on HP Workstation,
    Hardware:
    Dual pentium III 1000MHz, 2GB Memory, Adaptec 39160 SCSI Controller, Seagate U320 15K 18GB Hardrive.
    Machine boot up from Solaris 10 DVD, after Configuration Device .. I got these message repeated four times:
    WARNING: Timeout on target 0 lun 0. Initiating recovery.
    WARNING: Timeout on target 0 lun 0. Initiating recovery.
    WARNING: Timeout on target 6 lun 0. Initiating recovery.
    WARNING: Timeout on target 6 lun 0. Initiating recovery.
    when i countinue install, Harddrive will be not found. Please help me.
    Thanks

    There is a fair amout of discussion regarding this controller on opensolaris.
    http://www.opensolaris.org/jive/message.jspa?messageID=80358.
    However I am not sure this should cause your drive to be not recognized.
    Could you try opensolaris version ?
    -Sanjay

  • 3-Com NIC Card Networking Problems on Solaris 10 (x86)

    Hi,
    I have Solaris 10 OS installed on a PC. I am having trouble getting my machine to ping other machines on the same network. I have executed the following commands:
    #ifconfig elxl0 plumb
    #ifconfig elxl0 192.168.100.181 netmask 255.255.255.0 up
    When I try to ping another machine on the same lan, I don't get a response. I have even did a the sysconfig command and reconfigured my networking and it still does not work. I have tried different network cable as well. I have looked in the master file. I see the driver for my NIC, so I know it is supported by Solaris 10. Can anyone help me?

    Here is some more info on my problem and a couple of things I have tried to do to resolve the issue :
    I executed the command "prtconf-pv". I found information on my NIC Card, which is a 3-Com 3C905B-TX Etherlink XL 10/100. I found my vendor id - 10b7 and my device id - 9055. I then checked "driver_aliases" file to see if I could find an entry in this file and I did see my vendor id and device id. I would then conclude that Solaris knows my PCI vendor/device-id combination and maps them to elxl driver.
    I have also tried a different cable that i know works and still nothing.
    I also found from research in Sol. 10 that there is file in addition to hosts, hostname.elxl0, defaultrouter that has to be modifed. That file is ipnodes. I checked the file, and my ip address / hostname is noted in the file. Is it possible I have a bad NIC? I thought about swapping it out for another one that I know works, but it is an onboard NIC. Well, if anyone has and additional info, I would greatly appreciate it.

  • NIC problems on Solaris 10 X86

    This has probably been asked/answered before but I couldn't locate it. My X86 install finally went through but I can't see weither (of 2) NIC cards, one is a D-link DFE-530 TX + and I have added the driver_alias commands but still can't see anything but localhost from ifconfig -a, any help would be appreciated...been up for 24 hours now.

    There have been at least two different cards from Dlink, with similar model names.
    There is the discontinued DFE-530TX and there is a current DFE-530TX+ model.
    You may need to take the card out and confirm the actual model.
    While you do that, examine the card and find its actual ethernet chipset.
    If I recall corectly, the older card uses the DEC21140 family chip, which works natively in Solaris(x86) 7, 8, 9, and 10.
    Dlink's website suggests the TX+ card uses the Realtek RTL8139 chipset,
    and Dlink has a Unix driver package available for download for that 'plus' card,
    although it is bundled inside their Windows-formatted self-extracting driver file for some ungodly reason.
    So ... if you have the older card, it should just work.
    And ... If you have the newer card, then you may as well get the drivers straight from RealTek.

  • Solaris 9 x86 platform update 4 8/03 can not start Management Console

    smc& but cannot start management console 2.1
    no problem on solaris 8 x86 platform.
    Error as below :
    I cannot start the Solaris Management Console in Solaris 9. The splash screen appears for a few seconds, then nothing else, core dumped.
    There is a error: "Assertion Fail: Offset < fFileSize ............../../../src....
    Any ideas ??????

    Java Bug 4838130:
    http://developer.java.sun.com/developer/bugParade/bugs/4838130.html
    suggests to trace the problem by running the java application with JAVA2D_DEBUGFONTS defined, so try
    env JAVA2D_DEBUGFONTS=1 smc
    The bug report also documents a workaround: Set the environment variable JAVA_FONTS to
    /usr/openwin/lib/X11/fonts/TrueType, i.e.
    env JAVA_FONTS=/usr/openwin/lib/X11/fonts/TrueType smc

  • Bad PBR Sig - Solaris 10 x86 06/06

    Hello all,
    I have seen this error over and over... "Bad PBR Sig" and I have yet to find a way to fix it.
    I am installing Solaris 10 on a brand new disk. When the installation asks me, I tell it to use the whole disk for Solaris. Call me crazy, but I would expect this to also configure the disk to be bootable. The installation proceeds without problem and then when it reboots, I get the error.
    I have searched Sunsolve, Google and everywhere else I could think to look, but I cannot find an answer on how to fix it. I see lots of guesses as to why the problem shows up, but no step-by-step's on how to fix it.
    My system is a basic Dell, P4 2Ghz, 512MB RAM, single 40GB HDD and a DVD-ROM drive. Nothing special here. No multi-booting, only one drive... just a simple, basic PC.
    Windows installs fine, so I know it isnt the disk.
    I understand that for some reason Solaris cant make a disk bootable during installation... which baffles me. Sometimes it seems to be able to and other times it cant. It just doesnt make sense to me how Windows can boot from any disk you give it, but Solaris has a fit.
    Anyway, is there anyone out there who can help me make a disk bootable for Solaris 10 after its been installed? I am relatively new to this and it is most frustrating when something as simple as booting the OS that was just installed is do difficult.
    Thanks in advance to anyone who can help or point me to where I can find help.

    I had the same problem in Solaris 10 X86 Update 8 (10/09). After reading this thread, it made me wonder "Why would the GUI install work, and a Custom JumpStart not?" Well, I looked at the way I was specifying the partition table in the jumpstart client profile, and found that when you use "partitioning explicit" I run into this problem. BUT! When I use "partitioning default" all works just fine.
    So, rather than doing something like this:
    partitioning explicit
    filesys rootdisk.s0 32768 /
    filesys rootdisk.s1 8192 swap
    filesys rootdisk.s2 all overlap
    filesys rootdisk.s3 free /var
    I changed to doing this:
    partitioning default
    filesys any 32768 /
    filesys any 8192 swap
    filesys any free /var
    So, whatever the suninstaller does differently using the second specification avoids the bug.
    Also, I did verify, the "Bad PBR sig" error only comes up if installing onto a freshly installed disk, or in my case, a fresly created RAID set. (We have the X4150s with the StorageTek RAID controller.) Just for fun I re-jumpstarted a second time using the "partitioning explicit" method above, and the system booted just fine. So whatever the suninstaller does the first time around (when using "partitioning default") sticks. That's probably why this bug hasn't been caught in testing. Most (or many??) systems from Sun come pre-installed, and unless you re-configure your RAID volumes, you won't run into this problem.

  • Solaris 8 x86 w/ Seagate 410800N Drive - Size Detection Problem

    I have a Dual PII-300Mhz computer w/ 786MB memory and a 4.5GB Wide Scsi (Seagate) and an 8.1GB Narrow Scsi (Seagate - 410800N) configuration.
    I have installed Solaris 8 x86 and applied the "recommended patches". The system is working great EXCEPT for when I attempt to format the ST410800N hard drive.
    The # of cylinders is suppose to be 4925, heads 27, sectors per track 133, etc...
    Solaris is detecting only ~467 cylinders and 26 heads. I've tried to change the "TYPE" to one that I created and it seems to work for a few menu selections, but then when I try to partition the drive, it shows only ~467-470 cylinders. It shows 9 slices and only allows me modify up to #7. The SCSI ID for the drive is 4, which I'm not sure if this is something that Solaris is reserving for a Tape drive. I can change it to 1 or 2.
    Any advice would be greatly appreciated. I am new to using Solaris, but I'm enjoying it alot. I just would like to get this drive partitioned so that I can move "home" and to install Oracle 8.x
    Thanks,
    George

    Thanks for all of the helpful responses. I figured out the problem.

  • Solars 10 x86 1/06 install problem - empty bootloader

    Hi,
    I'm trying to install 1/06 on a noname AMD X2, on a SATA disk. Had the previous version installed without problems, but 1/06 wouldn't show any options in GRUB. After booting from DVD, GRUB shows me the version number, no options to choose from, and the GRUB prompt. Tried on different machines the same on all.
    Any help would really be appreciated.
    cheers
    cray

    Looks like Solaris 10 x86 1/06 GA has got an issue with GRUB. I've downloaded Solaris Express (nv-b27a) CD-isos, now GRUB & the installation are working fine. Just wondering if I was the only one having this issue (as I've tested it on 3 different machines and on VPC it most likely wasn't a HW-issue).
    Cheers
    cray

  • Solaris 10 x86 64-bit wireless connection problem

    I installed Solaris 10 x86 32-bit on my laptop together with Fedora 10 (Linux) and Windows XP.
    When I boot up Fedora 10 and WinXP, these two OS are able to find the wireless driver automatically, but Solaris 10 failed.
    When I do prtconf -pv, I saw my wireless card is listed in the output.
    So I update the /boot/solaris/devicedb/master and /etc/driver_aliases with my wireless card id - pci168c,001a
    Then do sys-unconfig and reboot
    But after reboot, Solaris still only tries to configure the ethernet card (NIC) rather than checking out the wireless connection.
    I think this might be a design flaw for Solaris 10. If it runs on x86, most users would have wireless connection, not just land line connection.
    Does anyone here have a solution for this problem?
    Thanks a lot!

    I assume that when solaris 10 boots up, it only checks the land line NIC card, not the wireless card. If there is no lan connection, then so be it.
    Is that right?No! :-)
    nwam only supports one device but the device is selectable. physical should activate all devices regardless. So if your Wifi isn't working then I would use wificonfig to see what it can see. Check the man page for scan and showstatus options. Then you'll know what it's seeing.
    alan

  • Fresh solaris 10 x86 install patch update problems 119060-17 ...

    Just yesterday, i installed a fresh Solaris 10 x86 onto some pc hardware. After getting solaris installed and issues with my network card, i downloaded and installed the free version of the update manager 1.0.x. Next, i proceeded to update all the general patches for the solaris 10 system. I started with the command 'pprosvc -i' from a terminal. It then proceeded to download and validate a bunch of patches successfully until it hit the following 3 patches:
    119060-17 ---- X11 6.6.2_x86: Xsun patch
    122213-10 ---- GNOME 2.6.0_x86: GNOME Desktop Patch
    122912-02 ---- SunOS 5.10_x86: Apache 1.3 Patch
    All 3 failed some kind of validation and then crashed the pprosvc program, at which point it exited with the following error:
    122912-02 cannot be validated
    119060-17 cannot be validated
    122912-02 cannot be validated
    Unexpected Failure: java.lang.Throwable: ERROR: Failed to validate the digital signature(s).
    I also tried to use the GUI Update Manager to update, hoping the problem was isolated to pprosvc, but that problem was also in the GUI with a similar error message:
    Error occurred...The detailed error message is: Unexpected Failure: java.lang.Throwable: ERROR: Failed to validate the digitial signature(s)
    Anyone know why Sun's update patch process is so troublesome?
    Getting Tired of Solaris Updates...
    I should mention that this is the free solaris 10 x86 install and i don't have a service contract with Sun. If this problem persists, i don't think i'll get one, as i see only further problems after buying one.
    tired and confused

    Hi,
    There is an issue with this that is currently being investigated. There is another thread that may shed some light on what is happening here;
    http://forum.sun.com/jive/forum.jspa?forumID=316
    Thread title is : Sun UC, Digitally Signed Patches Using New Verisign Certificates
    In the short-term please ensure that the patch mentioned in it is installed.
    To quote part of mentioned thread above:
    "Once the Sun Update Connection client software is upgraded with patch 121118-06 (SPARC) or 121119-06 (x86/x64) or later revisions normal behavior will resume. "
    If this fails to resolve your problem, would you be kind enough to post the output of the following command for analysis please;
    # showrev -p | egrep -e '121454|121119|120336|121082|121564|122232|119789'
    Sincerely,
    Moderator.
    Message was edited by:
    ForumModerator

  • StarOffice 8 U6 (Solaris 10 x86) problem upgrading to U7

    hello all,
    i have problem installing the new StarOffice 8 U7 patch (120186-11) on Solaris 10 x86 3/05. my current installation of StarOffice 8 is patched up to U6 (120186-10) and has the "ARCH patch to enable install of >= Update 6" patch 126411-01 installed.
    the errors that i get from patchadd are:
    Architecture for package SUNWstaroffice-core01 from directory SUNWstaroffice-core01.i in patch 120186-11 differs from the package installed on the system.
    <snipped other output>
    0 Patch 120186-11 is declared as incompatible by 122365-01, which has already been installed on the system.
    any help will be appreciated.
    greetings,
    Stoyan

    hello all,
    finally found the solution for this problem. thanks to Willi Burmeister who posted a simiral question and a summary to the sunmanagers mailing list:
    this was triggered by bug 6404527. It's a missing blank in the pkginfo file of nearly all
    staroffice packages.
    here is a quick workaround:
    # cd /var/sadm/pkg
    # grep -l ": R" */pkginfo | xargs perl -pi'.bak' -e 's/: R/: R/'i am happily running U9 now :P
    cheers,
    Stoyan

Maybe you are looking for