Nexuiz on OpenSolaris

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Mon Apr 21, 2008 6:01 pm

  • Yesterday, a solaris user, "sartek" thanks to our beloved develoers (developers developers developers) found a way how to compile and play Nexuiz on Solaris:

    http://blog.sartek.net/2008/04/nexuiz-o ... laris.html

    So, we need to get nexuiz from here: http://alientrap.org/nexuiz

    unzip it:
    # unzip nexuiz-24.zip

    change the working directory:
    # cd Nexuiz/sources/

    unzip the engine's source:
    # unzip enginesource20080229.zip

    # cd darkplaces

    now, we need to change some files:
    1. open `makefile` with your favorite text editor
    add `SHELL=/usr/bin/bash` at the beginning, and if you have installed OSS (opensound system) add `DP_SOUND_API=OSS` I added it after `ifndef DP_MAKE_TARGET`
    save & close

    2. run this command:
    # perl -pi -e 's/\bmodel_t\b/lh_dp_model_t/g' *.c *.h
    it will replace the `model_t` function with `lh_dp_model_t`, we need this because `model_t` it's an internal solaris function

    3. open `vid_glx.c` comment out line 292:
    // vid_usingdgamouse = !!vid_dgamouse.integer;
    save & close

    4. open `snd_bsd.c`
    a) comment out line 95
    // break;
    b) comment out line 197 and add `SndSys_Shutdown ();`
    // SNDDMA_Shutdown ();
    SndSys_Shutdown ();

    5. now we can compile it:
    # gmake cl-nexuiz
    it should compile OK.

    6. move the data files from Nexuiz to our folder:
    # mv ../../data .

    7. we can now play!
    "One should strive to achieve; not sit in bitter regret."
    WE ARE NEXUIZ.
    Image
    Image
    User avatar
    C.Brutail
    Laidback mapper
     
    Posts: 2357
    Joined: Tue Feb 28, 2006 7:26 pm
    Location: Ironforge

Mon Apr 21, 2008 6:24 pm

Tue Apr 22, 2008 12:37 am

  • Here's something that might help Vista users.
    Right click nexuiz-sdl.exe (or nexuiz.exe if you use that) and in the Properties window check the box labeled Disable desktop composition. This helps a lot in my experience.
    Image

    [TSA] Psychcf wrote:dave would be proud

    As if I'm dead.
    I won't let those robots defeat me!
    :)
    Keyboard killer
     
    Posts: 590
    Joined: Tue Feb 28, 2006 9:09 pm

Tue Apr 22, 2008 12:42 am

  • How does vista come here anyway? :shock:
    "One should strive to achieve; not sit in bitter regret."
    WE ARE NEXUIZ.
    Image
    Image
    User avatar
    C.Brutail
    Laidback mapper
     
    Posts: 2357
    Joined: Tue Feb 28, 2006 7:26 pm
    Location: Ironforge

Tue Apr 22, 2008 1:23 am

Tue Apr 22, 2008 5:59 am

  • All of these changes have been applied to svn and will be in the next version, except for the makefile change (which I disagree with).

    Can you tell me which part requires /usr/bin/bash and does not work with /bin/sh? I'd rather fix that one to work with /bin/sh too.

    The other change you do to the makefile is not necessary either - you can change make variables on the command line, as in:

    gmake DP_SOUND_API=OSS SHELL=/usr/bin/bash cl-nexuiz
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Apr 22, 2008 6:00 am

  • Dave wrote:Here's something that might help Vista users.
    Right click nexuiz-sdl.exe (or nexuiz.exe if you use that) and in the Properties window check the box labeled Disable desktop composition. This helps a lot in my experience.


    What does it help with? fps, or crashes? Does it even do anything in fullscreen mode?
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Apr 22, 2008 7:30 am

  • divVerent wrote:What does it help with? fps, or crashes? Does it even do anything in fullscreen mode?

    Yes to all three. With it enabled the game is stuttery, and the driver (not the game) will crash. This behavior has been identical in windowed and fullscreen mode for me. (In full screen desktop composition will not automatically be disabled)
    :)
    Keyboard killer
     
    Posts: 590
    Joined: Tue Feb 28, 2006 9:09 pm

