Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #20881] Make problem

0 views
Skip to first unread message

Waleed Hamad

unread,
Feb 12, 2003, 2:05:07 PM2/12/03
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by Waleed Hamad
# Please include the string: [perl #20881]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=20881 >

Hi,
I need your help if possible.

I just downloaded perl 5.6.1

I ran the Configure

Then, when I did run the make command I am getting this

make: *** No rule to make target `<built-in>', needed by `miniperlmain.o'.
Stop.

Do you know what am I missing??

Waleed


*****DISCLOSURE STATEMENT*****
This transmission may contain information which is confidential, proprietary
and privileged. If you are not the individual or entity to which it is
addressed, note that any review, disclosure, copying, retransmission or
other use is strictly prohibited. If you received this transmission in
error, please notify the sender immediately and delete the material from
your system. This transmission is for informational purposes only, and is
not intended as an offer or solicitation for the purchase or sale of any
financial instrument or as an official confirmation of any transaction. Any
information regarding specific investments or other products is not
warranted as to completeness or accuracy and is subject to change without
notice.


Andy Dougherty

unread,
Feb 12, 2003, 9:16:32 PM2/12/03
to perl5-...@perl.org
On 12 Feb 2003, Waleed Hamad wrote:

> I just downloaded perl 5.6.1

> make: *** No rule to make target `<built-in>', needed by `miniperlmain.o'.

The fix is simply to delete all the lines in 'makefile' that contain
the string '<built-in>'.

This is also fixed in perl-5.8.0, which you might consider using instead.



> Do you know what am I missing??

Nothing, really. It's a change in gcc-3's output that appeared after
5.6.1 was released.

--
Andy Dougherty doug...@lafayette.edu

Waleed Hamad

unread,
Feb 13, 2003, 9:53:09 AM2/13/03
to perlbug-...@perl.org
Andy,
Thank you so much for your quick response.
I will try that and get back to you very soon.

I do have a quick question though,
Our developers are the one requiring to run 5.6.1 and we do have 5.8.0 as
well
Here is the directory structure
/apps/perl/5.6.1 & /apps/perl/5.8.0

The question I have is,
I am trying to get about 40 CPANs installed on both versions.
Can I use the same ones from one of the versions and copy it over to the
other version or do I have to do it twice??

Please get back to me on this, and again thank you so much for your help.

Waleed

--
Andy Dougherty doug...@lafayette.edu


Waleed Hamad

unread,
Feb 13, 2003, 10:04:45 AM2/13/03
to perlbug-...@perl.org
Andy,
I just tried it and I was able to delete about 16 of them.

Ran the make command and I got the following


make: *** No rule to make target `<command', needed by `miniperlmain.o'.
Stop.

Does that mean I need to delete the <command line> as well??

Waleed Hamad

unread,
Feb 13, 2003, 10:05:50 AM2/13/03
to perlbug-...@perl.org, doug...@lafayette.edu

Waleed Hamad

unread,
Feb 13, 2003, 10:12:19 AM2/13/03
to perlbug-...@perl.org
Andy,
Sorry to keep bothering you with this,

I deleted both <build in> and <command line> from the makefile
Ran the make command again,
Things seemed to be working until the end of it, and here is a portion of
the output and please take a close look at the last 4 lines.

Making utilities
make[1]: Entering directory
`/sccm/admin/mbaker/src/perl-5.6.1-linux/perl-5.6.1/utils'
../miniperl -I../lib c2ph.PL
Extracting c2ph (with variable substitutions)
Linking c2ph to pstruct.
../miniperl -I../lib h2ph.PL
Extracting h2ph (with variable substitutions)
../miniperl -I../lib h2xs.PL
Extracting h2xs (with variable substitutions)
../miniperl -I../lib perlbug.PL
Extracting perlbug (with variable substitutions)
../miniperl -I../lib perldoc.PL
Extracting perldoc (with variable substitutions)
../miniperl -I../lib pl2pm.PL
Extracting pl2pm (with variable substitutions)
../miniperl -I../lib splain.PL
Extracting splain (with variable substitutions)
../miniperl -I../lib perlcc.PL
Extracting perlcc (with variable substitutions)
../miniperl -I../lib dprofpp.PL
Extracting dprofpp (with variable substitutions)
make[1]: Leaving directory
`/sccm/admin/mbaker/src/perl-5.6.1-linux/perl-5.6.1/utils'

Making x2p stuff
make[1]: Entering directory
`/sccm/admin/mbaker/src/perl-5.6.1-linux/perl-5.6.1/x2p'
make[1]: *** No rule to make target `<built-in>', needed by `hash.o'. Stop.
make[1]: Leaving directory
`/sccm/admin/mbaker/src/perl-5.6.1-linux/perl-5.6.1/x2p'
make: *** [translators] Error 2


Any Suggestions??

Please let me know,

Thanks,

H.Merijn Brand

unread,
Feb 13, 2003, 10:16:02 AM2/13/03
to Waleed Hamad, Perl 5 Porters
On Thu 13 Feb 2003 16:05, Waleed Hamad <wha...@strong.com> wrote:
>
>
> Andy,
> I just tried it and I was able to delete about 16 of them.
>
> Ran the make command and I got the following
>
>
> make: *** No rule to make target `<command', needed by `miniperlmain.o'.
> Stop.
>
> Does that mean I need to delete the <command line> as well??

Yep. Safe to remove them.

--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
WinNT 4, Win2K pro & WinCE 2.11. Smoking perl CORE: smo...@perl.org
http://archives.develooper.com/daily...@perl.org/ per...@perl.org
send smoke reports to: smokers...@perl.org, QA: http://qa.perl.org


H.Merijn Brand

unread,
Feb 13, 2003, 10:21:47 AM2/13/03
to Waleed Hamad, Perl 5 Porters
On Thu 13 Feb 2003 16:12, Waleed Hamad <wha...@strong.com> wrote:
> Andy,
> Sorry to keep bothering you with this,
>
> I deleted both <build in> and <command line> from the makefile
> Ran the make command again,
> Things seemed to be working until the end of it, and here is a portion of
> the output and please take a close look at the last 4 lines.

The easiest (but not the fastest) solution is to change makedepend.SH
find the line to the sed command that deletes the '<builtin>' lines from
Makefiles, and change that to '<.*>'. In 5.8.0 that would look somewhat like

$sed \
-e '1d' \
-e '/^#.*<stdin>/d' \
-e '/^#.*<builtin>/d' \
-e '/^#.*<built-in>/d' \
-e '/^#.*<command line>/d' \
-e '/^#.*"-"/d' \

Or, if you do it the .* way

$sed \
-e '1d' \
-e '/^#.*<stdin>/d' \
-e '/^#.*<.*>/d' \
-e '/^#.*"-"/d' \

and then restart all over.

# make distclean
# Configure .....

--

Nicholas Clark

unread,
Feb 13, 2003, 10:30:42 AM2/13/03
to Waleed Hamad, perlbug-...@perl.org
On Thu, Feb 13, 2003 at 08:53:09AM -0600, Waleed Hamad wrote:
> Andy,
> Thank you so much for your quick response.
> I will try that and get back to you very soon.
>
> I do have a quick question though,
> Our developers are the one requiring to run 5.6.1 and we do have 5.8.0 as
> well
> Here is the directory structure
> /apps/perl/5.6.1 & /apps/perl/5.8.0
>
> The question I have is,
> I am trying to get about 40 CPANs installed on both versions.

You mean about 40 additional modules downloaded from CPAN?

> Can I use the same ones from one of the versions and copy it over to the
> other version or do I have to do it twice??

It's safest to build them once for your perl 5.6.1

perl5.6.1 Makefile.PL
make all
make test
make install

and then again for perl 5.8.0

perl5.8.0 Makefile.PL
make all
make test
make install

(where you replace perl5.6.1 and perl5.8.0 with your names for your two
perl binaries)

Or if you prefer, perl5.6.1 -MCPAN -e shell and perl5.8.0 -MCPAN -e shell

Nicholas Clark

Waleed Hamad

unread,
Feb 13, 2003, 10:58:58 AM2/13/03
to perlbug-...@perl.org
Thank you so very much for all the help that you are trying to provide.
That is so nice of you and I did not expect all of this from you guys.

I am still having the problem though, and I hope you will continue helping
me until I get it resolved.

After I received your email here is what I have done.

#1. Ran the make distclean
#2. Ran the sh Configure (to rebuild everything again)
#3. Edited the makedepend.SH looking for anything on the <build in> and I
did not find anything
#4. So I edited the makefile itself
deleted all the lines that has to do with the <command line> one
Changed the <built-in> to <.*> as you recommended
#5. Ran the make command

I got this error

make: *** No rule to make target `<.*>', needed by `miniperlmain.o'. Stop.


So Are you trying to tell me that instead of doing these steps I just
mentioned above to do the following

#1. Edit the makedepend.SH file
At the end of the file change add the following



$sed \
-e '1d' \
-e '/^#.*<stdin>/d' \
-e '/^#.*<.*>/d' \
-e '/^#.*"-"/d' \

Save the file

#2. ran the make distclean and the Configure again
#3. edit the makefile and change the <built in> to <.*>
#4. Run the make comamnd?????


