Linux compiling under SuSE 9.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • TJA
    replied
    Yep, about Sun and their System V packages, you are right, of course.
    But it works "somehow" and can even be patched

    Anyway, i cannot find a *ncurses*5.5.* RPM for SuSE 9.3 on any page :-(
    And i surely will not begin to compile whatever else may be needed.
    Sad thing.

    Thanx for your time!

    And GOOD job, as far as i saw from the Windows version!
    Thanx for continuing work on Vanilla Angband!

    Leave a comment:


  • takkaria
    replied
    Originally posted by TJA
    Now, it´s a freshly set up root-Server at server4you.de


    BTW, this is the main problem of Linux - it is moving too fast and has very often no back-compatibility.
    Well, in this case, it's because ncurses uses its own boolean type of some kind, I believe, and the later versions allow you to stop it doing that; previous versions don't. I'm not sure you can be backward-compatible in this way.

    If you want to compile "something", you need to download and compile 1 to 20 other kits and libraries and tools more.
    Solaris, for example, is much more professional in such things ...
    Well, I use Debian; if I want to compile something, I just apt-get the appropriate dev libraries. Solaris has the advantage of being pretty much centrally administered, where most things are developed by Sun. (Of course, this comes with bad side-effects, like really poor package management.)

    Leave a comment:


  • TJA
    replied
    Now, it´s a freshly set up root-Server at server4you.de


    BTW, this is the main problem of Linux - it is moving too fast and has very often no back-compatibility.
    If you want to compile "something", you need to download and compile 1 to 20 other kits and libraries and tools more.
    Solaris, for example, is much more professional in such things ...

    *sob*

    Thanx for your reply - i will try to get a newer ncurses

    Leave a comment:


  • takkaria
    replied
    Originally posted by TJA
    Now, to be honest SuSE 9.3 may not be brand new, but surely young enough to compile an Roguelike game, don´t you think?


    I have those versions:

    ncurses-devel-5.4-68
    ncurses-5.4-68


    Which curses version is needed?!?
    ncurses 5.5. (Not that I realised this before release; still, I don't really expect Unix users to be using three-year old package versions. )

    Leave a comment:


  • TJA
    replied
    Now, to be honest SuSE 9.3 may not be brand new, but surely young enough to compile an Roguelike game, don´t you think?

    Thanx for you tip, it work partly:

    Code:
    make -f Makefile.std
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-file.o -c z-file.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-form.o -c z-form.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-rand.o -c z-rand.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-term.o -c z-term.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-type.o -c z-type.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-util.o -c z-util.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o z-virt.o -c z-virt.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-gcu.o -c main-gcu.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-sdl.o -c main-sdl.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o snd-sdl.o -c snd-sdl.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-x11.o -c main-x11.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-xaw.o -c main-xaw.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP -o main-gtk.o -c main-gtk.c
    gcc -Wall -O2 -Wno-unused-parameter -DUSE_X11 -DUSE_GCU -DUSE_NCURSES  -DHAVE_MKSTEMP  -o angband birth.o cave.o cmd0.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o dungeon.o files.o generate.o init1.o init2.o load.o melee1.o melee2.o monster1.o monster2.o obj-info.o object1.o object2.o randart.o randname.o pathfind.o signals.o save.o spells1.o spells2.o squelch.o store.o tables.o ui.o use-obj.o util.o variable.o wizard1.o wizard2.o x-spell.o xtra1.o xtra2.o z-file.o z-form.o z-rand.o z-term.o z-type.o z-util.o z-virt.o main.o main-gcu.o main-sdl.o snd-sdl.o maid-x11.o main-x11.o main-xaw.o main-gtk.o  -lX11 -lncurses
    /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lX11
    collect2: ld returned 1 exit status
    make: *** [angband] Error 1
    Then i tried to run configure again, disabling everything beside curses:

    Configuration:

    Install path: /usr/local
    lib/ path: ./lib/

    -- Frontends --
    - Curses Yes
    - GTK 2.x Disabled
    - X11 Disabled
    - SDL Disabled


    Still those errors:
    Code:
    main-gcu.c: In function `Term_xtra_gcu_alive':
    main-gcu.c:290: error: dereferencing pointer to incomplete type
    main-gcu.c:290: error: dereferencing pointer to incomplete type
    main-gcu.c:290: warning: left-hand operand of comma expression has no effect
    main-gcu.c: In function `Term_nuke_gcu':
    main-gcu.c:383: error: dereferencing pointer to incomplete type
    main-gcu.c:383: error: dereferencing pointer to incomplete type
    main-gcu.c:383: warning: left-hand operand of comma expression has no effect
    main-gcu.c: In function `Term_xtra_gcu':
    main-gcu.c:505: error: dereferencing pointer to incomplete type
    main-gcu.c: In function `Term_text_gcu':
    main-gcu.c:616: error: dereferencing pointer to incomplete type
    main-gcu.c:630: error: dereferencing pointer to incomplete type
    main-gcu.c: In function `init_gcu':
    main-gcu.c:712: error: `bool' undeclared (first use in this function)
    main-gcu.c:712: error: (Each undeclared identifier is reported only once
    main-gcu.c:712: error: for each function it appears in.)
    main-gcu.c:712: error: syntax error before "use_big_screen"
    main-gcu.c:720: error: `use_big_screen' undeclared (first use in this function)
    make[2]: *** [main-gcu.o] Error 1
    make[1]: *** [build] Error 2
    make: *** [build] Error 2
    I have those versions:

    ncurses-devel-5.4-68
    ncurses-5.4-68


    Which curses version is needed?!?
    Last edited by TJA; August 14, 2007, 22:45.

    Leave a comment:


  • Daven_26d1
    replied
    Well, you could try updating ncurses, 9.3 is a fairly old build.

    Before you do that though, try cding to /src and running
    Code:
    make -f Makefile.std
    not forgetting the capital M in Makefile. That way may or may not work for you.

    Leave a comment:


  • TJA
    started a topic Linux compiling under SuSE 9.3

    Linux compiling under SuSE 9.3

    Hello,
    i just tried ./configure and make and got the following:

    Code:
    In file included from main-gcu.c:63:
    /usr/include/ncurses.h:337: error: syntax error before "bool"
    /usr/include/ncurses.h:339: error: syntax error before "_leaveok"
    /usr/include/ncurses.h:340: error: syntax error before "_scroll"
    /usr/include/ncurses.h:341: error: syntax error before "_idlok"
    /usr/include/ncurses.h:342: error: syntax error before "_idcok"
    /usr/include/ncurses.h:343: error: syntax error before "_immed"
    /usr/include/ncurses.h:344: error: syntax error before "_sync"
    /usr/include/ncurses.h:345: error: syntax error before "_use_keypad"
    /usr/include/ncurses.h:372: error: syntax error before '}' token
    /usr/include/ncurses.h:393: error: syntax error before "is_term_resized"
    /usr/include/ncurses.h:399: error: syntax error before "bool"
    /usr/include/ncurses.h:521: error: syntax error before "can_change_color"
    /usr/include/ncurses.h:525: error: syntax error before "bool"
    /usr/include/ncurses.h:557: error: syntax error before "has_colors"
    /usr/include/ncurses.h:558: error: syntax error before "has_ic"
    /usr/include/ncurses.h:559: error: syntax error before "has_il"
    /usr/include/ncurses.h:561: error: syntax error before "bool"
    /usr/include/ncurses.h:562: error: syntax error before "bool"
    /usr/include/ncurses.h:563: error: syntax error before "bool"
    /usr/include/ncurses.h:577: error: syntax error before "bool"
    /usr/include/ncurses.h:578: error: syntax error before "isendwin"
    /usr/include/ncurses.h:579: error: syntax error before "is_linetouched"
    /usr/include/ncurses.h:580: error: syntax error before "is_wintouched"
    /usr/include/ncurses.h:582: error: syntax error before "bool"
    /usr/include/ncurses.h:584: error: syntax error before "bool"
    /usr/include/ncurses.h:586: error: syntax error before "bool"
    /usr/include/ncurses.h:645: error: syntax error before "bool"
    /usr/include/ncurses.h:650: error: syntax error before "bool"
    /usr/include/ncurses.h:677: error: syntax error before "bool"
    /usr/include/ncurses.h:703: error: syntax error before "bool"
    /usr/include/ncurses.h:1413: error: syntax error before "wenclose"
    /usr/include/ncurses.h:1415: error: syntax error before "wmouse_trafo"
    /usr/include/ncurses.h:1415: error: syntax error before "bool"
    /usr/include/ncurses.h:1416: error: syntax error before "mouse_trafo"
    /usr/include/ncurses.h:1416: error: syntax error before "bool"
    main-gcu.c: In function `Term_xtra_gcu_alive':
    main-gcu.c:290: error: dereferencing pointer to incomplete type
    main-gcu.c:290: error: dereferencing pointer to incomplete type
    main-gcu.c:290: warning: left-hand operand of comma expression has no effect
    main-gcu.c: In function `Term_nuke_gcu':
    main-gcu.c:383: error: dereferencing pointer to incomplete type
    main-gcu.c:383: error: dereferencing pointer to incomplete type
    main-gcu.c:383: warning: left-hand operand of comma expression has no effect
    main-gcu.c: In function `Term_xtra_gcu':
    main-gcu.c:505: error: dereferencing pointer to incomplete type
    main-gcu.c: In function `Term_text_gcu':
    main-gcu.c:616: error: dereferencing pointer to incomplete type
    main-gcu.c:630: error: dereferencing pointer to incomplete type
    main-gcu.c: In function `init_gcu':
    main-gcu.c:712: error: `bool' undeclared (first use in this function)
    main-gcu.c:712: error: (Each undeclared identifier is reported only once
    main-gcu.c:712: error: for each function it appears in.)
    main-gcu.c:712: error: syntax error before "use_big_screen"
    main-gcu.c:720: error: `use_big_screen' undeclared (first use in this function)
    make[2]: *** [main-gcu.o] Error 1
    make[1]: *** [build] Error 2
    make: *** [build] Error 2

    Any idea what could be wrong?
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