Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » BSD make: strange issue
BSD make: strange issue [message #20722] Wed, 01 April 2009 22:27 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I was trying to enhance src version to build with (PC-)BSD and encountered this strange issue:

make: don't know how to make ide/app.tpp/Aboutn-us.tppi. Stop
*** Error code 2


The offending line is obviously:

      ide/app.tpp/About$$en-us.tppi \


Now it looks like BSD make for whatever reason interprets "$$e" as empty string. That is weird, as '$$' should be escape sequence for '$', even according to BSD make manual page.

Does anybody know what is going on now here? Is there any other way how to escape '$'?

Mirek
Re: BSD make: strange issue [message #20730 is a reply to message #20722] Thu, 02 April 2009 10:53 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi Mirek,

try to build with gmake (should already be installed).
At least I use it for the FreeBSD port to avoid bothersome errors.

Matthias
Re: BSD make: strange issue [message #20735 is a reply to message #20722] Thu, 02 April 2009 17:29 Go to previous messageGo to next message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
Have you tried to enclose the filename in single quotes to prevent expansion (i;e. '<filename>') ?
Re: BSD make: strange issue [message #20736 is a reply to message #20735] Fri, 03 April 2009 08:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
victorb wrote on Thu, 02 April 2009 11:29

Have you tried to enclose the filename in single quotes to prevent expansion (i;e. '<filename>') ?


Does not work...

Mirek
Re: BSD make: strange issue [message #20740 is a reply to message #20736] Fri, 03 April 2009 13:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, there is unfortunate thing about make/gmake - gmake is not available (as command) in Linux and we need to use it in "top" makefile (see src package for details).

Any idea?

Mirek
Re: BSD make: strange issue [message #20741 is a reply to message #20740] Fri, 03 April 2009 14:14 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
I remember that I used $(MAKE) inside top Makefile for 2008.1 release. This seems to be set accordingly if gmake is invoked on top Makefile (on FreeBSD). I am not sure about that, but I will investigate soon. Maybe this is also a define used by ports infrastructure only.

If it is not defined automatically one can call "make MAKE=gmake" or maybe use a wrapper script to do this Wink (there we are ones again using shell scripts).

By the way, can you adapt Makefile export to scheme that is used for 2008.1 release that uses some variable assignments to set up commands etc.?

Matthias
Re: BSD make: strange issue [message #20742 is a reply to message #20741] Fri, 03 April 2009 14:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
masu wrote on Fri, 03 April 2009 08:14

I remember that I used $(MAKE) inside top Makefile for 2008.1 release. This seems to be set accordingly if gmake is invoked on top Makefile (on FreeBSD). I am not sure about that, but I will investigate soon. Maybe this is also a define used by ports infrastructure only.

If it is not defined automatically one can call "make MAKE=gmake" or maybe use a wrapper script to do this Wink (there we are ones again using shell scripts).

By the way, can you adapt Makefile export to scheme that is used for 2008.1 release that uses some variable assignments to set up commands etc.?

Matthias


It should be basically the same, I have only changed it to use relative paths....

Mirek
Re: BSD make: strange issue [message #20743 is a reply to message #20742] Fri, 03 April 2009 14:25 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Replace all 'make' calls inside small Makefile with $(MAKE), I am quite sure that 'gmake' is also called if you invoke make process with 'gmake'.

Matthias
Re: BSD make: strange issue [message #20745 is a reply to message #20743] Fri, 03 April 2009 14:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
masu wrote on Fri, 03 April 2009 08:25

Replace all 'make' calls inside small Makefile with $(MAKE), I am quite sure that 'gmake' is also called if you invoke make process with 'gmake'.

Matthias


Well, actually, I am now considering that we should replace Makefile with "install" script...

Mirek
Re: BSD make: strange issue [message #20753 is a reply to message #20745] Sat, 04 April 2009 10:25 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, a new issue:)

How to deal with -lld?

I mean, it says it cannot find ld...

Mirek

[Updated on: Sat, 04 April 2009 10:25]

Report message to a moderator

Re: BSD make: strange issue [message #20783 is a reply to message #20753] Tue, 07 April 2009 11:03 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
I never saw that on the command line.
Do you mean -ldl?

Matthias
Re: BSD make: strange issue [message #20784 is a reply to message #20783] Tue, 07 April 2009 11:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, sorry.

Now I see that FREEBSD does not have it (in package organizer).

I guess dlopen (etc.) is in standard library.

Mirek
Re: BSD make: strange issue [message #20785 is a reply to message #20784] Tue, 07 April 2009 12:01 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Quote:

I guess dlopen (etc.) is in standard library.

Yes it is included in libc:
http://www.freebsd.org/cgi/man.cgi?query=dlopen&sektion= 3.

Matthias
Re: BSD make: strange issue [message #20792 is a reply to message #20785] Tue, 07 April 2009 23:05 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
I tried to use $(MAKE) in a test makefile and it seems to be defined accordingly as gmake or make (depends on what is called).
Tested platforms:
- FreeBSD
- Linux (Ubuntu)
- OpenBSD

Matthias
Previous Topic: src release
Next Topic: Another BSD patch
Goto Forum:
  


Current Time: Thu Mar 28 20:12:55 CET 2024

Total time taken to generate the page: 0.01581 seconds