logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
[INSTRUCTIONS] Compiling NWNX2 on Linux with MySQL support.

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
12o



Joined: 27 Dec 2008
Posts: 35

PostPosted: Wed Nov 18, 2009 5:51    Post subject: [INSTRUCTIONS] Compiling NWNX2 on Linux with MySQL support. Reply with quote

After running into a sort of rocky situation with compiling nwnx2 on Linux, I thought I would outline each step I used to get to completion, as some of the steps were spread out over the forums. These steps assume you have installed the NWN Linux Dedicated server into a custom folder in the /home/<user>/nwnserver directory.

Virusman, please correct me if I'm wrong on any of the steps. Smile Or maybe make this sticky for others.

STEP 1:
Quote:

1. Update all of your packages in your Linux OS using the update system for your distribution.
2. Install gcc 4.4.2-3
3. Install zlib 1.2.3.3-i686
4. Install make 3.81-4
5. Install autoconf 2.64-1

I used ArchLinux i686 with the pacman install system.


STEP 2:
Quote:

1. Download the linnwnx2-2.5.3-rc1.tar.gz on the Downloads page.
Direct Link: http://www.nwnx.org/uploads/media/linnwnx2-2.5.3-rc1.tar.gz
2. Untar in a seperate directory.
Code:
$ tar zxvf linnwnx2-2.5.3-rc1.tar.gz



STEP 3:
Quote:

1. Download NWNXBase.h file.

http://nwn.virusman.ru/trac/nwnx2-linux/browser/trunk/NWNXBase.h?rev=160

Be sure that if you just copy and paste the text, your may wind up with line numbers on the left side. These must be deleted before you run the configure command.


STEP 4:
Quote:

1. Locate the NWNXmnx.cpp file located in the <dir>/mnx folder and open in nano or Bluefish.
2. Change line 48 from:
Code:
int rc, lin;;

to
Code:
int rc, lin;

(remove the redundant ; )
3. Comment out line 51:
Code:
char *pStr, hostname[128];

to
Code:
/* char *pStr, hostname[128]; */

4. Add two lines directly underneath and type in:
Code:

const char *pStr;
char hostname[128];

Thread reference: http://www.nwnx.org/phpBB2/viewtopic.php?t=1438&highlight=nwnxmnx+cpp


STEP 5:
Quote:

Return to the linnwnx2 folder and type the following commands:
Code:

$ ./configure --prefix=/home/<user>/nwnserver
$ make

It appears that MySQL support is configured as the SQL support files are located in the 'db' folder.


STEP 6:
Quote:

1. Copy the following files to the NWN Linux Server install folder:
--nwnstartup.sh.example
--nwnstartup.sh
--nwnx.ini
2. Edit both the nwnx.ini and the nwnstartup.sh files with relevant changes pertinent to your NWN server and NWNX installations.
3. Run the nwnstartup.sh file.
Code:
$ ./nwnstartup

If you want the script to detect nwn server crashes, a while loop can be used to recover from crashes:
Code:

while [ nwncheck != 1 ]
do
./nwnstartup
done



Refer to the README file located in the linnwnx2 folder for additional configuration information.

This information was collected from various locations on the forums by other users/administrators as well as from the README files. I make no claim to the excellent information here. I merely took a problem I was having and gathered the information for others to refer to. Smile
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Wed Nov 18, 2009 12:44    Post subject: Reply with quote

Looks like the build is screwed up after all. *sigh* Time for nwnx_easy to make its debut return.
Back to top
View user's profile Send private message
12o



Joined: 27 Dec 2008
Posts: 35

PostPosted: Wed Nov 18, 2009 19:33    Post subject: Reply with quote

Fireboar wrote:
Looks like the build is screwed up after all. *sigh* Time for nwnx_easy to make its debut return.

Ah, didn't know about that. I just grabbed what was on the Downloads page. I see the link in your signature, so I'll give it a shot. Thanks.
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Wed Nov 18, 2009 20:14    Post subject: Reply with quote

I've just updated it. This includes my patch, the latest trunk, a better nwnx2.ini and some guidance in the readme as to what the requirements are. It also includes nwnx_leto since, despite being old and inferior to nwnx_ruby, most systems which make use of these functions use leto, and it's an important part of NWNX which seems a little difficult to track down.
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Wed Dec 02, 2009 9:45    Post subject: Reply with quote

nwnx easy isn't working.

checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no

Running ubuntu 9.10
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Wed Dec 02, 2009 19:59    Post subject: Reply with quote

That's your build environment, not the package. Have you installed the required dependencies, listed in README?
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Wed Dec 02, 2009 20:43    Post subject: Reply with quote

yes sir. I am new to compiling things obviously. I tried to look for these things it said "no" to with no luck. I need help.
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Thu Dec 03, 2009 4:19    Post subject: Reply with quote

I've used NWNx_Easy to re-install NWNx on an Ubuntu machine, got all the plugins aboard and working, so the issue is certainly not with Easy.
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Thu Dec 03, 2009 4:51    Post subject: Reply with quote

When did you do this though? 9.10 just came out and other users on the ubuntu forums tried to compile this and couldn't It is saying I am not POSIX.1 compatible. I am on ubuntu which is right?
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Thu Dec 03, 2009 4:59    Post subject: Reply with quote

Here is the post.

http://ubuntuforums.org/showthread.php?p=8429951#post8429951

error

Code:
 make
g++  -mcpu=i386   -c -o nwnx2lib.o nwnx2lib.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
nwnx2lib.cpp: In function ‘void Configure()’:
nwnx2lib.cpp:362: warning: deprecated conversion from string constant to ‘char*’
nwnx2lib.cpp:369: warning: deprecated conversion from string constant to ‘char*’
nwnx2lib.cpp:374: error: ‘atoi’ was not declared in this scope
nwnx2lib.cpp:379: error: ‘atoi’ was not declared in this scope
nwnx2lib.cpp: In function ‘void Log(int, const char*, ...)’:
nwnx2lib.cpp:446: warning: format not a string literal and no format arguments
nwnx2lib.cpp:452: warning: format not a string literal and no format arguments
nwnx2lib.cpp: In constructor ‘startstop::startstop()’:
nwnx2lib.cpp:477: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:477: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
make: *** [nwnx2lib.o] Error 1
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Thu Dec 03, 2009 5:14    Post subject: Reply with quote

I did a redownload to see if something happened

I get this

Code:
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Thu Dec 03, 2009 6:14    Post subject: Reply with quote

I've had no troubles compiling the plugins on the new Ubuntu. I made sure I had the packages listed above, and also libstdc++6 and it went off without a hitch
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Thu Dec 03, 2009 10:54    Post subject: Reply with quote

"atoi was not declared in this scope" implies that either libc is not installed or there's a missing #include line somewhere. But your other error... that's weird. Are you sure that build-essential is installed?
Back to top
View user's profile Send private message
Goddard



Joined: 23 Nov 2009
Posts: 22

PostPosted: Fri Dec 04, 2009 9:09    Post subject: Reply with quote

I reinstalled my operating system and attempted to follow the quick install guide.

Ran this in my terminal window
Quote:
sudo apt-get install gcc build-essential zlib1g-dev libmysqlclient15-dev gperf ruby1.8-dev


cd to my nwnx path (i did it the slow way Very Happy )
Quote:
cd Downloads


Quote:
cd nwnx-easy


Ran install.sh
Quote:
./install.sh


This is my error.

