Freesco, NND, CDN, EOS
http://forum.freesco.pl/

Problem z kompilacja.
http://forum.freesco.pl/viewtopic.php?f=22&t=11066
Strona 1 z 1

Autor:  Ulter [ piątek, 3 lutego 2006, 13:21 ]
Tytuł:  Problem z kompilacja.

Próbuje skompilować smartmontools-5.33 i mam z tym problem,m brakuje mi chyba jakiejsc bibliteki. Tak wygląda ./configure:

: [/] [] ()
[root@as smartmontools-5.33]# ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for library containing gethostbyname... none required
checking how to run the C preprocessor... /lib/cpp
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking dev/ata/atavar.h usability... no
checking dev/ata/atavar.h presence... no
checking for dev/ata/atavar.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking for inttypes.h... (cached) no
checking for stdint.h... (cached) no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking sys/tweio.h usability... no
checking sys/tweio.h presence... no
checking for sys/tweio.h... no
checking sys/twereg.h usability... no
checking sys/twereg.h presence... no
checking for sys/twereg.h... no
checking for getopt... no
checking for getopt_long... no
checking for getdomainname... no
checking for gethostname... no
checking for gethostbyname... no
checking for sigset... no
checking for strtoull... no
checking for uname... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating examplescripts/Makefile
config.status: creating config.h
config.status: executing depfiles commands
checking whether make sets $(MAKE)... (cached) yes
[root@as smartmontools-5.33]#


Próbowałem dac tez tak:

./configure --sbindir=/usr/sbin
--sysconfdir=/etc
--mandir=/usr/share/man
--with-initscriptdir=/etc/rc.d
--with-docdir=/usr/share/doc/smartmontools-VERSION

Efekt ten sam przy make wali errorami. Tak wyglada końcówka:

