LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2008, 10:00 PM   #1
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Rep: Reputation: 33
Error compiling Zsnes...


Hey,

I'm trying to compile and install Zsnes 1.51 and I'm coming across an error. The error occurs at the end. I'm not exactly sure why I'm encountering the error.

Code:
[Elwood@localhost src]$ sudo sh ./autogen.sh && gmake && gmake install
Generating build information using aclocal and autoconf...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for initscr in -lpdcurses... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking for JMA support... yes
checking for cpu info... found
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... native
checking if you want crazy optimizations... no
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 whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


ZSNES v1.51

SDL support                   Version 1.2.13
NASM support                  NASM version 2.01 compiled on Feb 20 2008
zlib support                  Version 1.2.3
PNG support                   Yes, version 1.2.29
OpenGL support                Yes
JMA support                   Yes
ZSNES debugger                Enabled

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.

g++  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp
g++  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
In file included from tools/strutil.cpp:23:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34: error: ‘strncasecmp’ was not declared in this scope
gmake: *** [tools/strutil.o] Error 1
All help is much appreciated.

Thanks,

Brandon

Last edited by BallsOfSteel; 06-25-2008 at 10:02 PM.
 
Old 06-26-2008, 04:29 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Which distro are you using ?? Linux "name" and "version" ??
Just an idea : Add it to your profile here at LQ.

Zsnes 1.51 compiles with no errors or warnings.
(gcc 4.1.1, NASM version 0.98.39)

Rgds
 
Old 06-26-2008, 11:17 PM   #3
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Original Poster
Rep: Reputation: 33
I'm running Fedora 9 on a Gateway M-152S laptop

Brandon
 
Old 06-27-2008, 11:25 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Zsnes 1.51 compiles fine with gcc-4.2.3, g++-4.2.3 too,
but not with gcc-4.3, g++-4.3 .

The options are ..1) Rewrite the software to be up to date with 4.3
..2) Compile on another distro or a live distro e.g. PCLinuxOS2007.

..3) Install gcc/gcc-c++ version 4.1.1 or 4.2.3 and change the linking
in /usr/bin to the needed versions. (I find linking to be the easiest
way, instead of pointing to a specific compiler (in the Makefile))

..4) I can try mailing you my result, the binary "zsnes" from Mandriva
2008.1 compiled with 4.2.3 , if you add this option to your profile at
LQ. The file is 3.2 MB. It may work in Fedora 9.

Rgds

Last edited by knudfl; 06-27-2008 at 05:47 PM.
 
Old 06-27-2008, 01:48 PM   #5
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Original Poster
Rep: Reputation: 33
I'm not exactly sure which version of gcc I have as I am not home right now nor do I have my laptop with me. I edited my profile to allow email. So, go right on ahead and try emailing it over to me and I'll give it a whirl.

Thanks,

Brandon
 
Old 06-28-2008, 04:22 PM   #6
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Original Poster
Rep: Reputation: 33
SOLVED! Thanks Knud.

Brandon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZSNES Terminal Error fedorauser15 Linux - Software 4 06-04-2008 06:48 PM
ZSNES 1.41 error in Ubuntu 6.10 bookerg Linux - Software 2 08-05-2007 10:13 AM
ZSNES compiling error ZakuSage Linux - Software 2 08-15-2005 11:10 AM
ZSNES error when switching to Open GL mode kaega2 Linux - Software 0 09-01-2004 10:36 PM
Segmentation Fault when compiling ZSNES downinthemine Linux - Software 27 07-19-2004 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration