Menu

#38 Compilation errors on FC4 (kernel 2.6.12, GCC 4.0)

open
nobody
None
5
2005-07-15
2005-07-15
No

make[3]: Entering directory
`/usr/src/kernels/2.6.12-1.1390_FC4-smp-i686'
CC [M]
/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6/dcache.o
CC [M]
/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6/dir.o
/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6/dir.c:491:
error: static declaration of ‘shfs_dentry_operations’
follows non-static declaration
/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6/shfs_fs.h:53:
error: previous declaration of ‘shfs_dentry_operations’
was here
make[4]: ***
[/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6/dir.o]
Error 1
make[3]: ***
[_module_/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6]
Error 2
make[3]: Leaving directory
`/usr/src/kernels/2.6.12-1.1390_FC4-smp-i686'
make[2]: *** [default] Error 2
make[2]: Leaving directory
`/home/oliver/src/shfs-0.35.orig/shfs/Linux-2.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/oliver/src/shfs-0.35.orig/shfs'
make: *** [module] Error 2

And this warning/note too:
cc1: note: obsolete option -I- used, please use -iquote
instead

Also, the RPM Spec files are incorrect. They use the
deprecated directive Copyright instead of License.
This directive is now an error in RPM v4.4.1.

See attached patch for fixes.

Discussion

  • Oliver Jones

    Oliver Jones - 2005-07-15

    Patch to fix issues.

     
  • Ferry Boender

    Ferry Boender - 2005-07-21

    Logged In: YES
    user_id=96449

    Also seeing this problem on Debian GNU/Linux Unstable with
    gcc (GCC) 4.0.1 (Debian 4.0.1-2)

    Patch fixes the compile errors, but I'm still seeing the
    "cc1: note: obsolete option -I- used, please use -iquote
    instead" error.

     

Log in to post a comment.