Skocz do zawartości

Gcc


PeterJack

Rekomendowane odpowiedzi

Przy instalacji wybralem wszystko wiec nie powinno chyba niszego brakowac?? <_<

z instalacji cdemu

[root@localhost cdemu_0.5.3]# make

cc -O2 -Wall -I/lib/modules/2.6.9-1.667/build/include -D__KERNEL__ -DMODULE -c -o cdemu.o cdemu.c

In file included from /lib/modules/2.6.9-1.667/build/include/asm/processor.h:18,

from /lib/modules/2.6.9-1.667/build/include/asm/thread_info.h:16,

from /lib/modules/2.6.9-1.667/build/include/linux/thread_info.h:21,

from /lib/modules/2.6.9-1.667/build/include/linux/spinlock.h:12,

from /lib/modules/2.6.9-1.667/build/include/linux/capability.h:45,

from /lib/modules/2.6.9-1.667/build/include/linux/sched.h:7,

from /lib/modules/2.6.9-1.667/build/include/linux/module.h:10,

from cdemu.c:66:

/lib/modules/2.6.9-1.667/build/include/asm/system.h: In function `__set_64bit_var':

/lib/modules/2.6.9-1.667/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules

/lib/modules/2.6.9-1.667/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules

In file included from cdemu.c:75:

/lib/modules/2.6.9-1.667/build/include/linux/blk.h:1:2: warning: #warning this file is obsolete, please use <linux/blkdev.h> instead

In file included from /lib/modules/2.6.9-1.667/build/include/linux/irq.h:20,

from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,

from /lib/modules/2.6.9-1.667/build/include/asm/highmem.h:24,

from /lib/modules/2.6.9-1.667/build/include/linux/highmem.h:14,

from /lib/modules/2.6.9-1.667/build/include/linux/pagemap.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blkdev.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blk.h:2,

from cdemu.c:75:

/lib/modules/2.6.9-1.667/build/include/asm/irq.h:16:25: irq_vectors.h: Nie ma takiego pliku ani katalogu

In file included from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,

from /lib/modules/2.6.9-1.667/build/include/asm/highmem.h:24,

from /lib/modules/2.6.9-1.667/build/include/linux/highmem.h:14,

from /lib/modules/2.6.9-1.667/build/include/linux/pagemap.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blkdev.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blk.h:2,

from cdemu.c:75:

/lib/modules/2.6.9-1.667/build/include/linux/irq.h: At top level:

/lib/modules/2.6.9-1.667/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)

In file included from /lib/modules/2.6.9-1.667/build/include/linux/irq.h:72,

from /lib/modules/2.6.9-1.667/build/include/asm/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/hardirq.h:6,

from /lib/modules/2.6.9-1.667/build/include/linux/interrupt.h:11,

from /lib/modules/2.6.9-1.667/build/include/asm/highmem.h:24,

from /lib/modules/2.6.9-1.667/build/include/linux/highmem.h:14,

from /lib/modules/2.6.9-1.667/build/include/linux/pagemap.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blkdev.h:10,

from /lib/modules/2.6.9-1.667/build/include/linux/blk.h:2,

from cdemu.c:75:

/lib/modules/2.6.9-1.667/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)

cdemu.c:140: error: syntax error before "kdev_t"

cdemu.c:140: warning: no semicolon at end of struct or union

cdemu.c:150: error: syntax error before '}' token

cdemu.c:171: error: syntax error before "devfs_handle"

cdemu.c:171: warning: type defaults to `int' in declaration of `devfs_handle'

cdemu.c:171: warning: data definition has no type or storage class

cdemu.c: In function `proc_read':

cdemu.c:185: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:185: error: dereferencing pointer to incomplete type

cdemu.c:187: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:187: error: dereferencing pointer to incomplete type

cdemu.c:190: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:190: error: dereferencing pointer to incomplete type

cdemu.c:190: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:190: error: dereferencing pointer to incomplete type

cdemu.c: In function `ce_findtrack':

cdemu.c:240: error: dereferencing pointer to incomplete type

cdemu.c:241: error: dereferencing pointer to incomplete type

cdemu.c: In function `ce_locate_device':

cdemu.c:252: error: structure has no member named `rq_dev'

cdemu.c:259: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:259: error: dereferencing pointer to incomplete type

cdemu.c: In function `ce_read_actor':

cdemu.c:277: error: structure has no member named `buf'

cdemu.c:277: error: structure has no member named `buf'

cdemu.c:282: error: structure has no member named `buf'

cdemu.c: In function `ce_transfer':

cdemu.c:304: error: dereferencing pointer to incomplete type

cdemu.c:320: error: dereferencing pointer to incomplete type

cdemu.c:321: error: dereferencing pointer to incomplete type

cdemu.c:322: error: dereferencing pointer to incomplete type

cdemu.c:335: error: structure has no member named `buf'

cdemu.c:337: error: dereferencing pointer to incomplete type

cdemu.c:338: error: too few arguments to function `do_generic_file_read'

cdemu.c: In function `ce_request':

cdemu.c:366: error: `INIT_REQUEST' undeclared (first use in this function)

cdemu.c:366: error: (Each undeclared identifier is reported only once

cdemu.c:366: error: for each function it appears in.)

cdemu.c:376: error: `CURRENT' undeclared (first use in this function)

cdemu.c:388: error: too few arguments to function `end_request'

cdemu.c:392: error: dereferencing pointer to incomplete type

cdemu.c:394: warning: passing arg 1 of `end_request' makes pointer from integer without a cast

cdemu.c:394: error: too few arguments to function `end_request'

cdemu.c:400: warning: passing arg 1 of `end_request' makes pointer from integer without a cast

cdemu.c:400: error: too few arguments to function `end_request'

cdemu.c: In function `read_toc_header':

cdemu.c:415: error: dereferencing pointer to incomplete type

cdemu.c:419: error: dereferencing pointer to incomplete type

cdemu.c: In function `get_toc_entry':

cdemu.c:430: error: dereferencing pointer to incomplete type

cdemu.c:435: error: dereferencing pointer to incomplete type

cdemu.c:435: error: dereferencing pointer to incomplete type

cdemu.c:436: error: dereferencing pointer to incomplete type

cdemu.c:440: error: dereferencing pointer to incomplete type

cdemu.c: In function `unload_cd':

cdemu.c:457: error: dereferencing pointer to incomplete type

cdemu.c:461: error: dereferencing pointer to incomplete type

cdemu.c:462: error: dereferencing pointer to incomplete type

cdemu.c:464: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)

cdemu.c: In function `cdemu_audio_ioctl':

cdemu.c:487: error: structure has no member named `dev'

cdemu.c:493: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:493: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_ioctl':

cdemu.c:534: error: structure has no member named `dev'

cdemu.c:547: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:547: error: dereferencing pointer to incomplete type

cdemu.c:550: error: dereferencing pointer to incomplete type

cdemu.c:571: error: dereferencing pointer to incomplete type

cdemu.c:572: error: dereferencing pointer to incomplete type

cdemu.c:573: error: dereferencing pointer to incomplete type

cdemu.c:581: error: dereferencing pointer to incomplete type

cdemu.c:589: error: dereferencing pointer to incomplete type

cdemu.c:596: error: dereferencing pointer to incomplete type

cdemu.c:616: error: dereferencing pointer to incomplete type

cdemu.c:628: error: dereferencing pointer to incomplete type

cdemu.c:629: error: dereferencing pointer to incomplete type

cdemu.c:632: error: dereferencing pointer to incomplete type

cdemu.c:632: error: dereferencing pointer to incomplete type

cdemu.c:633: error: dereferencing pointer to incomplete type

cdemu.c:634: error: dereferencing pointer to incomplete type

cdemu.c:637: error: dereferencing pointer to incomplete type

cdemu.c:640: error: dereferencing pointer to incomplete type

cdemu.c:643: error: dereferencing pointer to incomplete type

cdemu.c:644: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)

cdemu.c:646: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_media_changed':

cdemu.c:670: error: structure has no member named `dev'

cdemu.c:672: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:672: error: dereferencing pointer to incomplete type

cdemu.c:674: error: dereferencing pointer to incomplete type

cdemu.c:675: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_tray_move':

cdemu.c:688: error: structure has no member named `dev'

cdemu.c:689: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:689: error: dereferencing pointer to incomplete type

cdemu.c:692: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_drive_status':

cdemu.c:704: error: structure has no member named `dev'

cdemu.c:705: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:705: error: dereferencing pointer to incomplete type

cdemu.c:707: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_lock_door':

cdemu.c:718: error: structure has no member named `dev'

cdemu.c:719: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:719: error: dereferencing pointer to incomplete type

cdemu.c:721: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_reset':

cdemu.c:738: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:738: error: dereferencing pointer to incomplete type

cdemu.c: In function `cdemu_open':

cdemu.c:758: error: structure has no member named `dev'

cdemu.c:768: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:768: error: dereferencing pointer to incomplete type

cdemu.c:771: error: dereferencing pointer to incomplete type

cdemu.c:778: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)

cdemu.c: In function `cdemu_release':

cdemu.c:793: error: structure has no member named `dev'

cdemu.c:799: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:799: error: dereferencing pointer to incomplete type

cdemu.c:802: error: dereferencing pointer to incomplete type

cdemu.c:804: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)

cdemu.c: At top level:

cdemu.c:836: warning: initialization from incompatible pointer type

cdemu.c:837: warning: initialization from incompatible pointer type

cdemu.c:838: warning: initialization from incompatible pointer type

cdemu.c:839: error: unknown field `check_media_change' specified in initializer

cdemu.c:839: warning: initialization from incompatible pointer type

cdemu.c: In function `cdemu_init':

cdemu.c:868: warning: implicit declaration of function `devfs_register_blkdev'

cdemu.c:874: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:890: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:890: error: dereferencing pointer to incomplete type

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:891: error: invalid application of `sizeof' to incomplete type `cdemu_device'

cdemu.c:892: error: dereferencing pointer to incomplete type

cdemu.c:893: error: dereferencing pointer to incomplete type

cdemu.c:894: error: dereferencing pointer to incomplete type

cdemu.c:895: error: dereferencing pointer to incomplete type

cdemu.c:896: error: dereferencing pointer to incomplete type

cdemu.c:897: error: dereferencing pointer to incomplete type

cdemu.c:898: error: dereferencing pointer to incomplete type

cdemu.c:899: error: dereferencing pointer to incomplete type

cdemu.c:902: error: dereferencing pointer to incomplete type

cdemu.c:903: error: dereferencing pointer to incomplete type

cdemu.c:904: warning: implicit declaration of function `devfs_plain_cdrom'

cdemu.c:904: error: dereferencing pointer to incomplete type

cdemu.c:910: warning: implicit declaration of function `devfs_register_series'

cdemu.c:910: error: `DEVFS_FL_DEFAULT' undeclared (first use in this function)

cdemu.c:916: warning: implicit declaration of function `BLK_DEFAULT_QUEUE'

cdemu.c:916: warning: passing arg 1 of `blk_init_queue' makes pointer from integer without a cast

cdemu.c:916: warning: passing arg 2 of `blk_init_queue' from incompatible pointer type

cdemu.c:919: error: `blk_size' undeclared (first use in this function)

cdemu.c:920: error: `blksize_size' undeclared (first use in this function)

cdemu.c: In function `cdemu_exit':

cdemu.c:962: warning: implicit declaration of function `fsync_dev'

cdemu.c:965: warning: passing arg 1 of `blk_cleanup_queue' makes pointer from integer without a cast

cdemu.c:968: error: invalid use of undefined type `struct cdemu_device'

cdemu.c:968: error: dereferencing pointer to incomplete type

cdemu.c:969: error: dereferencing pointer to incomplete type

cdemu.c:974: warning: implicit declaration of function `devfs_unregister_blkdev'

cdemu.c:978: warning: implicit declaration of function `devfs_unregister'

make: *** [cdemu.o] Błąd 1

[root@localhost cdemu_0.5.3]#

 

 

koncuwka z instalacji nowej wersji gcc

 

make[4]: Leaving directory `/mnt/win_c/fedora/gcc-3.4.2/i686-pc-linux-gnu/libstdc++-v3'

make[3]: Nie nic do roboty w `install-data-am'.

make[3]: Leaving directory `/mnt/win_c/fedora/gcc-3.4.2/i686-pc-linux-gnu/libstdc++-v3'

make[2]: Leaving directory `/mnt/win_c/fedora/gcc-3.4.2/i686-pc-linux-gnu/libstdc++-v3'

make[1]: Leaving directory `/mnt/win_c/fedora/gcc-3.4.2/i686-pc-linux-gnu/libstdc++-v3'

/bin/sh: line 0: cd: i686-pc-linux-gnu/libf2c: Nie ma takiego pliku ani katalogu

make: *** [install-target-libf2c] Błąd 1

Odnośnik do komentarza
Udostępnij na innych stronach

/bin/sh: line 0: cd: i686-pc-linux-gnu/libf2c: Nie ma takiego pliku ani katalogu

make: *** [install-target-libf2c] Błąd 1

Sprawdz, czy masz gdzieś w folderze /mnt/win_c/fedora/gcc-3.4.2 ten plik libf2c, a jeżeli tak, to skopiuj go do tego katalogu co wyżej i wtedy sprawdz.

Odnośnik do komentarza
Udostępnij na innych stronach

..ja tez mam problem z gcc... tzn. jakos mi sie udalo nie zainstalowac przy instalacji fc3 ;-)

doinstlowalem rpm z plyty ...ale teraz tak.. po pierwsze:

przy uruchomieniu ./configure pojawialo mi sie:

¨checking for gcc... gcc

checking for C compiler default output... configure: error: C compiler cannot create executables ¨

 

po drugie... przy kompilacji przykladowego programu

typu printf(¨\n hello world \n¨); wywala mi bledy...

 

dokladnie..cos takiego

$ gcc test.c -otest

/usr/bin/ld: crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status

 

co to moze znaczyc?

Odnośnik do komentarza
Udostępnij na innych stronach

[root@localhost cdemu_0.5.3]# make

cc -O2 -Wall -I/lib/modules/2.6.9-1.667/build/include -D__KERNEL__ -DMODULE  -c -o cdemu.o cdemu.c

Matko... Po kiego grzyba instalujesz jakieś antyki? Ta wersja działa tylko z jądrem 2.4 - jest to wyrażnie napisane na stronie projektu. cdemu-0.7 powinno rozwiązać Twój problem.

 

Aha, nie ma potrzeby kompilować program z konta roota.

koncuwka z instalacji nowej wersji gcc

 

make[4]: Leaving directory `/mnt/win_c/fedora/gcc-3.4.2/i686-pc-linux-gnu/libstdc++-v3'

Jeszcze powiedz, że /mnt/win_c to partycja FAT32 <_< To se ne da. Nie prościej zainstalować odpowiednie paczki yumem?

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...