Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Программирование под Unix/Linux > Проблема с make/libtool


Автор: andrew_121 19.6.2009, 07:18
Доброго времени суток!
В KDevelop создаю проект из шаблона. ./configure выполняется без ошибок. Нр при выполнении make, много ругатни!
Код

root@nixman:/home/nixman/test# make
make  all-recursive                
make[1]: Entering directory `/home/nixman/test'
Making all in src                              
make[2]: Entering directory `/home/nixman/test/src'
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po                                                               
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2    -o test test.o                        
../libtool: line 821: X--tag=CC: command not found
../libtool: line 854: libtool: ignoring unknown tag : command not found
../libtool: line 821: X--mode=link: command not found
../libtool: line 988: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 989: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2226: X-g: command not found
../libtool: line 2226: X-O2: command not found
../libtool: line 2395: Xtest: command not found

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.


Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.

 ddxSigGiveUp: Closing log
../libtool: line 2407: Xtest: command not found
../libtool: line 5167: Xgcc "" "" -o @OUTPUT@ test.o : command not found
../libtool: line 5168: Xgcc "" "" -o @OUTPUT@ test.o : command not found

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.


Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.

 ddxSigGiveUp: Closing log
../libtool: line 5177: : command not found

Я так понимаю, проблема в символе Х, который лепится куда не попадя.
Все началось после того как переставил ОС.
Файл libtool прилагаю.

Добавлено через 54 секунды
Цитата(andrew_121 @  19.6.2009,  07:18 Найти цитируемый пост)
Файл libtool прилагаю. 

Нет. Не прилагается)

