Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2010-11-24 13:59:21

  styko - Użytkownik

styko
Użytkownik
Zarejestrowany: 2010-11-24

problem z poleceniem make

Witam. Mam dosyć duży problem z zainstalowaniem sterowników i programu monitorującego działanie upsa. Działam na Kubuntu 9.4 jednakże podobny problem miałem na 10.04 i na Debianie.

Po kolei. Mam do rozpakowania z płyty plik powersoftplus-1.0.5a.
oczywiście tar -xvzf powersoftplus-1.0.5a

następnie w katalogu powersoftplus-.1.0.5a komenda
./configure (chyba, że w tym miejscu jest coś czego się nie doszukałem)

Kod:

root@backup-www:/tmp/powersoftplus-0.1.7# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes           
checking for gawk... no                                     
checking for mawk... mawk                                   
checking whether make sets $(MAKE)... yes                   
checking for g++... g++                                     
checking for C++ compiler default output file name... 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 g++ accepts -g... yes                      
checking for style of include used by make... GNU           
checking dependency style of g++... gcc3                    
checking build system type... i686-pc-linux-gnu             
checking host system type... i686-pc-linux-gnu              
checking for gcc... gcc                                     
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 dependency style of gcc... gcc3                    
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E                               
checking for ld used by gcc... /usr/bin/ld                  
checking if the linker (/usr/bin/ld) is GNU ld... yes       
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B            
checking whether ln -s works... yes                         
checking how to recognise dependent libraries... pass_all   
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes                           
checking dlfcn.h presence... yes                            
checking for dlfcn.h... yes                                 
checking how to run the C++ preprocessor... g++ -E          
checking for g77... no                                      
checking for f77... no                                      
checking for xlf... no                                      
checking for frt... no                                      
checking for pgf77... no                                    
checking for fort77... no                                   
checking for fl32... no                                     
checking for af77... no                                     
checking for f90... no                                      
checking for xlf90... no                                    
checking for pgf90... no                                    
checking for epcf90... no                                   
checking for f95... no                                      
checking for fort... no                                     
checking for xlf95... no                                    
checking for ifc... no                                      
checking for efc... no                                      
checking for pgf95... no                                    
checking for lf95... no                                     
checking for gfortran... no                                 
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no                             
checking the maximum length of command line arguments... 32768 
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs                                         
checking for ar... ar                                                
checking for ranlib... ranlib                                        
checking for strip... strip                                          
checking if gcc static flag  works... yes                            
checking if gcc supports -fno-rtti -fno-exceptions... no             
checking for gcc option to produce PIC... -fPIC                      
checking if gcc PIC flag -fPIC works... yes                          
checking if gcc supports -c -o file.o... yes                         
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no                     
checking dynamic linker characteristics... GNU/Linux ld.so                    
checking how to hardcode library paths into programs... immediate             
checking whether stripping libraries is possible... yes                       
checking if libtool supports shared libraries... yes                          
checking whether to build shared libraries... yes                             
checking whether to build static libraries... yes                             
configure: creating libtool                                                   
appending configuration tag "CXX" to libtool                                  
checking for ld used by g++... /usr/bin/ld                                    
checking if the linker (/usr/bin/ld) is GNU ld... yes                         
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC                               
checking if g++ PIC flag -fPIC works... yes                                   
checking if g++ supports -c -o file.o... yes                                  
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so                    
checking how to hardcode library paths into programs... immediate             
checking whether stripping libraries is possible... yes                       
appending configuration tag "F77" to libtool                                  
configure: creating ./config.status                                           
config.status: creating Makefile                                              
config.status: creating src/Makefile                                          
config.status: creating conf/Makefile                                         
config.status: creating pix/Makefile                                          
config.status: creating scripts/powersoftplus                                 
config.status: creating scripts/Makefile                                      
config.status: creating config.h                                              
config.status: executing depfiles commands

następnie make, i tu się dzieją cuda dla mnie

Kod:

root@backup-www:/tmp/powersoftplus-0.1.7# make                                  
make  all-recursive                                                             
make[1]: Wejście do katalogu `/tmp/powersoftplus-0.1.7'                         
Making all in src                                                               
make[2]: Wejście do katalogu `/tmp/powersoftplus-0.1.7/src'                     
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT AMMimeUtils.o -MD -MP -MF ".deps/AMMimeUtils.Tpo" -c -o AMMimeUtils.o AMMimeUtils.cpp; \                 
        then mv -f ".deps/AMMimeUtils.Tpo" ".deps/AMMimeUtils.Po"; else rm -f ".deps/AMMimeUtils.Tpo"; exit 1; fi                                               
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT ccomm.o -MD -MP -MF ".deps/ccomm.Tpo" -c -o ccomm.o ccomm.cpp; \                                         
        then mv -f ".deps/ccomm.Tpo" ".deps/ccomm.Po"; else rm -f ".deps/ccomm.Tpo"; exit 1; fi                                                                 
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT cemail.o -MD -MP -MF ".deps/cemail.Tpo" -c -o cemail.o cemail.cpp; \                                     
        then mv -f ".deps/cemail.Tpo" ".deps/cemail.Po"; else rm -f ".deps/cemail.Tpo"; exit 1; fi                                                              
