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 
 
Can't compile on SuSE 10.1 (32 bit)

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



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Fri Jan 30, 2009 12:33    Post subject: Can't compile on SuSE 10.1 (32 bit) Reply with quote

I try to compile the current svn (first time i compile for myself the new version) and have installed all requiered packages i think, but after gcc detection on ./configure (i have a 3.x version of this) the configure ends with a error so i can't try the new beta plugins. Since version 2.6 i used only precompiled libs, but on my system i can't get the odbc2 plugin running without error while i can only use localhost to connect via mysql and a error with the socket message appear. I solved this with a cp -s /mylocation/mysql.sock /tmp/mysql.sock, but i be willing to compile the libs by myself.

Can anyone post me the right commandline to compile the whole svn and which packages are requiered. The path to my nwn is /home/nwn and to the source /home/nwn/nwnx_src ... perhaps i thinking wrong.

Mybe someone can share precompiled svn libs, so i can test it without to compile it...

Btw, i forgot to say that the socket parameter seems not to work in the current compiled odbc2 lib ... i tried it with the correct path to my socket but it tries to use the default one...
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Mon Feb 02, 2009 11:20    Post subject: Reply with quote

Make sure you have the C++ headers installed, along with the mysql headers and zlib headers. The header packages normally end with -dev.

If there's still a problem, post the output of ./configure here.
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Feb 03, 2009 11:05    Post subject: Reply with quote

Sometimes i feel like a novice Wink

I have forgotten to reinstall the developer packages as i last time updated my server. Now i can compile the source, but i have one more error or mistake inside i must investigate. Only nwnx2.so, nwnx_chat.so and nwnx_odbc.so will be created when i use ./install.sh ...

Maybe a parameter is missing...

Here the output from ./configure
Quote:

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 for void *... yes
checking size of void *... 4
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... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins/chat/Makefile
config.status: creating plugins/db/Makefile
config.status: creating plugins/defenses/Makefile
config.status: creating plugins/events/Makefile
config.status: creating plugins/fixes/Makefile
config.status: creating plugins/funcs/Makefile
config.status: creating plugins/functions/Makefile
config.status: creating plugins/hashset/Makefile
config.status: creating plugins/mnx/Makefile
config.status: creating plugins/odmbc/Makefile
config.status: creating plugins/profiler/Makefile
config.status: creating plugins/reset/Makefile
config.status: creating plugins/resman/Makefile
config.status: creating plugins/ruby/Makefile
config.status: creating plugins/spells/Makefile
config.status: creating plugins/structs/Makefile
config.status: creating plugins/system/Makefile
config.status: creating plugins/tmi/Makefile
config.status: creating plugins/tweaks/Makefile
config.status: creating plugins/weapons/Makefile
config.status: creating config.h

_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Feb 03, 2009 11:18    Post subject: Reply with quote

I have tested to make nwnx_defenses manualy and get a error at the end - which additional packages i need to compile the whole packages?

Quote:

gperf -L ANSI-C -tCG -m 10 -K name -H DefensesStrCommandHash \
-N DefensesStrCommandLookup -W DefensesStrCommandList \
"DefensesStrCmds.gperf" --output-file="gperf.out"
/bin/sh: gperf: command not found
make: *** [DefensesStrCmds.h] Error 127


... i found it - the gperf Hashfunction package must be installed to compile the whole nwnx2 package. Possible someone can make a check for this in ./configure ...
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
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