Find the answer to your Linux question:
Results 1 to 4 of 4
Hey everybody. I am trying to compile a program called Sleuthkit. When I do a "make", here is what I get: Code: cd src/auxtools; make "CC=gcc" MAKELEVEL= gcc -DLINUX2 -D_FILE_OFFSET_BITS=64 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Aug 2005
    Location
    Sterling, VA
    Posts
    100

    Sleuthkit - Important


    Hey everybody. I am trying to compile a program called Sleuthkit. When I do a "make", here is what I get:
    Code:
    cd src/auxtools; make "CC=gcc" MAKELEVEL=
    gcc -DLINUX2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DVER=\"2.03\" -O -Wal l -g   -c -o mymalloc.o mymalloc.c
    mymalloc.c:49:20: error: stdlib.h: No such file or directory
    mymalloc.c:50:20: error: unistd.h: No such file or directory
    mymalloc.c:51:20: error: string.h: No such file or directory
    mymalloc.c: In function ‘mymalloc’:
    mymalloc.c:65: warning: implicit declaration of function ‘malloc’
    mymalloc.c:65: warning: incompatible implicit declaration of built-in function ‘ malloc’
    mymalloc.c: In function ‘myrealloc’:
    mymalloc.c:75: warning: implicit declaration of function ‘realloc’
    mymalloc.c: In function ‘mystrdup’:
    mymalloc.c:85: warning: implicit declaration of function ‘strcpy’
    mymalloc.c:85: warning: incompatible implicit declaration of built-in function ‘ strcpy’
    mymalloc.c:85: warning: implicit declaration of function ‘strlen’
    mymalloc.c:85: warning: incompatible implicit declaration of built-in function ‘ strlen’
    make: *** [mymalloc.o] Error 1
    make: *** [defs] Error 2
    make: *** [no-perl] Error 2
    It looks like it can't find some of the library files? Anybody know what I might do to fix this?

    Thanks,
    - EndianX -

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Well do you have the header files installed?

  3. #3
    Linux Newbie
    Join Date
    Aug 2005
    Location
    Sterling, VA
    Posts
    100
    Quote Originally Posted by lakerdonald
    Well do you have the header files installed?
    I'm not sure. I used Ubuntu's synaptic package manager to install gcc, and it installed some dependences.

    But I KNOW string.h is a common one, so if I am indeed missing that, then I am missing some basic things. I don't know how to check or where I would get the header files if I don't.
    - EndianX -

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Install glibc and glibc-devel.

Posting Permissions

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