If that is the case, what shall I do with the <command line> ??

H.Merijn Brand

unread,
Feb 13, 2003, 11:04:24 AM2/13/03
to Waleed Hamad, Perl 5 Porters
On Thu 13 Feb 2003 16:58, Waleed Hamad <wha...@strong.com> wrote:
> Thank you so very much for all the help that you are trying to provide.
> That is so nice of you and I did not expect all of this from you guys.
>
> I am still having the problem though, and I hope you will continue helping
> me until I get it resolved.
>
> After I received your email here is what I have done.
>
> #1. Ran the make distclean

> #2. Ran the sh Configure (to rebuild everything again)
> #3. Edited the makedepend.SH looking for anything on the <build in> and I
> did not find anything

Swap point 2 and 3

Waleed Hamad

unread,
Feb 13, 2003, 11:13:06 AM2/13/03
to perlbug-...@perl.org
Ok,
SO how about these steps>?

Also what shall I do about the <command line>
Delete that one completely??

Please take a look at the steps below


> #1. Edit the makedepend.SH file
> At the end of the file change add the following
>
> $sed \
> -e '1d' \
> -e '/^#.*<stdin>/d' \
> -e '/^#.*<.*>/d' \
> -e '/^#.*"-"/d' \
> Save the file
>
> #2. ran the make distclean and the Configure again
> #3. edit the makefile and change the <built in> to <.*>
> #4. Run the make comamnd?????
>
>

H.Merijn Brand

unread,
Feb 13, 2003, 11:23:29 AM2/13/03
to Waleed Hamad, Perl 5 Porters
On Thu 13 Feb 2003 17:13, Waleed Hamad <wha...@strong.com> wrote:
> Ok,
> SO how about these steps>?
>
> Also what shall I do about the <command line>
> Delete that one completely??

Don't care. It's duplicate at the moment, just leave it in or out, whatever
you prefer, cannot harm.

> Please take a look at the steps below

Looks OK

> > #1. Edit the makedepend.SH file
> > At the end of the file change add the following
> >
> > $sed \
> > -e '1d' \
> > -e '/^#.*<stdin>/d' \
> > -e '/^#.*<.*>/d' \
> > -e '/^#.*"-"/d' \
> > Save the file
> >
> > #2. ran the make distclean and the Configure again
> > #3. edit the makefile and change the <built in> to <.*>
> > #4. Run the make comamnd?????
> >
> >
> > Thanks,
> > Waleed

--

Enache Adrian

unread,
Feb 13, 2003, 11:39:04 AM2/13/03
to Waleed Hamad, perlbug-...@perl.org
On Thu, Feb 13, 2003 at 10:13:06AM -0600, Waleed Hamad wrote:
[snip]

Follow this steps and you should be OK:

1. unpack the 5.6.1 distribution
2. cd to the perl5.6.1 directory
3. $ cp makedepend.SH makedepend.SH.orig
4. $ sed 's/<stdin>/<.*>/' makedepend.SH.orig > makedepend.SH
5. $ ./Configure
6. $ make test

(the '$' is the shell prompt)

Adi

Waleed Hamad

unread,
Feb 13, 2003, 11:48:26 AM2/13/03
to perlbug-...@perl.org, ena...@rdslink.ro
Adi,
Thanks for your steps,
I have followed them but I am still getting an error when I run the make
test


Please look below

cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
`sh cflags libperl.a pp_ctl.o` pp_ctl.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
`sh cflags libperl.a pp_sys.o` pp_sys.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
pp_sys.c: In function `Perl_pp_sysread':
pp_sys.c:1499: incompatible type for argument 5 of `recvfrom'
pp_sys.c: In function `Perl_pp_send':
pp_sys.c:1693: incompatible type for argument 5 of `sendto'
pp_sys.c: In function `Perl_pp_bind':
pp_sys.c:2189: incompatible type for argument 2 of `bind'
pp_sys.c: In function `Perl_pp_connect':
pp_sys.c:2227: incompatible type for argument 2 of `connect'
pp_sys.c: In function `Perl_pp_accept':
pp_sys.c:2296: incompatible type for argument 2 of `accept'
pp_sys.c: In function `Perl_pp_getpeername':
pp_sys.c:2469: incompatible type for argument 2 of `getsockname'
pp_sys.c:2473: incompatible type for argument 2 of `getpeername'
make: *** [pp_sys.o] Error 1

-----Original Message-----
From: ena...@rdslink.ro (via RT) [mailto:perlbug-...@perl.org]
Sent: Thursday, February 13, 2003 10:30 AM
To: wha...@strong.com
Subject: Re: [perl #20881] Make problem

Adi


0 new messages