Mac Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsMac Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 24th, 2007, 02:18 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 431 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 18 h 50 m 36 sec
Reputation Power: 349
Compiling Linux Apps on the Mac

Good Evening folks,

Has anyone had sucess compiling Linux Programs on the Mac.
I have tried twice on OSX10.3 without any luck.

I tried following some instructions off of a website.
It said I had to install developer tools, which I did.

In my last attempt I was trying to install A program called Cronolog.

My first step was to uncompress the files in the finder.
From there I switched over to the terminal and navigated to
the said uncrompessed folder.

I then typed in the command "./configure"
which seemed to be ok.

Then I typed the command "make" and then
"make install"
to which the terminal returned:



Code:
$ make install Making install in lib gcc -
DPACKAGE=\"cronolog\" -DVERSION=\"1.6.2\" -
DTM_IN_SYS_TIME=1 -Dsize_t=unsigned -
DTM_IN_SYS_TIME=1 -DHAVE_STRFTIME=1 -
DHAVE_VPRINTF=1 -DHAVE_MKDIR=1 -DHAVE_MKTIME=1 -
DHAVE_PUTENV=1 -DHAVE_STRPTIME=1 -
DHAVE_LOCALTIME_R=1  -I. -I.      -g -O2 -c getopt.c 
getopt.c:45:19: stdio.h: No such file or directory 
getopt.c:121: error: `NULL' undeclared here (not in a 
function) getopt.c: In function `_getopt_initialize': 
getopt.c:400: error: `NULL' undeclared (first use in this 
function) getopt.c:400: error: (Each undeclared identifier is 
reported only once getopt.c:400: error: for each function it
 appears in.) getopt.c: In function `_getopt_internal': 
getopt.c:522: error: `NULL' undeclared (first use in this
 function) getopt.c:678: error: `stderr' undeclared (first use
 in this function) make[1]: *** [getopt.o] Error 1 make: 
*** [install-recursive] Error 1 


Previously I had tried installing mySQL to which I
had a similar problem, so I just installed It from A binary
Install Package.

If anyone has any thoughts, theories, comments or ideas
they would be greatly appreciated.
Or If anyone knows of any websites or
doccumentation on the subject that would also be A big help.

Cheers
Benno32

Reply With Quote
  #2  
Old March 24th, 2007, 04:34 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
perhaps cronolog is installable with fink? fink is a neat little program that compiles ports for use on a mac, take a look.

Your specific problem here though is that it hasn't been given the path to the headers directory.

Try doing ./configure --includedir=/path/to/headers
Comments on this post
SimonGreenhill agrees: yes, get fink or ports for the mac - it makes life SO much easier

Reply With Quote
  #3  
Old March 24th, 2007, 11:51 PM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 431 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 18 h 50 m 36 sec
Reputation Power: 349
fink

Thank you for replying,


Unfortunately trying:
Quote:
Originally Posted by LinuxPenguin
./configure --includedir=/path/to/headers

did not work.

However I did go ahead and download the unfortunately named "fink"

Quote:
Originally Posted by LinuxPenguin
perhaps cronolog is installable with fink? fink is a neat little program that compiles ports for use on a mac, take a look.


I installed the program and launched the GUI app "Fink commander"
I updated the package list and I have a large list of about 223 packages.

Can I only install these packages?
Cronolog Is not in this list Is there any way of adding it
or using fink to install It?

Regards
Benno32

Reply With Quote
  #4  
Old March 25th, 2007, 04:15 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
If it's not in fink, you can't install it with fink. It might be in MacPorts (formerly DarwinPorts), though i can't get a package list on their site and I don't own a mac.

Reply With Quote
  #5  
Old March 25th, 2007, 04:31 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 431 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 18 h 50 m 36 sec
Reputation Power: 349
thanks

The program isn't very important to me so I won't pursue It further. I was interested mainly for the purpose of the exercise. Obviously there are some majour differences between the way Linux Is set up and the way Mac OSX Is set up.

Thanks for your help
Benno32

Reply With Quote
  #6  
Old March 25th, 2007, 05:22 AM
edman007's Avatar
edman007 edman007 is offline
Trapped on the forums...help
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Aug 2003
Location: /Users/edman007
Posts: 4,617 edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)edman007 User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate FolderFolding Points: 67263 Folding Title: Intermediate Folder
Time spent in forums: 1 Month 3 Weeks 3 Days 4 h 34 m 24 sec
Reputation Power: 787
Send a message via AIM to edman007
its in DarwinPorts, so i suggest you just use that, just install it and install cronolog with that, it should be pretty simple and painless

[EDIT]
BTW, the differences are very minor, its mostly just a few moved around headers and the gcc/g++ arguments can be a bit different, i have actually successfully ported an OpenGL video game to linux when i had almost knowlage about C and gcc, i just have to find all the missing headers and made a few modifications to the source and gcc commands to make it work, pretty much all of the source should be the same
__________________
Feed ME

Last edited by edman007 : March 25th, 2007 at 05:29 AM.

Reply With Quote
  #7  
Old March 26th, 2007, 03:21 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 431 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 18 h 50 m 36 sec
Reputation Power: 349
mac ports

Allright I'll install MacPorts.
but their website says I need "X11" Installed,
so i'll do that first.
I've been using Macs for 5 years and PC's for 12 years,
all this Unix stuff I s a new journey for me.

Reply With Quote
  #8  
Old March 27th, 2007, 08:02 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
On further investigation, macports != darwinports, please use the link edman provided

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsMac Help > Compiling Linux Apps on the Mac


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway