Find the answer to your Linux question:
Results 1 to 5 of 5
I'm getting a very weird error when compiling X from CVS... I never had something like this before. Have anyone of you compiled X from CVS in the last couple ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    15

    Error while compiling X from CVS


    I'm getting a very weird error when compiling X from CVS... I never had something like this before. Have anyone of you compiled X from CVS in the last couple of days? Have you had issues with something like yylen, yylex, lex.o, and twm?
    But if you have time to waste... please try to compile X from CVS

    Here is the output with most of the errors:

    Code:
    ...
    sed 's/ /./g'`\"" -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'    -c -o lex.o lex.c
    lex.l:71: warning: redundant redeclaration of `yylineno' in same scope
    <stdout>&#58;348&#58; warning&#58; previous declaration of `yylineno'
    <stdout>&#58;724&#58; warning&#58; redundant redeclaration of `yylex' in same scope
    twm.h&#58;412&#58; warning&#58; previous declaration of `yylex'
    <stdout>&#58; In function `yylex'&#58;
    <stdout>&#58;837&#58; error&#58; `yy_prev_more_offset' undeclared &#40;first use in this function&#41;
    <stdout>&#58;837&#58; error&#58; &#40;Each undeclared identifier is reported only once
    <stdout>&#58;837&#58; error&#58; for each function it appears in.&#41;
    <stdout>&#58;821&#58; warning&#58; label `find_rule' defined but not used
    <stdout>&#58; At top level&#58;
    <stdout>&#58;1482&#58; warning&#58; redundant redeclaration of `isatty' in same scope
    /usr/include/unistd.h&#58;717&#58; warning&#58; previous declaration of `isatty'
    <stdout>&#58;1753&#58; warning&#58; no previous prototype for `yyget_lineno'
    <stdout>&#58;1762&#58; warning&#58; no previous prototype for `yyget_in'
    <stdout>&#58;1770&#58; warning&#58; no previous prototype for `yyget_out'
    <stdout>&#58;1778&#58; warning&#58; no previous prototype for `yyget_leng'
    <stdout>&#58;1787&#58; warning&#58; no previous prototype for `yyget_text'
    <stdout>&#58;1796&#58; warning&#58; no previous prototype for `yyset_lineno'
    <stdout>&#58;1808&#58; warning&#58; no previous prototype for `yyset_in'
    <stdout>&#58;1813&#58; warning&#58; no previous prototype for `yyset_out'
    <stdout>&#58;1818&#58; warning&#58; no previous prototype for `yyget_debug'
    <stdout>&#58;1823&#58; warning&#58; no previous prototype for `yyset_debug'
    <stdout>&#58;1829&#58; warning&#58; no previous prototype for `yylex_destroy'
    <stdout>&#58;1252&#58; warning&#58; `yyunput' defined but not used
    <stdout>&#58;1862&#58; warning&#58; `yy_flex_strlen' defined but not used
    make&#91;4&#93;&#58; *** &#91;lex.o&#93; Error 1
    make&#91;4&#93;&#58; Leaving directory `/usr/src/xc/programs/twm'
    make&#91;3&#93;&#58; *** &#91;all&#93; Error 2
    make&#91;3&#93;&#58; Leaving directory `/usr/src/xc/programs'
    make&#91;2&#93;&#58; *** &#91;all&#93; Error 2
    make&#91;2&#93;&#58; Leaving directory `/usr/src/xc'
    make&#91;1&#93;&#58; *** &#91;World&#93; Error 2
    make&#91;1&#93;&#58; Leaving directory `/usr/src/xc'
    make&#58; *** &#91;World&#93; Error 2
    root@xandrames&#58;/usr/src/xc#
    Does anyone know what the matter is? I compiled recently from CVS and everything went fine. But I recompiled it (to follow this one procedure I received) and this comes up. Anyone have any idea? I know that a problem like this showed up way back in 2003 to someone else, but why now and why is it occurring?

  2. #2
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028
    Why are you compiling X from CVS?

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Don't use CVS builds for important stuff. There is no guarantee that the code is stable at all.

    I'd recommend grabbing the latest stable source release and compiling from that.

    But aye, why DO you want to compile it from source?

  4. #4
    Just Joined!
    Join Date
    Oct 2004
    Posts
    15
    I need to use r300 drivers. The CVS X is the only server capable of recognizing it. Thus the CVS X is essential.

  5. #5
    Linux Newbie
    Join Date
    Nov 2004
    Location
    New York
    Posts
    150
    I'm no expert on CVS or X, so all I can give is general advice. Make sure you're looking at the first error message that appears (you can probably neglect warnings). Pay special attention to anything about missing include files, and during the final linking stage, missing libraries. They are indicators that you may not have installed some required devel packages, and can easily result in hundreds of reported errors per file. Also if a symbol is not declared, it may just be that its name has changed since the last time you updated your libraries. Although since this is CVS I think it's a lot more likely that some developer simply screwed up.

    If you're really desperate, check to make sure that the latest source release compiles on your machine, and then... I guess find the developer forum for X. Good luck.
    \"Nifty News Fifty: When news breaks, we give you the pieces.\" - Sluggy Freelance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •