Results 1 to 5 of 5

Thread: Compilation error while executing make

  1. #1
    Join Date
    Feb 2013
    Beans
    2

    Cool Compilation error while executing make

    The compiler being used is gcc and the application i am trying to install is mpiBLAST, well actually its dependencies, halfway through I get this error

    gcc -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DNDEBUG -O3 -c -I../include -I/usr/X11R6/include -L/usr/X11R6/lib -DWIN_MOTIF ncbienv.c
    In file included from ncbienv.c:309:0:
    /usr/local/include/pwd.h:8:1: error: unknown type name ‘LIST’
    ncbienv.c: In function ‘s_GetHomeByUID’:
    ncbienv.c:618:19: error: storage size of ‘pwd’ isn’t known
    ncbienv.c:633:30: error: dereferencing pointer to incomplete type
    ncbienv.c:635:34: error: dereferencing pointer to incomplete type
    ncbienv.c: In function ‘s_GetHomeByLOGIN’:
    ncbienv.c:648:19: error: storage size of ‘pwd’ isn’t known
    ncbienv.c:681:30: error: dereferencing pointer to incomplete type
    ncbienv.c:683:34: error: dereferencing pointer to incomplete type
    make: *** [ncbienv.o] Error 1

    the file being called to is pwd.h

    which is in usr/local/include/

    this is the file


    /* Copyright Vladimir Prus 2002. Distributed under the Boost */
    /* Software License, Version 1.0. (See accompanying */
    /* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */

    #ifndef PWD_H
    #define PWD_H

    LIST * pwd( void );
    void pwd_done( void );

    #endif


    It would be really helpful if someone can suggest a workaround

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Compilation error while executing make

    Just to be sure, have you applied the patch for newer GCC versions listed on the download page?

  3. #3
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Compilation error while executing make

    Moved to Packaging and Compiling Programs.

  4. #4
    Join Date
    Feb 2013
    Beans
    2

    Re: Compilation error while executing make

    No i haven't, but what I got from that error is that the particular file being called from Boost is calling a function LIST which it cannot access.

    I'll apply the patch and see if it works

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Compilation error while executing make

    LIST is not a function, but probably a type declared in one of the header files. I guess the order in which -I options are specified on the gcc command line is significant.

    Try to grep -r --include=\*.h LIST /path/to/source/mpiblast-1.6.0/ to find out where it's being declared.
    Last edited by schragge; February 15th, 2013 at 12:00 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •