LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2004, 07:45 AM   #1
ixogn
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15
fail to compile cdfs


while i tried to compile cdfs-2.4.20-a, i got message as this:

Code:
[talent@localhost cdfs-2.4.20-a]$ ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/fs.h usability... yes
checking linux/fs.h presence... yes
checking for linux/fs.h... yes
checking whether gcc needs -traditional... no
checking for directory with kernel source... /lib/modules/2.6.0-0.1.14custom/build/
checking for kernel version... 0.0.0
checking for kernel module symbol versions... "no"
checking for directory to store kernel modules... /lib/modules/0.0.0/kernel/fs/cdfs
checking for processor type... "unknown"
checking for cdfs version... 2.4.20-a
configure: creating ./config.status
config.status: creating Makefile
Code:
[talent@localhost cdfs-2.4.20-a]$ make
gcc -Wall -O2  -DLINUX -DCONFIG_CDFS_VERSION=\"2.4.20-a\"   -I/lib/modules/2.6.0-0.1.14custom/build//include -c audio.c -Wall
In file included from cdfs.h:25,
                 from audio.c:26:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/linux/timex.h:56: error: syntax error before "and"
In file included from /usr/include/linux/timex.h:126,
                 from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/asm/timex.h:33: error: syntax error before "cacheflush_time"
/usr/include/asm/timex.h:35: error: syntax error before "get_cycles"
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/linux/timex.h:147: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
                 from /usr/include/asm/system.h:7,
                 from /usr/include/linux/sched.h:16,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:81,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/locks.h:5,
                 from cdfs.h:35,
                 from audio.c:26:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from cdfs.h:35,
                 from audio.c:26:
/usr/include/linux/locks.h:8:27: linux/pagemap.h: no such file or directory
In file included from cdfs.h:35,
                 from audio.c:26:
/usr/include/linux/locks.h: In function `wait_on_buffer':
/usr/include/linux/locks.h:19: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:19: error: (Each undeclared identifier is reported only once
/usr/include/linux/locks.h:19: error: for each function it appears in.)
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_buffer':
/usr/include/linux/locks.h:25: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:25: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_super':
/usr/include/linux/locks.h:39: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `unlock_super':
/usr/include/linux/locks.h:44: error: dereferencing pointer to incomplete type
In file included from cdfs.h:40,
                 from audio.c:26:
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:70: error: syntax error before "atomic_t"
/usr/include/linux/proc_fs.h:73: error: syntax error before '}' token
/usr/include/linux/proc_fs.h:203: error: syntax error before "void"
In file included from audio.c:26:
cdfs.h:42:25: asm/uaccess.h: no such file or directory
In file included from audio.c:26:
cdfs.h:148: warning: `struct super_block' declared inside parameter list
cdfs.h:149: warning: `struct super_block' declared inside parameter list
cdfs.h:153: warning: `struct super_block' declared inside parameter list
cdfs.h:154: warning: `struct super_block' declared inside parameter list
cdfs.h:155: warning: `struct super_block' declared inside parameter list
cdfs.h:156: warning: `struct super_block' declared inside parameter list
cdfs.h:157: warning: `struct super_block' declared inside parameter list
cdfs.h:159: warning: `struct super_block' declared inside parameter list
cdfs.h:161: warning: `struct super_block' declared inside parameter list
cdfs.h:163: warning: `struct super_block' declared inside parameter list
cdfs.h:164: warning: `struct inode' declared inside parameter list
cdfs.h:166: warning: `struct page' declared inside parameter list
cdfs.h:166: warning: `struct file' declared inside parameter list
cdfs.h:167: warning: `struct page' declared inside parameter list
cdfs.h:167: warning: `struct file' declared inside parameter list
cdfs.h:168: warning: `struct page' declared inside parameter list
cdfs.h:168: warning: `struct file' declared inside parameter list
cdfs.h:169: warning: `struct page' declared inside parameter list
cdfs.h:169: warning: `struct file' declared inside parameter list
cdfs.h:170: warning: `struct page' declared inside parameter list
cdfs.h:170: warning: `struct file' declared inside parameter list
cdfs.h:172: warning: `struct page' declared inside parameter list
cdfs.h:172: warning: `struct dentry' declared inside parameter list
In file included from audio.c:27:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!
audio.c: In function `cdfs_make_header':
audio.c:35: warning: implicit declaration of function `strcpy'
audio.c: At top level:
audio.c:61: warning: `struct super_block' declared inside parameter list
audio.c: In function `cdfs_copy_from_cd':
audio.c:66: error: dereferencing pointer to incomplete type
audio.c:108: warning: passing arg 1 of `cdfs_ioctl' from incompatible pointer type
audio.c:110: warning: implicit declaration of function `printk'
audio.c:134: warning: implicit declaration of function `memcpy'
audio.c: At top level:
audio.c:142: warning: `struct inode' declared inside parameter list
audio.c:142: error: conflicting types for `cdfs_cdda_file_read'
cdfs.h:164: error: previous declaration of `cdfs_cdda_file_read'
audio.c: In function `cdfs_cdda_file_read':
audio.c:148: error: dereferencing pointer to incomplete type
audio.c:148: error: dereferencing pointer to incomplete type
audio.c:156: error: dereferencing pointer to incomplete type
audio.c:162: error: dereferencing pointer to incomplete type
audio.c:162: error: dereferencing pointer to incomplete type
audio.c: At top level:
audio.c:169: error: variable `cdfs_cdda_file_operations' has initializer but incomplete type
audio.c:170: error: unknown field `read' specified in initializer
audio.c:170: error: `generic_file_read' undeclared here (not in a function)
audio.c:170: warning: excess elements in struct initializer
audio.c:170: warning: (near initialization for `cdfs_cdda_file_operations')
audio.c:171: error: unknown field `mmap' specified in initializer
audio.c:172: error: `generic_file_mmap' undeclared here (not in a function)
audio.c:172: warning: excess elements in struct initializer
audio.c:172: warning: (near initialization for `cdfs_cdda_file_operations')
audio.c:174: warning: `struct page' declared inside parameter list
audio.c:174: warning: `struct file' declared inside parameter list
audio.c:174: error: conflicting types for `kcdfsd_add_cdda_request'
cdfs.h:168: error: previous declaration of `kcdfsd_add_cdda_request'
audio.c: In function `kcdfsd_add_cdda_request':
audio.c:176: error: dereferencing pointer to incomplete type
audio.c:176: warning: passing arg 2 of `kcdfsd_add_request' from incompatible pointer type
audio.c: At top level:
audio.c:179: warning: `struct page' declared inside parameter list
audio.c:179: warning: `struct file' declared inside parameter list
audio.c:179: error: conflicting types for `kcdfsd_add_cdda_raw_request'
cdfs.h:169: error: previous declaration of `kcdfsd_add_cdda_raw_request'
audio.c: In function `kcdfsd_add_cdda_raw_request':
audio.c:181: error: dereferencing pointer to incomplete type
audio.c:181: warning: passing arg 2 of `kcdfsd_add_request' from incompatible pointer type
audio.c: At top level:
audio.c:184: error: variable `cdfs_cdda_aops' has initializer but incomplete type
audio.c:185: error: unknown field `readpage' specified in initializer
audio.c:186: warning: excess elements in struct initializer
audio.c:186: warning: (near initialization for `cdfs_cdda_aops')
audio.c:188: error: variable `cdfs_cdda_raw_aops' has initializer but incomplete type
audio.c:189: error: unknown field `readpage' specified in initializer
audio.c:190: warning: excess elements in struct initializer
audio.c:190: warning: (near initialization for `cdfs_cdda_raw_aops')
audio.c:169: error: storage size of `cdfs_cdda_file_operations' isn't known
audio.c:184: error: storage size of `cdfs_cdda_aops' isn't known
audio.c:188: error: storage size of `cdfs_cdda_raw_aops' isn't known
make: *** [audio.o] Error 1
btw: i removed kernel-source folder after compiling. does it have anything with the problem?
 
Old 02-26-2004, 09:20 AM   #2
ixogn
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
no one here use cdfs i assume? i am trying to compile a cdfs module because , i want to mount audio CD and play the music with mplayer. the kscd can play CD
but i cannot here a single sound. i don't know why. in windows i don't find such
problem. anybody have an idea?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VCD Ripping / cdfs broken with new kernel powermonkey Fedora 0 04-30-2005 12:29 PM
Can't Install Cdfs! grim2 SUSE / openSUSE 1 10-13-2004 06:18 AM
cdfs driver help masand Linux - Software 0 02-15-2004 01:41 AM
Need some help with CDFS. Mediocre_Driver Linux - Software 1 11-30-2003 10:02 PM
Kernel compile fail NightShade737 Linux - Software 3 06-29-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration