make error with util-linux-2.10

ktb x.y.f at home.com
Sun Jan 14 12:31:33 PST 2001


On Sun, Jan 14, 2001 at 02:00:22PM -0600, scott thomason wrote:
> Does it the problem go away if you use a more current version of util-linux, such as -r?
> ---scott
> 
> On Sun, 14 Jan 2001 13:26:45 -0600, ktb said:
> 
> > I can't find anything in the archives about this error -
> >  
> >  root:/usr/src/util-linux-2.10o# make 
> >  make[1]: Entering directory `/usr/src/util-linux-2.10o/po'
> >  make[1]: Nothing to be done for `all'.
> >  make[1]: Leaving directory `/usr/src/util-linux-2.10o/po'
> >  make[1]: Entering directory `/usr/src/util-linux-2.10o/lib'
> >  make[1]: Nothing to be done for `all'.
> >  make[1]: Leaving directory `/usr/src/util-linux-2.10o/lib'
> >  make[1]: Entering directory
> >  `/usr/src/util-linux-2.10o/getopt-1.1.0a'
> >  make[1]: *** No rule to make target `getopt.o', needed by `getopt'.
> >  Stop.
> >  make[1]: Leaving directory `/usr/src/util-linux-2.10o/getopt-1.1.0a'
> >  make: *** [all] Error 1
> >  
> >  So is this actually an error or not?  If so how do I fix this?

I did try the "r" version and that didn't work.  I found the error
though.  In the book I was asked to cut all lines below the i386
optimization stuff.  These are the lines -

# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
  ifeq "$(CPU)" "i386"
    OPT=        -pipe -O2 -m386 -fomit-frame-pointer
  else
    OPT=        -pipe -O2 -m486 -fomit-frame-pointer
  endif
else 
  ifeq "$(ARCH)" "arm"
    OPT=        -pipe -O2 -fsigned-char -fomit-frame-pointer
  else
    OPT=        -O2 -fomit-frame-pointer
  endif
endif
#

I cut it like this leaving the "endif" off -

# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
  ifeq "$(CPU)" "i386"
    OPT=        -pipe -O2 -m386 -fomit-frame-pointer
  else
    OPT=        -pipe -O2 -m486 -fomit-frame-pointer
  endif
else
#

../configure barked telling my there was no "endif" at line 147 which was
the end of the file in question.  So I stuck "endif" at line 147.
../configure did it's thing but then I got the error -

make[1]: *** No rule to make target `getopt.o', needed by `getopt'.   

When I moved "endif" to the appropriate place like --

# Different optimizations for different cpus.
ifeq "$(ARCH)" "intel"
  ifeq "$(CPU)" "i386"
    OPT=        -pipe -O2 -m386 -fomit-frame-pointer
  else
    OPT=        -pipe -O2 -m486 -fomit-frame-pointer
  endif
else
endif
^^^^^

Then everything worked fine.  Sorry for the long post.  Just wanted to
make sure I explained it well.
Thanks,
kent

-- 
  "In order to make an apple pie from scratch,
      you must first create the universe."  
                 - Carl Sagan

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list