Menu

#5 file user.h missing on CentOS 5.2

open
nobody
None
5
2010-01-13
2010-01-13
Anonymous
No

$ ~/megactl/megactl-0.4.1/src:$ make
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o megactl.o megactl.c
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o adapter.o adapter.c
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o dumpbytes.o dumpbytes.c
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o megaioctl.o megaioctl.c
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o logpage.o logpage.c
logpage.c:116: warning: 'blocksToGB' defined but not used
logpage.c:122: warning: 'blocksToGiB' defined but not used
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o ntrim.o ntrim.c
cc -g -m32 -o megactl megactl.o adapter.o dumpbytes.o megaioctl.o logpage.o ntrim.o
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o megasasctl.o -DMEGA_SAS_CTL megactl.c
cc -g -m32 -o megasasctl megasasctl.o adapter.o dumpbytes.o megaioctl.o logpage.o ntrim.o
cc -g -Wall -I./schily -Iincludes-hack -m32 -c -o megatrace.o megatrace.c
megatrace.c:52:22: error: asm/user.h: No such file or directory
megatrace.c: In function 'main':
megatrace.c:155: error: storage size of 'r' isn't known
megatrace.c:356: warning: unused variable 'hotspare'
megatrace.c:155: warning: unused variable 'r'
make: *** [megatrace.o] Error 1
$ ~/megactl/megactl-0.4.1/src:$

Discussion

  • Kevin Mace

    Kevin Mace - 2011-03-03

    I get the same error in Ubuntu, though distro has nothing to do with it. There is simply no user.h file in the source tree.

    $ make
    cc -g -Wall -I./schily -Iincludes-hack -m64 -c -o megatrace.o megatrace.c
    megatrace.c:52: fatal error: asm/user.h: No such file or directory
    compilation terminated.
    make: *** [megatrace.o] Error 1

     
  • Kevin Mace

    Kevin Mace - 2011-03-03

    Addendum: It seems that sys/user.h has largely replaced asm/user.h in modern distros (distro, may, indeed, have something to do with it, apologies), however a simple substitution wasn't enough to get megatrace compiling. There are some struct members missing in sys/user.h that megatrace.c can't find. The other executables seem to compile and run fine, so I guess no trace/debug tool.

     

Log in to post a comment.

Auth0 Logo