LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-12-2004, 02:05 PM   #16
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30

Well, after I worked out some problems with libsdl, I ran ./configure gmake and gmake install and everything went fine. The program works perfectly and I didn't receive any errors. This was done on a mandrake box. I'm now going to try it on knoppix, suse, and then freebsd to see if I can figure it out.

At this point, I think your problems have something to do with nasm. This addrni.o/.asm seems to be causing a segfault in nasm. Do you think you can tell me what version of nasm you're using? Also, maybe trying a different version may help, but wait on that because I'm not quite sure yet.

So I'm going to wait to you tell me what version of nasm you have so I can install and see if that is causing the segfault, and until then I'll compile zsnes on as many different types of machines as possible.
 
Old 07-12-2004, 02:32 PM   #17
norskkriger
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by Inexactitude
Well, after I worked out some problems with libsdl, I ran ./configure gmake and gmake install and everything went fine. The program works perfectly and I didn't receive any errors. This was done on a mandrake box. I'm now going to try it on knoppix, suse, and then freebsd to see if I can figure it out.

At this point, I think your problems have something to do with nasm. This addrni.o/.asm seems to be causing a segfault in nasm. Do you think you can tell me what version of nasm you're using? Also, maybe trying a different version may help, but wait on that because I'm not quite sure yet.

So I'm going to wait to you tell me what version of nasm you have so I can install and see if that is causing the segfault, and until then I'll compile zsnes on as many different types of machines as possible.

Hey thanks i really appreciate you trying to help, my current version of nasm is:
"NASM version 0.98.37 compiled on Sep 5 2003"
 
Old 07-12-2004, 05:33 PM   #18
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Sorry, I haven't been able compile the program on another system yet.

It seems my version of nasm is only about a month older than yours:

Code:
NASM version 0.98.38 compiled on Oct 13 2003
Maybe I'm wrong about nasm, since our versions are probably almost identical. Maybe it's gmake itself. I'm using version 3.80, check to see what version you're using. Are you getting the error as soon as you execute gmake or is it working for a while and then giving you the error?

As I said, I'm going to compile this program on all my different machines tonight and see if I can figure out what the problem is. I just wish that I had a slackware box so I can have an environment more similiar to yours.
 
Old 07-13-2004, 09:18 AM   #19
ultrabomberman
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
You said you worked out a problem with libSDL. Can you go into detail on that?

I'm having trouble getting Freevo outputting to dfbmga (direct framebuffer for my Matrox G400), and my friend thinks it's an SDL issue, but we can't figure it out. Maybe fixing the SDL problem can kill two birds.

Last edited by ultrabomberman; 07-13-2004 at 09:19 AM.
 
Old 07-13-2004, 03:30 PM   #20
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
For me, the configure script couldn't locate the sdl-config script, which I didn't have because the version of sdl installed with my operating system seemed a little messed up. After that I just compiled SDL from source, and everything worked fine. This isn't going to do much for you, but it may very well help your friend out if he/she is indeed having problems with SDL.
 
Old 07-13-2004, 08:48 PM   #21
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Well, I was successful in my attempts to compile it on knoppix. I compiled it using nasm 0.98.36, so I guess it doesn't have anything to with nasm. Right now, I'm basically totally stumped. If you want, I can make the binary that I compiled available to you, and it should work decently. Email if you want me to do that.

I'm sorry, but for now I don't know what to say. I'll try it in a bsd setup and see what happens. I'll play around with some environments and see if I can pinpoint the problem.
 
Old 07-13-2004, 10:49 PM   #22
norskkriger
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian
Posts: 12

Rep: Reputation: 0
I upgraded to Slackware 10 and ZSNES compiled with ease
 
Old 07-14-2004, 04:21 AM   #23
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Well that basically tells us that the problem lies with software provided by the Slackware 9.1 distrobution. Once we can figure out what piece of software is the problem, we can probably just recompile that particular package and then things would be going good. This is a problem though, since it's sort of hard to figure out what exactly is causing the problem here. It's either gmake, nasm or gcc. What makes me think it's nasm is that it's an assembly file which it is stumbling on. Still, it can be gmake. My course of action would be to compile a new version nasm, and if it continues, to compile a new version of gmake. This can lead to a lot of work however, but from what I see now seems like the only thing to do, especially since I can't replicate the error myself and use my own machines to test it.

As I said before, if you want I'll make the binaries I compiled available to you, just email me and I'll set it up.
 
Old 07-14-2004, 04:01 PM   #24
ultrabomberman
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
I use Slackware 9.1 and all I did was upgrade NASM to 0.98.38 (from 0.98.37). It now compiles!
 
Old 07-14-2004, 05:31 PM   #25
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
That's great man. So I guess was right along, just a simple recompile of nasm would have worked. Well, have fun with the games.
 
Old 07-15-2004, 02:00 PM   #26
ultrabomberman
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
Yeah, I was thinking that. One ten-thousandth of a version can make such a difference!

Also, for anyone who finds this thread, if you want to enable Direct Framebuffer output for your Matrox G400/G450 (dfbmga), download this patch:
http://68.44.113.145/PATCHES/zsnes-dfbmga-sdl.patch

which is from http://freevo.webalias.com

Then

patch -p1 < zsnes-dfbmga-sdl.patch

from the topmost zsnes directory.
 
Old 07-19-2004, 12:41 AM   #27
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
Quote:
Originally posted by ultrabomberman
gmake doesn't work any better for me than make does.
doesn't make any sense does it.....?
 
Old 07-19-2004, 03:47 AM   #28
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
I have to say, this is some of the strangest source I've ever seen. It compiles on some things, and not on others, for seemingly no reasons. Well, at least everyone seems to have it working now.
 
  


Reply



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
Segmentation fault when compiling kernel Baix Slackware 27 06-16-2011 11:22 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
GCC Compiling (Linux), "Segmentation Fault" Kenji Miyamoto Programming 2 01-13-2005 01:44 AM
compiling in gcc goes well, gives segmentation fault jshine Programming 6 12-19-2004 01:08 AM
Slackwaer 9.1 GCC Compiling Segmentation Fault kdepa Slackware 2 03-15-2004 06:31 PM

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

All times are GMT -5. The time now is 05:29 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
Open Source Consulting | Domain Registration