cemail.cpp: In member function ‘int CEmail::OpenConnection()’:                  
cemail.cpp:95: warning: deprecated conversion from string constant to ‘char*’   
cemail.cpp:121: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp: In member function ‘int CEmail::CloseConnection()’:                 
cemail.cpp:136: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp: In member function ‘int CEmail::SendMessage(char*, char*, int)’:    
cemail.cpp:170: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:187: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:204: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:219: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:232: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:245: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:281: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp: In member function ‘int CEmail::SendMessageTo(char*, char*, char*, int)’:                                                                           
cemail.cpp:316: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:328: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:340: warning: deprecated conversion from string constant to ‘char*’  
cemail.cpp:376: warning: deprecated conversion from string constant to ‘char*’  
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT clog.o -MD -MP -MF ".deps/clog.Tpo" -c -o clog.o clog.cpp; \                                             
        then mv -f ".deps/clog.Tpo" ".deps/clog.Po"; else rm -f ".deps/clog.Tpo"; exit 1; fi                                                                    
clog.cpp: In member function ‘int CLog::new_msg(msgtype, char*, ...)’:          
clog.cpp:122: warning: format not a string literal and no format arguments      
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.cpp; \                                     
        then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi                                                              
common.cpp: In function ‘int get_pid(const char*)’:                             
common.cpp:148: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result                                  
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT conf.o -MD -MP -MF ".deps/conf.Tpo" -c -o conf.o conf.cpp; \                                             
        then mv -f ".deps/conf.Tpo" ".deps/conf.Po"; else rm -f ".deps/conf.Tpo"; exit 1; fi                                                                    
conf.cpp: In member function ‘char* CConf::geterrordesc()’:                     
conf.cpp:153: warning: deprecated conversion from string constant to ‘char*’    
conf.cpp:154: warning: deprecated conversion from string constant to ‘char*’
conf.cpp:155: warning: deprecated conversion from string constant to ‘char*’
conf.cpp:156: warning: deprecated conversion from string constant to ‘char*’
conf.cpp:157: warning: deprecated conversion from string constant to ‘char*’
conf.cpp:158: warning: deprecated conversion from string constant to ‘char*’
conf.cpp:159: warning: deprecated conversion from string constant to ‘char*’
conf.cpp: In member function ‘char* CConf::getcfgitemvalue(char*)’:
conf.cpp:170: warning: deprecated conversion from string constant to ‘char*’
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -pthread -O -MT cshmem.o -MD -MP -MF ".deps/cshmem.Tpo" -c -o cshmem.o cshmem.cpp; \
        then mv -f ".deps/cshmem.Tpo" ".deps/cshmem.Po"; else rm -f ".deps/cshmem.Tpo"; exit 1; fi
cshmem.cpp: In member function ‘int CShMem::open(size_t)’:
cshmem.cpp:120: error: ‘strerror’ was not declared in this scope
cshmem.cpp:126: error: ‘strerror’ was not declared in this scope
cshmem.cpp: In member function ‘int CShMem::read(void*, size_t, size_t)’:
cshmem.cpp:143: error: ‘memcpy’ was not declared in this scope
cshmem.cpp: In member function ‘int CShMem::read(void*, size_t, size_t, bool)’:
cshmem.cpp:158: error: ‘memcpy’ was not declared in this scope
cshmem.cpp: In member function ‘int CShMem::write(void*, size_t, size_t)’:
cshmem.cpp:204: error: ‘memcpy’ was not declared in this scope
cshmem.cpp: In member function ‘int CShMem::write(void*, size_t, size_t, bool)’:
cshmem.cpp:218: error: ‘memcpy’ was not declared in this scope
make[2]: *** [cshmem.o] Błąd 1
make[2]: Opuszczenie katalogu `/tmp/powersoftplus-0.1.7/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/tmp/powersoftplus-0.1.7'
make: *** [all] Błąd 2
root@backup-www:/tmp/powersoftplus-0.1.7#

Czy może ktoś ma pomysł co zrobić z tym fantem??

Z góry dziękuję!

Offline

 

#2  2010-11-24 14:28:03

  ilin - Palacz

ilin
Palacz
Skąd: PRLu
Zarejestrowany: 2006-05-03

Re: problem z poleceniem make

Widzę tu pewną rozbieżność

Kod:

Mam do rozpakowania z płyty plik powersoftplus-1.0.5a.
oczywiście tar -xvzf powersoftplus-1.0.5a

Kod:

root@backup-www:/tmp/powersoftplus-0.1.7# ./configure

Dosyc duża rożnica wersji skąd to się bierze ?


Druga sprawa czy gcc nie jest zbyt nowe dla tego programu.

http://packages.gentoo.org/package/sys-power/powersoftplus

Tu mamy patcha dla nowszej wersji gcc dlatego moje obawy właśnie o gcc.


[b]Problemy rozwiązujemy na forum nie na PW[/b] -> Niech inni na tym skorzystają.
[url=http://dug.net.pl/]Polski portal Debiana[/url]

Offline

 

#3  2010-11-24 14:36:37

  styko - Użytkownik

styko
Użytkownik
Zarejestrowany: 2010-11-24

Re: problem z poleceniem make

przepraszam za tą rozbieżność wersji, miałem 2 katalogi i po prostu pomieszałem wklejanie do posta. Wszytko działo się na 1.0.5a

już zabieram się do sprawdzania gcc, dzięki za podpowiedź, mam nadzieję, że trafna.

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.010 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00008 SET CHARSET latin2
0.00005 SET NAMES latin2
0.00094 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.72.44' WHERE u.id=1
0.00097 UPDATE punbb_online SET logged=1732459150 WHERE ident='3.145.72.44'
0.00076 SELECT * FROM punbb_online WHERE logged<1732458850
0.00091 SELECT topic_id FROM punbb_posts WHERE id=159338
0.00096 SELECT id FROM punbb_posts WHERE topic_id=17812 ORDER BY posted
0.00095 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=17812 AND t.moved_to IS NULL
0.00006 SELECT search_for, replace_with FROM punbb_censoring
0.00124 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=17812 ORDER BY p.id LIMIT 0,25
0.00108 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=17812
Total query time: 0.008 s