Problem wth sys/utsname.h amd g++

I was compiling the open source program xtide which is set up for gcc/g++. It compiles cleanly until I get to the file xttpd.cc which produces the following error:
xttpd.cc:99: error: expected `;' before "foo"
Line #99 of the file reads:
utsname foo;
I though that there must be some problem with the declaration of utsname in /usr/include/sys/utsname.h. I compiles the file using the -E flag, inspected the preprocessor output and found the following lines from the include file:
# 1 "/usr/include/sys/utsname.h" 1 3 4
# 16 "/usr/include/sys/utsname.h" 3 4
#pragma ident "@(#)utsname.h 1.30 04/09/28 SMI"
extern "C" {
# 34 "/usr/include/sys/utsname.h" 3 4
struct utsname {
char sysname[257];
char nodename[257];
char release[257];
char version[257];
char machine[257];
extern struct utsname utsname;
# 108 "/usr/include/sys/utsname.h" 3 4
extern int uname(struct utsname *);
# 123 "/usr/include/sys/utsname.h" 3 4
Notice the line: extern struct utsname utsname;
I thought that this might somehow be polluting the C++ name space, so I
deleted it from the preprocessor output and then the file compiled just fine.
So my question is whether there is a general problem with a declaration like this in conjunction with C++ or whether this is a problem unique to g++? (I haven't gotten far enough along in getting this to compile with Studio 12 to see if it will also have a similar problem.)
I'm also confused by the error message. Is g++ expecting a semi-colon because it see the "utsname" in "utsname foo" as an instantiation of a struct and not a type declaration for foo.
Regards,
Jeffery Small

Could you tell us which version of g++, and on which OS.
Thanks
Prashanth

Similar Messages

  • Problems with 990FXA-GD80 and AMD FX8350

    Hello,
    I built this PC back in March, and ever since I have been having problems with it. I get BSOD every now and then. It usually only happens when I am playing a game or trying to render a video. The last time I tried running Prime95, my computer locked up and didn't report the error or go to bluescreen. I thought I might post my issues here, because I can't figure out the cause. I believe it's a piece of the hardware that is causing it.
    I ran memtest86 with all passes, and I checked my HHD for errors and nothing came back.
    I'm not sure if my BIOS version it out of date, but it says I am on V11.13. When I scan on Live Updater 5, there are no updates so I'm not sure if I need to just flash it or what.
    My BIOS settings are all default, except I changed the CPU and DRAM voltages to higher values. 1.35V for the CPU and 1.65V for the DRAM. I seen it recommended in another thread so I figured I would give it a try. All my temps look fine by the way. I'm not sure if it has solved the issues though, I haven't tried playing much games or rendering a video.
    If anyone might have an idea what is going on I would really appreciate any help. I don't know much about building PCs, so take it easy :P
    My full specs are:
    OS: Windows 7 Ultimate 64-Bit
    CPU: AMD FX-8350
    Motherboard: 990FXA-GD80 V2
    GPU: Sapphire Radeon HD 7850
    Memory: G.SKILL Ripjaws X Series 16GB (2 x 8GB) 240-Pin DDR3 SDRAM DDR3 2133
    PSU: CORSAIR HX Series HX750 750W
    HDD: Seagate SV35 Series ST1000VX000 1TB
    I can post more info if needed, thanks!

    No replies?   
    First off that ram is 1.6V not 1.65V.  Your ram is ddr3 2133mhz which is an overclock ram speed.  Hopefully that works ok in "auto".
    Next, your cpu is being starved for volts.  Set it to at least 1.4V.  Do not be afraid to go higher if it still crashes. 
    The bios is the latest for Win7.  I am using it and it works fine.
    Do you have any monitoring software like HWiNFO64?  It shows my 8350 idling at 1435 mhz and using 1.32V-1.46V right now.  Under load it will be higher.  Yours will be too.

  • Flash player hanging up and crashing on all web browsers. Problem turned out to be AMD drivers

    I have been having a problem running Flash Player, green screens, hang ups, crashes etc on my machine. I tried various solutions and every major and some not so major web browsers all to no avail. I tried reinstalling my windows 8.1 no good also tried running 8 and 7 all 64 versions. No go I came a cross a post about a problem with Flash and AMD that seems to recur every nown and then. I have a AMD HD 6670 1 gig GDDR5 PCI-E 2 card so I tried going back through AMD drivers untill I was able to get it to function properly. Finally I ended up using the driver from Dec 2013 13-12_win7_win8_64_dd_ccc_whql along with the AMD Media Codec Package from Aug 2012 12-8_vista_win7_win8_32-64_xcode Flash is now playing with no problems. I thought I would share the solution I used in case it might help others.
    Message was edited by: Rodger Hall

    I haven't run across this, though I did see a Firefox fileupload bug yesterday (https://bugbase.adobe.com/index.cfm?event=bug&id=2980517).  Would you mind opening a new bug on this over at bugbase.adobe.com?  Please include URLs where you're seeing this behavior and we'll investigate further.
    Thanks,
    Chris

  • Graphics display problems (dialog boxes) Lenovo G50 AMD A6 Win 8.1

    Graphics display problems Lenovo G50 AMD A6 Win 8.1 Greetings to all. After having spent a number of days trying to find a solution to a display problem, I turn to this forum for help. I own a Lenovo G50 AMD A6 Win 8.1 ever since November 2014, and have had display problems ever since the first day, be it while using internet (Firefox or Explorer) or various software (Text editors, etc.). Many dialog boxes, including colour settings and controls (open, close etc.) either have an inappropriate appearance or even do not appear at all! I manage to "click" on the right places using memory: most areas are INVISIBLE! Another example would be that I do not see any backround colour or image on most webpages such as this one).  Some suggestions included checking for graphics updates (but the drivers used were already up-to-date).  I 'd be most obliged for any new suggestions. Thank you very much. George

    Greetings to all, I finally decided to express my utmost discontent with- the Lenovo G50-45 I bought before Christmas 2014,- the summary response with inappropriate links that I received after exposing  my problem- the fact that I tried to dowload the following graphics driver  (Beema) AMD Driver (VGA, HDAudio, SATA) for Windows 8.1 (64-bit)
    exe
    526 MB
    Windows 8.1 (64-bit)
    VGA V14.502.1002.1002-Logo'd_HDAudio v9.0.0.9905_SATA v1.3.1.220;VGA v13.302.1601.1001_HDAudio v9.0.0.9905_SATA v1.3.1.220
    3/19/2015from here(http://support.lenovo.com/fr/fr/products/laptops-and-netbooks/lenovo-g-series-laptops/g50-45-notebook-lenovo/downloads/DS100174), and after REFUSING to accept cookies and some "Lenovo Service Bridge", finally managed to obtain something  HERE(http://www.notebookcheck.net/Lenovo-IdeaPad-G50-45-Notebook-Review-Update.125641.0.html).  I find it quite disrespectful to NOT provide customers with EASY support, as well as avoiding to  answer their requests for further help when some simplistic "assistance" that one can find almost anywhere on the web leads to no further solution. I shall not repeat the problems I have faced till now: vide supra. The problem, however,  is NOT just with browsers.I simply cannot see any dialog box content and colour in MANY software programs, such as OPEN OFFICE; for instance:  PRESENTATION colour dialog boxes show BLANK squares instead of squares filled with different colours. This has occured AVER SINCE DAY ONE! Finally, a new bug has appeared: Windows 8.1 keeps popping up some email program to which I am invited to register - I never created a Windows email account, and certainly don't intend to do so.NOR shall I accept some "Lenovo Service Bridge", however "discreet and inoffensive" it might be. I don't know if there are any legal grounds for customers to complain for all these problems. I DO know, however, that I shall NEVER buy a LENOVO device ever again. The pricing and processor might be competitive => yet,  the support that ensues is, as far as I'm concerned, LAMENTABLE. To make a presentation, I have to switch to a Samsung R20 using XP..... What is the meaning of all this? George    

  • HP 15-n086sl problems with windows and drivers amd

    Hello to all,
    I have a problem with my HP 15 - n086sl .
    With native Windows 8 did not.
    the problem is the following :
    moving from windows 8 to 8.1 I lose the switch graphics cards.
    I mean : if I click with the mouse on "configure switchable graphics cards " I get out of a window that says " Unable to start Catalyst Control Center. currently there are no other settings to configure with CCC"
    I tried to update the drivers with the ones on the HP site for windows 8.1 , but nothing changes .
    From " Device Manager " I noticed that the drivers you have installed AUTOMATIC moving from windows 8 to 8.1 are the same version as on the hp website .
    [url=http://postimg.org/image/t3xa7aem3/][img]http://s1​7.postimg.org/t3xa7aem3/driv.jpg[/img][/url]
    If I install the drivers from the AMD website I have the following problems :
    the switch returns to work but hibernation no longer works and if the screen of the PC goes into standby by moving the mouse or pressing both buttons it never recovers . I have to turn off the computer by holding down the button.
    I've done several searches for the web, even within the forum but have not found the solution.
    Will you help me ?
    Sorry for my English.

    Sorry for the delay!
    I am Italian and hp does not offer more support than this forum.
    How should I do?

  • DMU 2.0 problem with sys.scheduler$_program_argument anydata column

    Hi
    I'm testing dmu2.0 conversion (WE8ISO8859P15 to AL32UTF8 12.1.0.1 database)  and I have a problem with scheduler$_program_argument table.
    There is a column VALUE (anydata) which causes tablescan to fail with errors:
    ORA-21700: object does not exist or is marked for delete ORA-06512: at "SYS.DBMS_DUMA_INTERNAL", line 8 ORA-06512: at "SYS.DBMS_DUMA_INTERNAL", line 43 ORA-06512: at line 1
    I'm have not been able to mark it as"skip" and it prevents the conversion.
    What would be the right way to handle this error?
    Br
    Jari

    The ORA-21700 error prevented the DMU scan from querying this column. Please check MOS note 1621719.1. See if you have dropped any types used for the argument values and recreate the dropped type.

  • BSOD-Problem ha20x22k.sys X-Fi WinXP SP3 multicore-processor

    Hi @all,
    I already read around this forum & know that the bluescreens in connection with ha20x22k.sys only happen on WinXP SP3 machines with multicore processors. There seem to be a beta driver XFTI_PCDRVBETA_2_7_0005.zip that fixes this issue. There are several postings about it here in this forum and Google finds more elsewhere.
    Only there is no download link.
    Where can I get XFTI_PCDRVBETA_2_7_0005.zip?
    Sincerely - Harry Zingel - www.zingel.de

    Hi!
    I had similar problems with a older Creative Cards. This ist PCI-IRQ Routing problem most caused by a Bios that is not 00% ACPI compatible, even if the manufracturer say it is 00% compatible.
    I solved this with a Bios upgrade or before is did the Bios upgrade i changed the ACPI kernel to a MPS kernel (i wont suggest that because if something goes wrong, it is not easy to repair the OS and needs much OS-internal-related knowledge to do this).

  • Connection Problem to sys with @ TNSNAMES ?

    Hi oracle gurus,
    OS: Solaris 10
    DB: Oracle Database Release 10.2.0.3.0
    I have problem to connect to sys as SYSDBA throw @<TNSNAMES>
    I did the follow test below:
    TEST 1: OK
    SQL> connect sys/xxx as sysdba
    Connected.
    TEST 2: OK
    SQL> connect sysman/xxx@OEMREP
    Connected.
    TEST 3: FAIL?
    SQL> connect sys/xxx@OEMREP as sysdba
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Does anyone now why test 3 fail?
    Its NOT because of wrong password.
    Best Regards - Tommy
    Message was edited by:
    T.Rönnholm

    Hi,
    >>I have problem to connect to sys as SYSDBA throw @<TNSNAMES>
    Certainly you are typing a wrong password. As Werner said, in server side, doesn't matter what you typed id you are using OS authentication:
    oracle@icaro:~> sqlplus blablabla/blablabla... as sysdba
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Dec 7 15:07:07 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Conected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SYS@BD1> show user
    USER e "SYS"In resume, when you connect to the database by using the SYSDBA privilege, you are connected to the SYS schema.
    Cheers
    Legatti

  • Problem in Sys. Status for Delivery creation.

    Dear All,
    I am getting a massage at the time of delivery thru VL01.
    "Create delivery" not allowed (SYSTEM STATUS EXLS OBJECT VB0000008800010)
    Massage no.BS051
    Diagnosis
    the status check for the status object VB000000818800010 indicated that the procedure create delivery can not be performed because sys status EXLS forbids it.
    System Response
    Procedure create delivery not possible
    Please help !!
    regards,
    Arindam

    hi
    goto VA02 enter u r sales order number
    now in the sales header goto status tab and click on object status now  remove the block if there is any
    This is because in VOV8 for your sales doc type a Status profile has been assigned
    regards

  • Problem wth plugin modal page

    apex 4.1.1.00.23
    download skillbuilder modal page plugin; imported to application;
    made required changes;
    I IR with link column
    (select case when count(alias)=0 then null
                 else count(alias) end from instance_application
    where alias in (select alias from tnsnames t where t.host=i.host and t.sid=i.sid)) kbrappl
    Link text: #KBRAPPL#
    link attribute:
    id="#HOST#:#SID#" class="setClick" onclick="return false;"
    target URL: javascript:return false;
    Created DA
    event: Click
    selector Type: Jquery selector
    10. set value (parameter for call modal page);
    20. SkillBuilders Modal Page (2.0.0) [Plug-in]
    create page another report with template popup;
    It is working perfect on start page (until main IR filter changed or IR with mutiple pages going to next pages);
    It is look like changing filter or next page DA not Fire;
    Please help

    I solved the problem myself
    I set event scope: live
    Thanks 

  • Problem accessing sys table from user's schema

    Hi,
    I had a store procedure whose owner is say user1.Inside of that store procedure i am executing the following select query.
    select * from sys.all_coloumns where owner = 'USER1';
    This is resulting me "no data found".
    When i am executing the same select query from SQL*plus it is giving me the proper output.
    I think this is happening because of less systeme privileges/role assigned to schema USER1.
    Can you please suggest which priviledges i need to grant, so that my proc. will work fine.

    User1 needs select rights on sys.all_columns directly.
    Not via the DBA role.

  • Problem wth incomplete returns orders -  Shipp pt and route are greyed out

    Hi
    This is the problem with the incomplete return orders (v.02). All the subsequent documents are in complete process, but the returns order status is showing  open status. This is because the user tried to remove the delivery block in returns order using a tcode (customized) and after that the shipping point and route in the returns order are removed and the fields are greyed out. So we need to complete all those returns order either through updating the database tables, please let me know how to achieve this?
    Thanks in advance
    Kishore

    Hi Kishore,
                    As you might have shipping point and the route in the incompletion procedure for this return delivery type and these shipping point and the route are automatically determined, these fileds are greyed out. You have to remove these fileds in incompletion procedure by going to "SPRO-IMG-SHIPPING-BASIC SHIPPING FUNCTIONS-INCOPMLTION FOR DELIVERIES"(VUA2--TRANSACTION).
    Or use seperate shipping conditions for the retunr process ,so that you can detemrine shipping point differently(You can assing some other shipping point as well in shipping point determination by entering Manual shipping point (OVL2).
    Regards
    Ram Pedarla

  • Pacman -Syu Fails -- Problem wth pm-utils Package

    I just tried to do a "pacman -Syu".
    I get the following errors:
    error:  Could not prepare transaction
    error: failed to commit transaction (conflicting files)
    pm-utils: /usr/bin/on_ac_power exists in filesystem
    errors occured, no packages were upgraded
    Is there a problem with the new pm-utils package?  What is the fix?
    Rob

    webbrewer wrote:Although thinkwiki recommends using APM with the t20, I attempted for a few weeks to get ACPI to work properly on this machine.  I was unable to solve all the issues, as detailed here: http://bbs.archlinux.org/viewtopic.php?id=35061.  With APM, everything works well.
    The HAL website (http://www.freedesktop.org/wiki/Software/hal) doesn't list pm-utils as a dependency.  However, I am willing to give APCI another try.
    I removed apmd and found that all my apm functionality remained despite the absence of a software daemon.  Upgrading hal and installing pm-utils has not caused any issues in my system, contrary to my cautions.

  • Problem wth JAM (making a skyscrapers pkgbuild)

    I am using this:
    # This is an example PKGBUILD file. Use this as a start to creating your own,
    # and remove these comments. For more information, see 'man PKGBUILD'.
    # NOTE: Please fill out the license field for your package! If it is unknown,
    # then please put 'unknown'.
    # Contributor: Your Name <[email protected]>
    pkgname=skyscraper
    pkgver=20alpha41
    pkgrel=1
    pkgdesc="Skyscraper aims to be a fully-featured, modular, 3D realtime building simulator, powered by the Scalable Building Simulator (SBS) engine."
    arch=('i686' 'x86_64')
    url="http://www.skyscrapersim.com/"
    license=('GPL')
    depends=('crystalspace')
    makedepends=('jam')
    optdepends=()
    source=(http://downloads.sourceforge.net/project/skyscraper/Skyscraper/2.0a4.1/$pkgname$pkgver.tar.gz)
    md5sums=(7325eadcdf8c42264fdddffb197f6aaf)
    build() {
      cd "$srcdir/$pkgname"
      ./configure --prefix=/usr
      make || return 1
      make DESTDIR="$pkgdir/" install
    and having this JAM issue: http://pastebin.ca/1519472
    my system have ftjam installed:
    Name           : ftjam
    Version        : 2.5.3rc2-1
    URL            : http://freetype.org/jam/
    Licenses       : custom
    Groups         : None
    Provides       : jam
    Depends On     : glibc
    Optional Deps  : None
    Required By    : None
    Conflicts With : jam
    Replaces       : jam
    Installed Size : 122.44 K
    Packager       : Roman Kyrylych <[email protected]>
    Architecture   : i686
    Build Date     : Wed Oct 31 09:49:06 2007
    Install Date   : Tue Aug 4 16:28:23 2009
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Description    : FT Jam - an enhanced version of the Jam build tool
    any idea?

    well, the problem was in cal3d-svn, a dependency of cristalspace-1.4branch-svn....
    here is the output: http://pastebin.ca/1528369
    Last edited by luuuciano (2009-08-13 18:25:55)

  • Problems wth XSLPROCESSOR

    Greetings,
    I am trying to develop a PLSQL function that, given the URL of a XML file, it returns a HTML file through a prepared XLS file
    So far, the test procedure to check if the function is working ends with a ORA-20103: Null input is not allowed error.
    Function is as follows:
         FUNCTION translate_XML(path_xml VARCHAR2, path_xsl VARCHAR2) RETURN CLOB IS
              v_return               CLOB;
              v_processor          SYS.XSLPROCESSOR.PROCESSOR;
              v_style               SYS.XSLPROCESSOR.STYLESHEET;
              v_xmldom               SYS.XMLDOM.DOMDOCUMENT;
              BEGIN
              v_xmldom := SYS.XMLPARSER.PARSE(path_xml);
              v_style := SYS.XSLPROCESSOR.NEWSTYLESHEET(path_xsl, NULL);
              v_processor := SYS.XSLPROCESSOR.NEWPROCESSOR;
              SYS.XSLPROCESSOR.PROCESSXSL(v_processor, v_style, v_xmldom, v_return);
              RETURN v_return;
              EXCEPTION
    when others then
    sys.xslprocessor.freeprocessor(v_processor);
    raise;
              END;
    could anyone point me in the right direction, please?

    First, try resetting the iPod.
    http://support.apple.com/kb/HT1320
    If that does not work, you should probably use the Restore button in iTunes to erase the iPod and initialize its software. Then sync everything back, videos and music.
    FYI - It's a 5th Gen iPod.

Maybe you are looking for

  • Thoughts on how LabVIEW handles checkout of file from SCC when file already open

    When you already have a file/project open in LabVIEW and it is set to read only because you haven't checked it out, you can go into SCC and do a checkout then save the file immediately. The issue with this is, if your local copy doesn't match the cop

  • Any info about EDT (External Data transfer)

    Hi, I am working in insurance module of SAP. There is a business object called Business Partner which we need to migrate from legacy to R/3. Now for migration of Business partner generally LSMW is not used. People here use EDT (External data transfer

  • Realesing objects in Teststand

    Using TestStand 3.5 with the debugging options on, I get the following debug message when exiting the CVI Test Executive after running a program. Reference to PropertyObjects 42 4 Top Level Type Definitions : FCParameter Type Definitions : Expression

  • Required help in hssf poi -creating sheets dynamically

    Dear friends , please help me , here is my reqiurement from soma data sourse i will be getting some info now what i need to do is save them to different sheets in excel file (single excel file) for a particular devise . ie , if we printer and scanner

  • Problems exporting Video from Photshop CS4 extended

    Hi Guys I have a multilayered psd file (RGB 8 bit, 955 px x 600 px) and have created an animation (8 seconds) using the animation panel in timeline mode. File consists of 4 image layers and 3 text layers. When I choose File/export/render video, The q