Re: [問題] spca5xx make錯誤?

看板Linux作者 (從數學發現心世界)時間13年前 (2012/04/30 13:24), 編輯推噓0(0010)
留言10則, 2人參與, 最新討論串3/3 (看更多)
make會讀到一個spca5xx.c檔,這個.c檔我改了兩個include #incldue <linux/config.h> => #include <linux/autoconf.h> 這個是比較新的核心版本以autoconf.h取代config.h ? #include <asm/semaphore.h> => #include </usr/include/semaphore.h> 我asm目錄裡沒有semaphore.h這個檔案,是不是另外應該裝個什麼xxx-dev之類的 我想應該是我亂套上一個semaphore.h才衝突的.. /usr/include/semaphore.h 49行附近內容: 43 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW; 44 45 /* Close descriptor for named semaphore SEM. */ 46 extern int sem_close (sem_t *__sem) __THROW; 47 48 /* Remove named semaphore NAME. */ 49 extern int sem_unlink (__const char *__name) __THROW; 50 51 /* Wait for SEM being posted. 52 53 This function is a cancellation point and therefore not marked with 54 __THROW. */ 55 extern int sem_wait (sem_t *__sem); 56 57 #ifdef __USE_XOPEN2K -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.255.12.29

04/30 14:10, , 1F
原來是有改 #include, 看來有可能是此軟體與 linux 核心
04/30 14:10, 1F

04/30 14:11, , 2F
脫節過久,你可能要用 2006年(從前幾篇的文中可看到2006字
04/30 14:11, 2F

04/30 14:12, , 3F
樣)左右的linux環境來build 才比較容易成功
04/30 14:12, 3F

04/30 14:13, , 4F
另外,你貼的semaphore.h和我系統的看上去大致相同,問題應
04/30 14:13, 4F

04/30 14:14, , 5F
不在這裏.應該是2006的dev相關檔案和目前相差較遠的關係
04/30 14:14, 5F

04/30 14:16, , 6F
看一下原軟體有無註明system requirement的kernel版本
04/30 14:16, 6F

04/30 17:07, , 7F
這的確是有段時間的東西了..說明檔說是支持2.4.x跟2.6.x的
04/30 17:07, 7F

04/30 17:19, , 8F
04/30 17:19, 8F

04/30 17:19, , 9F
支援到Ubuntu8.04,文中說照著作,make應該沒有錯
04/30 17:19, 9F

04/30 17:20, , 10F
重點是開宗明義說已被 gspca 取代 XD
04/30 17:20, 10F
文章代碼(AID): #1FdY83C- (Linux)
文章代碼(AID): #1FdY83C- (Linux)