Re: Need bsd make for AIX
On Thu, Sep 16, 2010 at 12:40 PM, wrote: > We have some open source code for RPC calls - DCE that has c programs and > corresponding makefiles. > When we tried gmake or make ( AIX make) , we were getting syntax errors. > We found that all the makefiles had syntax that corresponds to makeutility > of BSD? > > Do you have any alternative? > Is there any BSD make utility that can be installed in AIX machine? > > Srividya K > Tata Consultancy Services > Mailto: srividy...@tcs.com > Website: http://www.tcs.com > Perhaps you could contact the authors of the code you are trying to compile and ask them how they did it. They might have a straightforward solution and maybe a reason as to why they chose BSD make Also, have you tried bmake? Regards Gautham Ganapathy http://lisphacker.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
On 09/17/10 12:58, Ivan Voras wrote: I don't claim the patched make will work perfectly but it works for simple cases :) Also archived here (with the lc.h missed in previous version): http://people.freebsd.org/~ivoras/diffs/make-lc.patch ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
On 09/17/10 05:14, Chuck Robey wrote: On 09/16/10 20:34, Ivan Voras wrote: On 09/16/10 08:58, srividy...@tcs.com wrote: Hi Is there any BSD make versions available for AIX platform? We require the make utility of BSD to compile few source programs. Is there any make utility compatible with AIX? Could you please give us the URL where we can get the same? FreeBSD's make is an integral part of the FreeBSD file system. It is not created to be compatible across systems, but it is also not created to prevent this kind of porting. Wow. I disagree. It's been modified over the years to depend heavily on a set of libraries that are available nowhere else but FreeBSD. This was The fact that it can be compiled with "gcc '-DDEFSHELLNAME="sh"' -o make *.c" indicates that it in fact doesn't use any libraries except for libc... done (from what I can see) in the name of elegance ... because the actual functions ARE available elsewhere, but a bunch of modifications need to be added, no possible way is it going to compile anywhere else. Oh you're exaggerating, it's not that hard. I've made the attached patch in about 20 minutes, and most of it is including the small "lc.h" ad-hoc Linux compatibility header. I don't claim the patched make will work perfectly but it works for simple cases :) diff -u ../make/arch.c ./arch.c --- ../make/arch.c 2010-09-17 12:56:04.0 +0200 +++ ./arch.c2010-09-17 12:28:59.0 +0200 @@ -38,6 +38,7 @@ * @(#)arch.c 8.2 (Berkeley) 1/2/94 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/buf.c ./buf.c --- ../make/buf.c 2010-09-17 12:56:04.0 +0200 +++ ./buf.c 2010-09-17 12:30:01.0 +0200 @@ -40,6 +40,7 @@ * @(#)buf.c 8.1 (Berkeley) 6/6/93 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/cond.c ./cond.c --- ../make/cond.c 2010-09-17 12:56:04.0 +0200 +++ ./cond.c2010-09-17 12:30:25.0 +0200 @@ -39,6 +39,7 @@ * @(#)cond.c 8.2 (Berkeley) 1/2/94 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/dir.c ./dir.c --- ../make/dir.c 2010-09-17 12:56:04.0 +0200 +++ ./dir.c 2010-09-17 12:30:56.0 +0200 @@ -39,6 +39,7 @@ * @(#)dir.c 8.2 (Berkeley) 1/2/94 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/for.c ./for.c --- ../make/for.c 2010-09-17 12:56:04.0 +0200 +++ ./for.c 2010-09-17 12:31:32.0 +0200 @@ -32,6 +32,7 @@ * @(#)for.c 8.1 (Berkeley) 6/6/93 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/hash.c ./hash.c --- ../make/hash.c 2010-09-17 12:56:04.0 +0200 +++ ./hash.c2010-09-17 12:37:44.0 +0200 @@ -39,6 +39,7 @@ * @(#)hash.c 8.1 (Berkeley) 6/6/93 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); diff -u ../make/hash_tables.c ./hash_tables.c --- ../make/hash_tables.c 2010-09-17 12:56:04.0 +0200 +++ ./hash_tables.c 2010-09-17 12:37:58.0 +0200 @@ -4,6 +4,7 @@ * auto-generated from FreeBSD: src/usr.bin/make/parse.c,v 1.114 2008/03/12 14:50:58 obrien Exp * DO NOT EDIT */ +#include "lc.h" #include #include "hash_tables.h" diff -u ../make/job.c ./job.c --- ../make/job.c 2010-09-17 12:56:04.0 +0200 +++ ./job.c 2010-09-17 12:38:12.0 +0200 @@ -39,6 +39,7 @@ * @(#)job.c 8.2 (Berkeley) 3/19/94 */ +#include "lc.h" #include __FBSDID("$FreeBSD$"); Only in .: lc.h Only in .: .lc.h.swp diff -u ../make/lst.c ./lst.c --- ../make/lst.c 2010-09-17 12:56:04.0 +0200 +++ ./lst.c 2010-09-17 12:38:23.0 +0200 @@ -36,7 +36,7 @@ * lst.c -- * Routines to maintain a linked list of objects. */ - +#include "lc.h" #include #include diff -u ../make/main.c ./main.c --- ../make/main.c 2010-09-17 12:56:04.0 +0200 +++ ./main.c2010-09-17 12:55:03.0 +0200 @@ -37,6 +37,8 @@ * * @(#)main.c 8.3 (Berkeley) 3/19/94 */ +#include "lc.h" +#undef __unused #ifndef lint #if 0 @@ -372,7 +374,7 @@ rearg: optind = 1; /* since we're called more than once */ - optreset = 1; +/* optreset = 1;*/ #define OPTFLAGS "ABC:D:d:E:ef:I:ij:km:nPpQqrSstV:vXx:" for (;;) { if ((optind < argc) && strcmp(argv[optind], "--") == 0) { @@ -529,7 +531,7 @@ MFLAGS_append("-q", NULL); break; case 'r': - noBuiltins = TRUE; + noBuiltins = !noBuiltins; MFLAGS_append("-r", NULL); break; case 'S': @@ -892,7 +894,7 @@ * Initialize file global variables. */ expandVars = TRUE; - noBuiltins = FALSE; /* Read the built-in rules */ + noBuiltins = TRUE; /* Read the built-in rules */ forceJobs = FALSE; /* No -j f
Re: Need bsd make for AIX
On 09/16/10 20:34, Ivan Voras wrote: On 09/16/10 08:58, srividy...@tcs.com wrote: Hi Is there any BSD make versions available for AIX platform? We require the make utility of BSD to compile few source programs. Is there any make utility compatible with AIX? Could you please give us the URL where we can get the same? FreeBSD's make is an integral part of the FreeBSD file system. It is not created to be compatible across systems, but it is also not created to prevent this kind of porting. Wow. I disagree. It's been modified over the years to depend heavily on a set of libraries that are available nowhere else but FreeBSD. This was done (from what I can see) in the name of elegance ... because the actual functions ARE available elsewhere, but a bunch of modifications need to be added, no possible way is it going to compile anywhere else. I ported it a few years ago to Linux, so I know it can be moved, but it's not a trivial job. Too bad, because it's a fine tool, and all those mods added no functionality that I can see. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
On 09/17/10 02:34, Ivan Voras wrote: > FreeBSD's make is an integral part of the FreeBSD file system. It is not heh... *operating* system :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
On 09/16/10 08:58, srividy...@tcs.com wrote: > Hi > Is there any BSD make versions available for AIX platform? > We require the make utility of BSD to compile few source programs. > > Is there any make utility compatible with AIX? Could you please give us > the URL where we can get the same? FreeBSD's make is an integral part of the FreeBSD file system. It is not created to be compatible across systems, but it is also not created to prevent this kind of porting. With a command like: svn co http://svn.freebsd.org/base/head/usr.bin/make you can fetch the sources for the BSD make. If you have a gcc compiler installed you can compile the BSD make with a command like: gcc '-DDEFSHELLNAME="sh"' -o make *.c Note that the Makefile included with BSD make is in BSD make format so you need to bootstrap it like in the above command; the quotes around -D are needed. There is absolutely no guarantee this will work on your system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
On 16/09/2010 12:40:24, srividy...@tcs.com wrote: > We have some open source code for RPC calls - DCE that has c programs and > corresponding makefiles. > When we tried gmake or make ( AIX make) , we were getting syntax errors. > We found that all the makefiles had syntax that corresponds to makeutility > of BSD? > > Do you have any alternative? > Is there any BSD make utility that can be installed in AIX machine? You could try this: http://www.crufty.net/help/sjg/bmake.html but I just found that after 2 seconds of searching with google and I have no idea if it works under AIX or not. There'd be no problem if someone wanted to take the BSD make sources and port them to AIX, but AFAIK, no one has ever wanted to do that, or at least, has never owned up to doing that in public that I've ever heard of. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Need bsd make for AIX
On Thu, Sep 16, 2010 at 8:58 AM, wrote: > Hi > Is there any BSD make versions available for AIX platform? > We require the make utility of BSD to compile few source programs. > > Is there any make utility compatible with AIX? Could you please give us > the URL where we can get the same? > > > > Srividya K > Tata Consultancy Services > Mailto: srividy...@tcs.com > Website: http://www.tcs.com > > Srividya K > Tata Consultancy Services > Mailto: srividy...@tcs.com > Website: http://www.tcs.com > > Experience certainty. IT Services > Business Solutions > Outsourcing > > =-=-= > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > u can always GNU make http://www.gnu.org/software/make/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Need bsd make for AIX
We have some open source code for RPC calls - DCE that has c programs and corresponding makefiles. When we tried gmake or make ( AIX make) , we were getting syntax errors. We found that all the makefiles had syntax that corresponds to makeutility of BSD? Do you have any alternative? Is there any BSD make utility that can be installed in AIX machine? Srividya K Tata Consultancy Services Mailto: srividy...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing From: Masoom Shaikh To: srividy...@tcs.com Cc: freebsd-questions@freebsd.org Date: 09/16/2010 05:04 PM Subject: Re: Need bsd make for AIX On Thu, Sep 16, 2010 at 8:58 AM, wrote: > Hi >Is there any BSD make versions available for AIX platform? > We require the make utility of BSD to compile few source programs. > > Is there any make utility compatible with AIX? Could you please give us > the URL where we can get the same? > > > > Srividya K > Tata Consultancy Services > Mailto: srividy...@tcs.com > Website: http://www.tcs.com > > Srividya K > Tata Consultancy Services > Mailto: srividy...@tcs.com > Website: http://www.tcs.com > > Experience certainty. IT Services >Business Solutions >Outsourcing > > =-=-= > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > u can always GNU make http://www.gnu.org/software/make/ =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Need bsd make for AIX
Hi Is there any BSD make versions available for AIX platform? We require the make utility of BSD to compile few source programs. Is there any make utility compatible with AIX? Could you please give us the URL where we can get the same? Srividya K Tata Consultancy Services Mailto: srividy...@tcs.com Website: http://www.tcs.com Srividya K Tata Consultancy Services Mailto: srividy...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"