Tue Apr 22, 2008 4:31 pm

  • bash-3.2$ make cl-nexuiz
    make bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"
    /bin/sh: syntax error at line 1: `end of file' unexpected
    make: *** [cl-nexuiz] Error 2
    bash-3.2$



    divVerent wrote:All of these changes have been applied to svn and will be in the next version, except for the makefile change (which I disagree with).

    Can you tell me which part requires /usr/bin/bash and does not work with /bin/sh? I'd rather fix that one to work with /bin/sh too.

    The other change you do to the makefile is not necessary either - you can change make variables on the command line, as in:

    gmake DP_SOUND_API=OSS SHELL=/usr/bin/bash cl-nexuiz
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Tue Apr 22, 2008 9:57 pm

  • Damn, this does not help much.

    Can you try the following commands on the OpenSolaris /bin/sh shell (run /bin/sh from the ocmmand prompt to make sure it is used):

    echo "1"
    echo ">> `echo 2` <<"
    echo ">> `echo "3 4"` <<"
    echo ">> `echo \"3 4\"` <<"
    echo ">> $(echo "3 4") <<"
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Apr 22, 2008 10:01 pm

  • $ echo "1"
    1
    $ echo ">> `echo 2` <<"
    >> 2 <<
    $ echo ">> `echo "3 4"` <<"
    >> 3 4
    $ echo ">> `echo "3 4"` <<"
    >> 3 4 <<
    $ echo ">> $(echo "3 4") <<"
    >> $(echo 3 4) <<
    $

    edit:
    what do you think about set "SHELL=/usr/bin/env bash" ?

    divVerent wrote:Damn, this does not help much.

    Can you try the following commands on the OpenSolaris /bin/sh shell (run /bin/sh from the ocmmand prompt to make sure it is used):

    echo "1"
    echo ">> `echo 2` <<"
    echo ">> `echo "3 4"` <<"
    echo ">> `echo "3 4"` <<"
    echo ">> $(echo "3 4") <<"
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Wed Apr 23, 2008 2:33 pm

  • Now try:

    make bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"

    And no, you can't reliably use "env" in SHELL.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Apr 23, 2008 2:38 pm

  • works
    divVerent wrote:Now try:

    make bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"

    And no, you can't reliably use "env" in SHELL.
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Wed Apr 23, 2008 3:59 pm

  • Then you aren't in /bin/sh, or you wouldn't have gotten the make error above.

    Seriously, your login shell apparently isn't /bin/sh, but some better shell. Please repeat this test using /bin/sh.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Apr 23, 2008 4:25 pm

  • sorry i got lost in terminals :D

    Code: Select all
    bash-3.2$ make bin-release \
    > DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    > EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"
    make: Fatal error in reader: makefile, line 3: Unexpected end of line seen
    bash-3.2$ /bin/sh
    $ cd /data2/game/asd/Nexuiz/sources/darkplaces/
    $ make bin-release \                       
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"> >
    syntax error: `end of file' unexpected
    $


    divVerent wrote:Then you aren't in /bin/sh, or you wouldn't have gotten the make error above.

    Seriously, your login shell apparently isn't /bin/sh, but some better shell. Please repeat this test using /bin/sh.
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Wed Apr 23, 2008 10:04 pm

  • Finally, the syntax error.

    Try the following command in /bin/sh:

    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"

    (this should be a syntax error)



    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm"

    (this should work)



    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo normal`"

    does this still work?



    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo "quoted"`"

    and this?



    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo 'singlequoted'`"

    and this?
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Apr 23, 2008 10:11 pm

  • $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`" > >
    syntax error: `end of file' unexpected
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo normal`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm normal
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo "quoted"`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm quoted
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo 'singlequoted'`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm singlequoted
    $
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Thu Apr 24, 2008 6:04 pm

  • This must be a weird shell... please try too:

    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if true; then echo 1; fi`"


    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo "1" "2"`"


    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `[ -z nothing ]`"



    If this fails:

    [ -z nothing ]

    test -z nothing

    If the [ one failed and the test one succeeded, try putting test -z nothing instead of [ -z nothing ], and test -n nothing instead of [ -n nothing ] in the following tests.



    If it succeeded. or if you replace [ by test and remove ]:


    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n nothing ]; then echo 1; fi`"


    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "nothing" ]; then echo 1; fi`"


    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "nothing" ]; then echo "1"; fi`"
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Fri Apr 25, 2008 3:32 am

  • Hi! sartek said you need some SunOS shell-foo.

    divVerent wrote:This must be a weird shell...


    Yes, it is. :)
    POSIX requires the presense of a POSIX conformant shell impementation, but it does not state it should be /bin/sh.
    And on SunOS its not a POSIX shell (/usr/xpg4/bin/sh is the POSIX).

    Nesting quotes is something should be avoided at all times.
    You can't know if a shell will parse it lazy or greedy.

    You have made a false assumption, that it will eval from outside
    to inside, but SunOS's /bin/sh parsed it left-to-right, so you got something like this:

    "... if [ some test ]; then echo "

    ...which is of course wrong.

    Also don't use subshell executions, because they take additional
    resources and make the script slower (and ugly as SunOS /bin/sh doesnt know the $() syntax).


    if [ -n "" ]; then
    MODPLUG_FLAGS="/libmodplug.a -lstdc++"
    else
    MODPLUG_FLAGS=""
    fi

    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" \
    LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib \
    -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm $MODPLUG_FLAGS"


    PS.: See http://wiki.netbsd.se/The_pkgsrc_portab ... de#Solaris for more shell strangeness.
    => NetBSD.org - pkgsrc.org
    replaced
    Newbie
     
    Posts: 2
    Joined: Fri Apr 25, 2008 3:18 am

Sat Apr 26, 2008 6:04 am

  • Sorry, we can't avoid the subshell there, as "portable" makefiles don't allow any other way to do the modplug check at runtime. Same with sdl-config... however, the subshell is no performance problem, as it is only done twice (by the outer "make" for the LDFLAGS, and by the gcc call for the CFLAGS for snd_modplug.c).

    I know GNU make has a way for it, but makefile.inc is also used by BSDmakefile. So this may mean that we won't EVER support Solaris, as there simply is no alternative way to do what this check is doing.

    Can you still do the checks I mentioned? We MAY get away by using single quotes there instead. Please try that.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sat Apr 26, 2008 3:09 pm

  • i hope i followed correctly

    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if true; then echo 1; fi`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm 1
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `echo "1" "2"`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm 1 2
    $
    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `[ -z nothing ]`" $ > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n nothing ]; then echo 1; fi`" > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm 1
    $
    echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "nothing" ]; then echo 1; fi`"$ > >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm 1
    $ echo bin-release \
    DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
    EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "nothing" ]; then echo "1"; fi`"> >
    bin-release DP_MAKE_TARGET=sunos DP_SOUND_API=OSS EXE=nexuiz-glx LDFLAGS_COMMON=-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm 1
    $
    sartek
    Newbie
     
    Posts: 6
    Joined: Tue Apr 22, 2008 4:28 pm

Sat Apr 26, 2008 4:00 pm

  • divVerent wrote:Sorry, we can't avoid the subshell there, as "portable" makefiles don't allow any other way to do the modplug check at runtime. Same with sdl-config... however, the subshell is no performance problem, as it is only done twice (by the outer "make" for the LDFLAGS, and by the gcc call for the CFLAGS for snd_modplug.c).

    I know GNU make has a way for it, but makefile.inc is also used by BSDmakefile. So this may mean that we won't EVER support Solaris, as there simply is no alternative way to do what this check is doing.

    Can you still do the checks I mentioned? We MAY get away by using single quotes there instead. Please try that.


    i think you did not understand (i mean the shell spawned from the main scripts shell), but anyway single quote should work...
    => NetBSD.org - pkgsrc.org
    replaced
    Newbie
     
    Posts: 2
    Joined: Fri Apr 25, 2008 3:18 am



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest