Menu

#296 Make (build) fails if prefix is set to to another directory

open
nobody
None
5
2012-11-28
2011-11-17
Anonymous
No

Trying to compilee2fsprogs-1.41.14 with the following
./configure --prefix=/tmp/e2fsprog > /tmp/cfglog
make > /tmp/makelog

The configuration step is successful, however the make step fails with the following error
init_et.c: In function ‘init_error_table’:
init_et.c:41:32: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
parse.c: In function ‘ss_parse’:
parse.c:56:20: error: ‘errno’ undeclared (first use in this function)
parse.c:56:20: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [parse.o] Error 1
make[1]: *** [all-libs-recursive] Error 1
make: *** [all] Error 2

I am compiling on Ubuntu 11.04 AMD64 machine.

If I repeat the same steps without setting the prefix, everything works OK and I get a successful build

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    nzhgxd A round of applause for your post.Really looking forward to read more. Awesome.

     
  • Nobody/Anonymous

    Thanks-a-mundo for the post.Really looking forward to read more. Great.

     
  • Nobody/Anonymous

    7222fs Thanks for sharing, this is a fantastic post. Really Cool.

     
  • Nobody/Anonymous

    DXpt1O Say, you got a nice article.Really thank you! Will read on...

     
  • Nobody/Anonymous

    qODzWW Im thankful for the article post. Keep writing.

     
  • Nobody/Anonymous

    bo9Oxb Thanks a lot for the article.Really thank you! Really Great.