Автор: Pointer 19.6.2009, 09:23
KDevelop`y нужны дополнительно пакеты:

Код

aclocal
autoconf
automake


Если установлены, то попробуй с libtoolize поигратьсяsmile

Код

libtoolize - add libtool support to your package

Автор: andrew_121 19.6.2009, 15:10
Pointer, Все пакеты установленны!
Вот вывод в консоль. Начиная с ./configure
Код

0;nixman@nixman: ~/testnixman@nixman:~/test$ ./configure                                                                                                                            
checking for a BSD-compatible install... /usr/bin/install -c                                                                                                                        
checking whether build environment is sane... yes                                                                                                                                   
checking for a thread-safe mkdir -p... /bin/mkdir -p                                                                                                                                
checking for gawk... gawk                                                                                                                                                           
checking whether make sets $(MAKE)... yes                                                                                                                                           
checking for gcc... gcc                                                                                                                                                             
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 gcc accepts -g... yes                                                                                                                                              
checking for gcc option to accept ISO C89... none needed                                                                                                                            
checking for style of include used by make... GNU                                                                                                                                   
checking dependency style of gcc... gcc3                                                                                                                                            
checking build system type... i686-pc-linux-gnu                                                                                                                                     
checking host system type... i686-pc-linux-gnu                                                                                                                                      
checking for a sed that does not truncate output... /bin/sed                                                                                                                        
checking for grep that handles long lines and -e... /bin/grep                                                                                                                       
checking for egrep... /bin/grep -E                                                                                                                                                  
checking for fgrep... /bin/grep -F                                                                                                                                                  
checking for ld used by gcc... /usr/bin/ld                                                                                                                                          
checking if the linker (/usr/bin/ld) is GNU ld... yes                                                                                                                               
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B                                                                                                               
checking the name lister (/usr/bin/nm -B) interface... BSD nm                                                                                                                       
checking whether ln -s works... yes                                                                                                                                                 
checking the maximum length of command line arguments... 1572864                                                                                                                    
checking whether the shell understands some XSI constructs... yes                                                                                                                   
checking whether the shell understands "+="... yes                                                                                                                                  
checking for /usr/bin/ld option to reload object files... -r                                                                                                                        
checking for objdump... objdump                                                                                                                                                     
checking how to recognize dependent libraries... pass_all                                                                                                                           
checking for ar... ar                                                                                                                                                               
checking for strip... strip                                                                                                                                                         
checking for ranlib... ranlib                                                                                                                                                       
checking command to parse /usr/bin/nm -B output from gcc object... ok                                                                                                               
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 for dlfcn.h... yes                                                                                                                                                         
checking for objdir... .libs                                                                                                                                                        
checking if gcc supports -fno-rtti -fno-exceptions... no                                                                                                                            
checking for gcc option to produce PIC... -fPIC -DPIC                                                                                                                               
checking if gcc PIC flag -fPIC -DPIC works... yes                                                                                                                                   
checking if gcc static flag -static works... yes                                                                                                                                    
checking if gcc supports -c -o file.o... yes                                                                                                                                        
checking if gcc supports -c -o file.o... (cached) 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 ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
0;nixman@nixman: ~/testnixman@nixman:~/test$ make
make  all-recursive
make[1]: Entering directory `/home/nixman/test'
Making all in src
make[2]: Entering directory `/home/nixman/test/src'
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2    -o test test.o
../libtool: line 821: X--tag=CC: command not found
../libtool: line 854: libtool: ignoring unknown tag : command not found
../libtool: line 821: X--mode=link: command not found
../libtool: line 988: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 989: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2226: X-g: command not found
../libtool: line 2226: X-O2: command not found
../libtool: line 2395: Xtest: command not found
X: user not authorized to run the X server, aborting.
../libtool: line 2407: Xtest: command not found
../libtool: line 5167: Xgcc "" "" -o @OUTPUT@ test.o : command not found
../libtool: line 5168: Xgcc "" "" -o @OUTPUT@ test.o : command not found
X: user not authorized to run the X server, aborting.
../libtool: line 5177: : command not found
make[2]: Leaving directory `/home/nixman/test/src'
make[2]: Entering directory `/home/nixman/test'
make[2]: Leaving directory `/home/nixman/test'
make[1]: Leaving directory `/home/nixman/test'

Откуда берется Х ???

Автор: Pointer 19.6.2009, 21:38
Скажи пожалуйста из какого именно шаблона.
Откуда X, это нужно искать в майк-файлах.

попробуй поискать в libtool
X--tag, X--mode. Убрать их)

видимо твой либтул надо адаптировать под новую версию ОС.=)

в папке с проектом libtoolize --force выполнить попробуй.

Автор: andrew_121 20.6.2009, 08:02
Цитата(Pointer @  19.6.2009,  21:38 Найти цитируемый пост)
Скажи пожалуйста из какого именно шаблона.

В KDevelop, при создании проекта, предлагается выбор шаблонов. Я выбираю Hello world. Хотя, мне кажется что дело не в этом.
Цитата(Pointer @  19.6.2009,  21:38 Найти цитируемый пост)
Откуда X, это нужно искать в майк-файлах.

Мейкфайл запускает libtool перед компиляцией. Вот libtool и и ругается.
Цитата(Pointer @  19.6.2009,  21:38 Найти цитируемый пост)
попробуй поискать в libtool
X--tag, X--mode. Убрать их)

Смотрел. Есть) Но libtool, создается при выполнении ./configure. Почему он создается не правильно - вот вопрос.
Цитата(Pointer @  19.6.2009,  21:38 Найти цитируемый пост)
видимо твой либтул надо адаптировать под новую версию ОС.=)

Так ведь все пакеты участвующие в процессе компиляции, установлены с дистрибутива.

Автор: Acer 4.7.2009, 22:28
У меня та же проблема

Автор: freefd 11.7.2009, 18:45
есть мнение, что перед ./configure стоит выполнить
Код

libtoolize --force --copy
aclocal
autoconf
automake


Автор: Acer 11.7.2009, 18:49
Или понизить версию libtool

Автор: andrew_121 25.7.2009, 23:50
Ошибка в пакетах. Просто устанавливаем предыдущую версию.

Автор: andrew_121 2.10.2009, 02:21
Снова то же. Но выбрать предыдущую версию libtool уже не получается, ее просто нет.
Какие идеи?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)