It is currently Mon Aug 10, 2020 9:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: FreeBSD/PureBasic/FASM issues
PostPosted: Mon Oct 06, 2003 6:32 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 29, 2003 9:39 pm
Posts: 143
I have FreeBSD 5.0 running on a notebook which (for reasons I won't bother you with) will remain FreeBSD. As I use this machine quite commonly, I thought it would be kinda cool to try PureBasic on it.

I have another machine running RedHat 9.0, and I had PureBasic on that one some time ago. I created a "Hello, world" executable and I still had that executable. So I ftp'd it to the FreeBSD box, made certain the Linux compatibility stuff was loaded, and ran the program and it worked wonderfully. It doesn't do much, but it does say "Hello, world."

So, I decided to try installing the PureBasic development system. I put all the files where they go and was able to use the "pbcompiler" command. However, fasm gives me this:

/usr/bin/fasm: Exec format error. Binary file not executable.

So I examined the file using "brandelf" and found it is a SVR4 (I think) header, which is the same as "pbcompiler." Just for kicks, I did a:

brandelf -t Linux fasm

but it didn't help.

Any ideas? Anyone else gotten the compiler/fasm to work on FreeBSD?

Thanks,
Phil


Top
 Profile  
Reply with quote  
 Post subject: freeBSD
PostPosted: Sat Nov 08, 2003 12:12 pm 
Offline
User
User
User avatar

Joined: Fri Apr 25, 2003 5:18 pm
Posts: 68
Location: Netherlands
Hiya,

Yes the idea of PB linux version is that it is compiled for Linux code,
There BSD code is different it wont work!

Regards, Norman.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Nov 08, 2003 2:06 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Jun 29, 2003 9:39 pm
Posts: 143
Well, yes and no. FreeBSD has Linux compatibility built into it. I believe it actually has a Linux kernel it loads if you specify Linux compatibility. As I said in my post, I'm able to execute PB-compiled code, and other Linux executables. Just not FASM. I believe for complex files, FASM hoses the Elf header. Others over at the FASM user group have confirmed this, I believe.

Thanks!
Phil


Top
 Profile  
Reply with quote  
 Post subject: BSD
PostPosted: Sat Nov 08, 2003 5:38 pm 
Offline
User
User
User avatar

Joined: Fri Apr 25, 2003 5:18 pm
Posts: 68
Location: Netherlands
I did not know Fred included the possibility of BSD code because
it failed on my OpenBSD (which is different that FreeBSD) machine last year...(where it was using NASM)..

Well in that case Fasm is the problem.. I dont know the differance between
the ASM code or System calls in the kernel between Linux and BSD but its compatibility option is a way of using linux code under FreeBSD...

If you get it running post me a code example...:-)

Greetings, Pbdep.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 11, 2004 5:19 pm 
Offline
User
User

Joined: Thu Jul 17, 2003 10:03 pm
Posts: 35
Hi pthien,

I found this: http://viewcvs.dataloss.nl/index.cgi/fasm-freebsd/

I haven't tried it. If you try it and it works, please let me know ;)

-Karl


Top
 Profile  
Reply with quote  
 Post subject: Re: FreeBSD/PureBasic/FASM issues
PostPosted: Fri May 14, 2004 8:01 am 
Offline
User
User

Joined: Sun Apr 18, 2004 8:01 pm
Posts: 15
Location: Conroe TX
I don't know if this is what you are looking for but the following link takes you to flat-assembler which supports FreBSD, Linux and Windows.

http://flatassembler.net/download.php

_________________
Cheers, & Best Wishes
Linux user #169067

Mike T.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 19 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye