e390 [Solved] monsterwm won't compile (something with cflags) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old July 30th, 2012, 12:00
kalle97 kalle97 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default monsterwm won't compile (something with cflags)

When I run "make" I get this error:
Code:
make: don't know how to make cflags. Stop
I've only edited the Makefile's PREFIX to "/usr" instead of "/usr/local" so all relevant files should be here:

https://github.com/c00kiemon5ter/monsterwm

Thanks.
Reply With Quote
  #2  
Old July 30th, 2012, 13:04
kalle97 kalle97 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Solved.
Reply With Quote
  #3  
Old July 30th, 2012, 13:37
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

I'm guessing you used gmake(1) instead of make(1)?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old July 30th, 2012, 14:04
kalle97 kalle97 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I didn't know that FreeBSD had a different "make" than GNU/Linux.
Reply With Quote
  #5  
Old April 27th, 2013, 19:11
GreekGoddess87 GreekGoddess87 is offline
Junior Member
 
Join Date: Mar 2013
Location: /root
Posts: 8
Thanks: 2
Thanked 1 Time in 1 Post
Default

It actually doesn't work on me. I edited that too, but still the same errors. Isn't it true that source code for GNU/Linux won't compile on *BSD?
__________________
"put your faith in me, in every fantasy - the phuture is a saviour"
Reply With Quote
  #6  
Old April 27th, 2013, 19:52
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,007
Thanks: 44
Thanked 466 Times in 396 Posts
Default

It usually does assuming tools like devel/autoconf etc are used properly and the source code is of such nature that it doesn't make assumptions about the system. Source code that depends on the internals of the operating system is very rarely portable to other systems though.
Reply With Quote
  #7  
Old April 29th, 2013, 01:39
jozze jozze is offline
Junior Member
 
Join Date: Apr 2013
Location: Ribnica, Slovenia
Posts: 70
Thanks: 30
Thanked 14 Times in 13 Posts
Default

Try compiling with default settings, and see if it works. Then try adding more and more of your own settings to get to the root of the problem. Also, make sure your ports tree is up to date.

Usually, you shouldn't play with CFLAGS too much, since they're pretty well configured for each port. Any changes you make there will work for some packages but not for all in general, so you'd have to switch back and in some cases and recompile them again along with all dependencies, which makes it annoying in time.

There is also actually a pretty good reason, why you should keep stuff in /usr/local/ ... the thing is that /usr/ holds some parts of the base system. When you're upgrading your FreeBSD "world" and issue # make installworld, it may do some funny things to your installed packages there, but keeping things separate ensures your packages and their config files (yup ... /usr/local/etc/) remain intact throughout the whole procedure. Which is awesome (obviously!)

Last edited by jozze; April 29th, 2013 at 09:06.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] How do I change port compile options after first compile? michaelrmgreen Installation and Maintenance of FreeBSD Ports or Packages 2 February 15th, 2013 16:55
math/fftw3 - Variable CFLAGS is recursive. break19 Installation and Maintenance of FreeBSD Ports or Packages 11 September 25th, 2011 22:47
[Solved] WITH_DEBUG and CFLAGS sometimes are ignored kenorb Installation and Maintenance of FreeBSD Ports or Packages 2 November 11th, 2010 12:17
how to compile new BSD Distro Security-Defensive General 12 October 26th, 2010 07:40
What's better for upgrade base system ? + Question about CFLAGS elvis4526 Installing & Upgrading 7 August 4th, 2010 04:33


All times are GMT +1. The time now is 03:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0