Code:
[: 13: ruby1.8-dev: unexpected operator
[: 13: gtk-clearlooks-gperfection2-theme: unexpected operator
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.
make: *** No rule to make target `distclean'.  Stop.
Configuration failed - check the README and ensure you have all required packages installed.


This is on a fresh Ubuntu 9.10 install. They only thing that has been done is uninstalling gnome games empathy, evolution, orca, and I also installed the restricted extras, but I believe that is the only deviation I did from a vanilla install.

I also tried

Quote:
./configure --prefix=/home/goddard/Games/nwn --enable-debug


Get this error
Code:
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.


config.log
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by FULL-PACKAGE-NAME configure VERSION, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure --prefix=/home/username/Games/nwn --enable-debug

## --------- ##
## Platform. ##
## --------- ##

hostname = username-domain
uname -m = x86_64
uname -r = 2.6.31-15-generic
uname -s = Linux
uname -v = #50-Ubuntu SMP Tue Nov 10 14:53:52 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1859: checking for gcc
configure:1875: found /usr/bin/gcc
configure:1886: result: gcc
configure:2118: checking for C compiler version
configure:2126: gcc --version >&5
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2130: $? = 0
configure:2137: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
configure:2141: $? = 0
configure:2148: gcc -V >&5
gcc: '-V' option must have argument
configure:2152: $? = 1
configure:2175: checking for C compiler default output file name
configure:2197: gcc    conftest.c  >&5
configure:2201: $? = 0
configure:2239: result: a.out
configure:2258: checking whether the C compiler works
configure:2268: ./a.out
configure:2272: $? = 0
configure:2291: result: yes
configure:2298: checking whether we are cross compiling
configure:2300: result: no
configure:2303: checking for suffix of executables
configure:2310: gcc -o conftest    conftest.c  >&5
configure:2314: $? = 0
configure:2340: result:
configure:2346: checking for suffix of object files
configure:2372: gcc -c   conftest.c >&5
configure:2376: $? = 0
configure:2401: result: o
configure:2405: checking whether we are using the GNU C compiler
configure:2434: gcc -c   conftest.c >&5
configure:2441: $? = 0
configure:2458: result: yes
configure:2467: checking whether gcc accepts -g
configure:2497: gcc -c -g  conftest.c >&5
configure:2504: $? = 0
configure:2605: result: yes
configure:2622: checking for gcc option to accept ISO C89
configure:2696: gcc  -c -g -O2  conftest.c >&5
configure:2703: $? = 0
configure:2726: result: none needed
configure:2750: checking how to run the C preprocessor
configure:2790: gcc -E  conftest.c
configure:2797: $? = 0
configure:2828: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:2835: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2868: result: gcc -E
configure:2897: gcc -E  conftest.c
configure:2904: $? = 0
configure:2935: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:2942: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2982: checking for grep that handles long lines and -e
configure:3042: result: /bin/grep
configure:3047: checking for egrep
configure:3111: result: /bin/grep -E
configure:3116: checking for ANSI C header files
configure:3146: gcc -c -g -O2  conftest.c >&5
configure:3153: $? = 0
configure:3252: gcc -o conftest -g -O2   conftest.c  >&5
configure:3256: $? = 0
configure:3262: ./conftest
configure:3266: $? = 0
configure:3284: result: yes
configure:3308: checking for sys/types.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for sys/stat.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for stdlib.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for string.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for memory.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for strings.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for inttypes.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for stdint.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3308: checking for unistd.h
configure:3329: gcc -c -g -O2  conftest.c >&5
configure:3336: $? = 0
configure:3353: result: yes
configure:3371: checking size of void *
configure:3676: gcc -o conftest -g -O2   conftest.c  >&5
configure:3680: $? = 0
configure:3686: ./conftest
configure:3690: $? = 0
configure:3716: result: 8
configure:3732: checking for a sed that does not truncate output
configure:3798: result: /bin/sed
configure:3810: checking whether the C compiler accepts the -mtune=i386 flag
configure:3847: gcc -c -m32 -g -O2 -mtune=i386 -m32  conftest.c >&5
configure:3854: $? = 0
configure:3881: result: yes
configure:4001: checking for gcc
configure:4028: result: gcc
configure:4260: checking for C compiler version
configure:4268: gcc --version >&5
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4272: $? = 0
configure:4279: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
configure:4283: $? = 0
configure:4290: gcc -V >&5
gcc: '-V' option must have argument
configure:4294: $? = 1
configure:4297: checking whether we are using the GNU C compiler
configure:4350: result: yes
configure:4359: checking whether gcc accepts -g
configure:4497: result: yes
configure:4514: checking for gcc option to accept ISO C89
configure:4618: result: none needed
configure:4694: checking for g++
configure:4710: found /usr/bin/g++
configure:4721: result: g++
configure:4748: checking for C++ compiler version
configure:4756: g++ --version >&5
g++ (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4760: $? = 0
configure:4767: g++ -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
configure:4771: $? = 0
configure:4778: g++ -V >&5
g++: '-V' option must have argument
configure:4782: $? = 1
configure:4785: checking whether we are using the GNU C++ compiler
configure:4814: g++ -c  -g -mtune=i386 -pipe -m32  conftest.cpp >&5
configure:4821: $? = 0
configure:4838: result: yes
configure:4847: checking whether g++ accepts -g
configure:4877: g++ -c -g -g -mtune=i386 -pipe -m32  conftest.cpp >&5
configure:4884: $? = 0
configure:4985: result: yes
configure:5011: checking for ANSI C header files
configure:5179: result: yes
configure:5189: checking for sys/wait.h that is POSIX.1 compatible
configure:5225: gcc -c -g -mtune=i386 -pipe -m32 -g -O2 -g -mtune=i386 -pipe -m32  conftest.c >&5
In file included from /usr/include/features.h:378,
                 from /usr/include/sys/types.h:27,
                 from conftest.c:20:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
configure:5232: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <sys/types.h>
| #include <sys/wait.h>
| #ifndef WEXITSTATUS
| # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
| #endif
| #ifndef WIFEXITED
| # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
| #endif
|
| int
| main ()
| {
|   int s;
|   wait (&s);
|   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|   ;
|   return 0;
| }
configure:5247: result: no
configure:5282: checking fcntl.h usability
configure:5299: gcc -c -g -mtune=i386 -pipe -m32 -g -O2 -g -mtune=i386 -pipe -m32  conftest.c >&5
In file included from /usr/include/features.h:378,
                 from /usr/include/stdio.h:28,
                 from conftest.c:20:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
configure:5306: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <fcntl.h>
configure:5320: result: no
configure:5324: checking fcntl.h presence
configure:5339: gcc -E -g -mtune=i386 -pipe -m32  conftest.c
In file included from /usr/include/features.h:378,
                 from /usr/include/fcntl.h:27,
                 from conftest.c:20:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
configure:5346: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "FULL-PACKAGE-NAME"
| #define PACKAGE_TARNAME "full-package-name"
| #define PACKAGE_VERSION "VERSION"
| #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <fcntl.h>
configure:5360: result: no
configure:5393: checking for fcntl.h
configure:5402: result: no

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_fcntl_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_wait_h=no
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_sizeof_void_p=8
ax_cv_c_check_flag__mtune_i386=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -mtune=i386 -pipe -m32 -g -O2'
CPP='gcc -E'
CPPFLAGS='-g -mtune=i386 -pipe -m32 '
CXX='g++'
CXXFLAGS='-g -O2'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
EXTRAPLUGINDIRS=''
GREP='/bin/grep'
LDFLAGS='-g -m32 '
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
PACKAGE_NAME='FULL-PACKAGE-NAME'
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
PACKAGE_TARNAME='full-package-name'
PACKAGE_VERSION='VERSION'
PATH_SEPARATOR=':'
SED='/bin/sed'
SHELL='/bin/bash'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/username/Games/nwn'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "FULL-PACKAGE-NAME"
#define PACKAGE_TARNAME "full-package-name"
#define PACKAGE_VERSION "VERSION"
#define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define SIZEOF_VOID_P 8
#define STDC_HEADERS 1

configure: exit 1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group