: [/] [] ()
smartd.c:3594: error: parse error before '(' token
smartd.c:3600: warning: type defaults to `int' in declaration of `PrintHead'
smartd.c:3600: warning: data definition has no type or storage class
smartd.c:3604: error: parse error before numeric constant
smartd.c:3604: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3604: warning: data definition has no type or storage class
smartd.c:3605: warning: type defaults to `int' in declaration of `PrintValidArgs'
smartd.c:3605: warning: parameter names (without types) in function declaration
smartd.c:3605: warning: data definition has no type or storage class
smartd.c:3606: error: parse error before numeric constant
smartd.c:3606: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3606: warning: data definition has no type or storage class
smartd.c:3607: error: parse error before '(' token
smartd.c:3614: warning: type defaults to `int' in declaration of `PrintHead'
smartd.c:3614: warning: data definition has no type or storage class
smartd.c:3615: error: parse error before numeric constant
smartd.c:3615: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3615: warning: data definition has no type or storage class
smartd.c:3616: error: parse error before numeric constant
smartd.c:3616: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3616: warning: data definition has no type or storage class
smartd.c:3617: error: parse error before '(' token
smartd.c:3623: warning: type defaults to `int' in declaration of `PrintHead'
smartd.c:3623: warning: data definition has no type or storage class
smartd.c:3624: error: parse error before numeric constant
smartd.c:3624: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3624: warning: data definition has no type or storage class
smartd.c:3625: error: parse error before numeric constant
smartd.c:3625: warning: type defaults to `int' in declaration of `PrintOut'
smartd.c:3625: warning: data definition has no type or storage class
smartd.c:3626: warning: type defaults to `int' in declaration of `pid_file'
smartd.c:3626: error: conflicting types for `pid_file'
smartd.c:150: error: previous declaration of `pid_file'
smartd.c:3626: warning: passing arg 1 of `FreeNonZero' makes pointer from integer without a cast
smartd.c:3626: warning: data definition has no type or storage class
smartd.c:3627: error: parse error before '{' token
smartd.c:3627: error: parse error before '(' token
smartd.c:3631: warning: type defaults to `int' in declaration of `PrintHead'
smartd.c:3631: warning: data definition has no type or storage class
smartd.c:3633: error: parse error before "return"
smartd.c: In function `MakeConfigEntries':
smartd.c:3665: error: `size_t' undeclared (first use in this function)
smartd.c:3665: error: parse error before "__s1_len"
smartd.c:3665: error: `__s1_len' undeclared (first use in this function)
smartd.c:3665: error: `__s2_len' undeclared (first use in this function)
smartd.c:3665: error: parse error before "const"
smartd.c:3665: error: parse error before "const"
smartd.c:3665: warning: left-hand operand of comma expression has no effect
smartd.c:3665: warning: left-hand operand of comma expression has no effect
smartd.c:3665: error: parse error before "const"
smartd.c:3665: error: parse error before "const"
smartd.c:3665: error: parse error before ')' token
smartd.c:3665: error: parse error before ':' token
smartd.c:3665: warning: empty body in an if-statement
smartd.c:3665: error: `__s2' undeclared (first use in this function)
smartd.c:3665: error: parse error before ')' token
smartd.c:3665: warning: statement with no effect
smartd.c:3665: warning: statement with no effect
smartd.c: At top level:
smartd.c:3665: error: parse error before ')' token
smartd.c:3665: error: conflicting declarations of `__result'
smartd.c:3535: error: `__result' previously declared here
smartd.c:3665: error: `__s1' undeclared here (not in a function)
smartd.c:3665: error: parse error before "if"
smartd.c:3665: warning: type defaults to `int' in declaration of `__result'
smartd.c:3665: error: conflicting declarations of `__result'
smartd.c:3665: error: `__result' previously defined here
smartd.c:3665: warning: data definition has no type or storage class
smartd.c:3665: error: parse error before '}' token
smartd.c:3667: error: parse error before '&&' token
smartd.c:3667: warning: type defaults to `int' in declaration of `__result'
smartd.c:3667: warning: data definition has no type or storage class
smartd.c:3667: error: parse error before '}' token
smartd.c:3667: error: conflicting declarations of `__result'
smartd.c:3667: error: `__result' previously declared here
smartd.c:3667: error: `type' undeclared here (not in a function)
smartd.c:3667: error: `__s2' undeclared here (not in a function)
smartd.c:3667: error: parse error before "if"
smartd.c:3667: warning: type defaults to `int' in declaration of `__result'
smartd.c:3667: error: conflicting declarations of `__result'
smartd.c:3667: error: `__result' previously defined here
smartd.c:3667: warning: data definition has no type or storage class
smartd.c:3667: error: parse error before '}' token
smartd.c:3667: warning: type defaults to `int' in declaration of `__result'
smartd.c:3667: warning: data definition has no type or storage class
smartd.c:3667: error: parse error before '}' token
smartd.c:3667: error: conflicting declarations of `__result'
smartd.c:3667: error: `__result' previously declared here
smartd.c:3667: error: `__s1' undeclared here (not in a function)
smartd.c:3667: error: parse error before "if"
smartd.c:3667: warning: type defaults to `int' in declaration of `__result'
smartd.c:3667: error: conflicting declarations of `__result'
smartd.c:3667: error: `__result' previously defined here
smartd.c:3667: warning: data definition has no type or storage class
smartd.c:3667: error: parse error before '}' token
smartd.c:3682: warning: type defaults to `int' in declaration of `devlist'
smartd.c:3682: error: `num' undeclared here (not in a function)
smartd.c:3682: warning: passing arg 1 of `FreeNonZero' makes pointer from integer without a cast
smartd.c:3682: warning: initialization makes integer from pointer without a cast
smartd.c:3682: error: initializer element is not constant
smartd.c:3682: warning: data definition has no type or storage class
smartd.c:3684: error: parse error before "return"
smartd.c: In function `main':
smartd.c:3873: error: parse error before "control"
smartd.c:3882: error: `control' undeclared (first use in this function)
smartd.c:3889: error: request for member `printing_switchable' in something not a structure or union
smartd.c:3890: error: request for member `dont_print' in something not a structure or union
smartd.c:3893: error: request for member `checksumfail' in something not a structure or union
smartd.c: At top level:
/usr/include/gconv.h:176: warning: array `__data' assumed to have one element
smartd.c:1542: error: register name not specified for `__result'
smartd.c:1545: error: register name not specified for `__result'
smartd.c:1545: error: register name not specified for `__result'
smartd.c:1548: error: register name not specified for `__result'
smartd.c:1548: error: register name not specified for `__result'
smartd.c:2667: error: register name not specified for `__result'
smartd.c:2672: error: register name not specified for `__result'
smartd.c:2672: error: register name not specified for `__result'
smartd.c:2683: error: register name not specified for `__result'
smartd.c:2683: error: register name not specified for `__result'
smartd.c:2686: error: register name not specified for `__result'
smartd.c:2686: error: register name not specified for `__result'
smartd.c:2689: error: register name not specified for `__result'
smartd.c:2689: error: register name not specified for `__result'
smartd.c:2692: error: register name not specified for `__result'
smartd.c:2692: error: register name not specified for `__result'
smartd.c:2704: error: register name not specified for `__result'
smartd.c:2704: error: register name not specified for `__result'
smartd.c:2730: error: register name not specified for `__result'
smartd.c:2730: error: register name not specified for `__result'
smartd.c:2732: error: register name not specified for `__result'
smartd.c:2732: error: register name not specified for `__result'
smartd.c:2734: error: register name not specified for `__result'
smartd.c:2734: error: register name not specified for `__result'
smartd.c:2765: error: register name not specified for `__result'
smartd.c:2765: error: register name not specified for `__result'
smartd.c:2768: error: register name not specified for `__result'
smartd.c:2768: error: register name not specified for `__result'
smartd.c:2788: error: register name not specified for `__result'
smartd.c:2788: error: register name not specified for `__result'
smartd.c:2790: error: register name not specified for `__result'
smartd.c:2790: error: register name not specified for `__result'
smartd.c:2800: error: register name not specified for `__result'
smartd.c:2800: error: register name not specified for `__result'
smartd.c:2802: error: register name not specified for `__result'
smartd.c:2802: error: register name not specified for `__result'
smartd.c:2804: error: register name not specified for `__result'
smartd.c:2804: error: register name not specified for `__result'
smartd.c:2806: error: register name not specified for `__result'
smartd.c:2806: error: register name not specified for `__result'
smartd.c:2815: error: register name not specified for `__result'
smartd.c:2815: error: register name not specified for `__result'
smartd.c:2817: error: register name not specified for `__result'
smartd.c:2817: error: register name not specified for `__result'
smartd.c:2873: error: register name not specified for `__result'
smartd.c:2873: error: register name not specified for `__result'
smartd.c:2875: error: register name not specified for `__result'
smartd.c:2875: error: register name not specified for `__result'
smartd.c:2877: error: register name not specified for `__result'
smartd.c:2877: error: register name not specified for `__result'
smartd.c:2879: error: register name not specified for `__result'
smartd.c:2879: error: register name not specified for `__result'
smartd.c:2881: error: register name not specified for `__result'
smartd.c:2881: error: register name not specified for `__result'
smartd.c:2936: error: register name not specified for `__result'
smartd.c:2936: error: register name not specified for `__result'
smartd.c:2938: error: register name not specified for `__result'
smartd.c:2938: error: register name not specified for `__result'
smartd.c:2940: error: register name not specified for `__result'
smartd.c:2940: error: register name not specified for `__result'
smartd.c:2942: error: register name not specified for `__result'
smartd.c:2942: error: register name not specified for `__result'
smartd.c:3084: error: register name not specified for `__result'
smartd.c:3176: error: register name not specified for `__result'
smartd.c:3176: error: register name not specified for `__result'
smartd.c:3440: error: register name not specified for `__result'
smartd.c:3440: error: register name not specified for `__result'
smartd.c:3442: error: register name not specified for `__result'
smartd.c:3442: error: register name not specified for `__result'
smartd.c:3444: error: register name not specified for `__result'
smartd.c:3444: error: register name not specified for `__result'
smartd.c:3447: error: register name not specified for `__result'
smartd.c:3447: error: register name not specified for `__result'
smartd.c:3455: error: register name not specified for `__result'
smartd.c:3455: error: register name not specified for `__result'
smartd.c:3457: error: register name not specified for `__result'
smartd.c:3457: error: register name not specified for `__result'
smartd.c:3459: error: register name not specified for `__result'
smartd.c:3459: error: register name not specified for `__result'
smartd.c:3461: error: register name not specified for `__result'
smartd.c:3461: error: register name not specified for `__result'
smartd.c:3463: error: register name not specified for `__result'
smartd.c:3463: error: register name not specified for `__result'
smartd.c:3465: error: register name not specified for `__result'
smartd.c:3465: error: register name not specified for `__result'
smartd.c:3467: error: register name not specified for `__result'
smartd.c:3467: error: register name not specified for `__result'
smartd.c:3469: error: register name not specified for `__result'
smartd.c:3469: error: register name not specified for `__result'
smartd.c:3471: error: register name not specified for `__result'
smartd.c:3471: error: register name not specified for `__result'
smartd.c:3521: error: register name not specified for `__result'
smartd.c:3521: error: register name not specified for `__result'
smartd.c:3523: error: register name not specified for `__result'
smartd.c:3523: error: register name not specified for `__result'
smartd.c:3525: error: register name not specified for `__result'
smartd.c:3525: error: register name not specified for `__result'
smartd.c:3535: error: register name not specified for `__result'
smartd.c:3535: error: register name not specified for `__result'
smartd.c:3665: error: register name not specified for `__result'
smartd.c:3667: error: register name not specified for `__result'
smartd.c:3667: error: register name not specified for `__result'
make[2]: *** [smartd.o] Błąd 1
make[2]: Leaving directory `/home/nowy/smartmontools-5.33'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/nowy/smartmontools-5.33'
make: *** [all] Błąd 2
[root@as smartmontools-5.33]#


Czego mi brakuje?

Autor:  Mis' [ piątek, 3 lutego 2006, 13:39 ]
Tytuł: 

dokumentację czytałeś? Pisali coś o plikach nagłówkowych? IMHO brakuje ci nagłówków jądra i być może jeszcze nagłówków jakichś bibliotek.

Autor:  tasiorek [ piątek, 3 lutego 2006, 14:00 ]
Tytuł: 

Przeciez nawet nie zainstalowales wersji devel. Jak juz to zrobisz to jeszcze zinstaluj wymagane przez ten program pakiety i ich wersje devel.

Autor:  Ulter [ piątek, 3 lutego 2006, 14:12 ]
Tytuł:  hmmmm

wlasnie nie widze aby gdzies pisalo co jest potrzebne do kompilacji. Może ktoś na to zerknąc?
http://sourceforge.net/project/showfile ... p_id=64297

Autor:  Ulter [ piątek, 3 lutego 2006, 14:13 ]
Tytuł: 

tasiorek pisze:
Przeciez nawet nie zainstalowales wersji devel. Jak juz to zrobisz to jeszcze zinstaluj wymagane przez ten program pakiety i ich wersje devel.


Wersji devel czego?

Autor:  tasiorek [ piątek, 3 lutego 2006, 14:22 ]
Tytuł: 

Wersji devel nnd. Uprzedzajac pytanie jak: install_devel

Autor:  scipek [ piątek, 3 lutego 2006, 15:15 ]
Tytuł: 

pokopiuj sobie http://members.lycos.co.uk/komar99/smartmontools.tar.gz

Autor:  Ulter [ sobota, 4 lutego 2006, 18:24 ]
Tytuł: 

Wstyd sie przyznac czego brakowało ale poszło. Paczke tez zrobiłem ;)

Autor:  IDE [ piątek, 30 czerwca 2006, 18:22 ]
Tytuł: 

Ulter pisze:
Wstyd sie przyznac czego brakowało ale poszło. Paczke tez zrobiłem ;)

Przyznaj sie co zrobiłeś :?: :D
Ja chcę skompilować aprsd (http://sourceforge.net/projects/aprsd/) pod NND, i sypie mi podobnymi błedami, mimo tego, że specjalnie zainstalowalem wersje devel.
: [/] [] ()
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no



Już nie trzeba, odpowiedź znalazłem na forum :oops:

Teraz walcze z pozostałymi błędami...

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/