Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Kompilacja php5 - błędy
chfast
post 28.02.2004, 16:21:20
Post #1





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Witam.
Przy kompilacji php5 pojawia mi się błąd. Z informacji jakie się w tym momencie pojawiają chyba nic nie wynika:
Kod
collect2: ld returned 1 exit status

make: *** [sapi/cgi/php] Błąd 1

Czy dokładne prześledzenie konfiguracji moża coś pomoc? Może należy zainstalować nowsze wersje kompilatorów?


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
seaquest
post 28.02.2004, 17:05:02
Post #2





Grupa: Przyjaciele php.pl
Postów: 790
Pomógł: 7
Dołączył: 6.02.2003
Skąd: Polska

Ostrzeżenie: (0%)
-----


Podaj kilka ostatnich linijek wyplutych przez ./configure
Go to the top of the page
+Quote Post
chfast
post 28.02.2004, 17:19:30
Post #3





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Wrzucam to co moim zdaniem jest związane z tym ld i libtool.
Kod
Configuring libtool

checking for Cygwin environment... (cached) no

checking for mingw32 environment... (cached) no

checking build system type... i686-pc-linux-gnu

checking for ld used by GCC... (cached) /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes

checking for /usr/bin/ld option to reload object files... (cached) -r

checking for BSD-compatible nm... (cached) /usr/bin/nm -B

checking for a sed that does not truncate output... (cached) /bin/sed

checking how to recognise dependent libraries... (cached) pass_all

checking for object suffix... (cached) o

checking for executable suffix... (cached) no

checking command to parse /usr/bin/nm -B output... (cached) ok

checking for ranlib... (cached) ranlib

checking for strip... (cached) strip

checking for objdir... .libs

checking for gcc option to produce PIC... (cached)     -fPIC

checking if gcc PIC flag     -fPIC works... (cached) yes

checking if gcc static flag  works... (cached) no

checking if gcc supports -c -o file.o... (cached) yes

checking if gcc supports -c -o file.lo... (cached) yes

checking if gcc supports -fno-rtti -fno-exceptions... yes

checking whether the linker (/usr/bin/ld) supports shared libraries... yes

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking dynamic linker characteristics... GNU/Linux ld.so

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... no

checking whether to build static libraries... yes

creating libtool



Generating files

updating cache ./config.cache

creating ./config.status

creating php5.spec

creating main/build-defs.h

creating scripts/phpize

creating scripts/php-config

creating sapi/cli/php.1

creating main/php_config.h

main/php_config.h is unchanged

creating main/internal_functions.c

creating main/internal_functions_cli.c

+--------------------------------------------------------------------+

|                        *** WARNING ***                             |

|                                                                    |

| You will be compiling the CGI version of php without any           |

| redirection checking.  By putting this cgi binary somewhere in     |

| your web space, users may be able to circumvent existing .htaccess |

| security by loading files directly through the parser.  See        |

| http://www.php.net/manual/security.php for more details.           |

+--------------------------------------------------------------------+

| License:                                                           |

| This software is subject to the php License, available in this     |

| distribution in the file LICENSE.  By continuing this installation |

| process, you are bound by the terms of this license agreement.     |

| If you do not agree with the terms of this license, you must abort |

| the installation process at this point.                            |

+--------------------------------------------------------------------+



Thank you for using php.


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
seaquest
post 28.02.2004, 17:24:34
Post #4





Grupa: Przyjaciele php.pl
Postów: 790
Pomógł: 7
Dołączył: 6.02.2003
Skąd: Polska

Ostrzeżenie: (0%)
-----


Cytat
checking dynamic linker characteristics... GNU/Linux ld.so


No w sumie to chyba chodzi o bibliotekę ld.so , może znajdź ją w Internecie i zainstaluj jeszcze raz, potem skonfiguruj i zainstaluj php... prawdę mówiąc na razie nie mam innego pomysłu....
Go to the top of the page
+Quote Post
chfast
post 28.02.2004, 18:24:21
Post #5





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
No w sumie to chyba chodzi o bibliotekę ld.so , może znajdź ją w Internecie i zainstaluj jeszcze raz, potem skonfiguruj i zainstaluj php... prawdę mówiąc na razie nie mam innego pomysłu....

Zainstalowałem najnowszy pakiet glibc, ale to nic nie pomogło. To chyba nie w tym jest problem.

make uruchamia jakieś polecenie (/bin/sh /root/libtool) ze sporą ilością opcji. Potem uruchamiają się kolejne programy. Ale pojawiąją się takie błędy:
Kod
/usr/src/pub/src/php-5.0.0b4/Zend/zend_reflection_api.c:2841: undefined reference to `zend_get_class_entry'

Zend/zend_reflection_api.o(.text+0x624c): In function `zif_reflection_extension_getVersion':

/usr/src/pub/src/php-5.0.0b4/Zend/zend_reflection_api.c:2865: undefined reference to `zend_get_class_entry'

Zend/zend_reflection_api.o(.text+0x6317): In function `zif_reflection_extension_getFunctions':

/usr/src/pub/src/php-5.0.0b4/Zend/zend_reflection_api.c:2884: undefined reference to `zend_get_class_entry'

Zend/zend_reflection_api.o(.text+0x64a7): In function `zif_reflection_extension_getConstants':

/usr/src/pub/src/php-5.0.0b4/Zend/zend_reflection_api.c:2932: undefined reference to `zend_get_class_entry'

Zend/zend_reflection_api.o(.text+0x65e7): In function `zif_reflection_extension_getINIEntries':

/usr/src/pub/src/php-5.0.0b4/Zend/zend_reflection_api.c:2964: undefined reference to `zend_get_class_entry'

collect2: ld returned 1 exit status

make: *** [sapi/cgi/php] B³±d 1


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
seaquest
post 28.02.2004, 18:56:57
Post #6





Grupa: Przyjaciele php.pl
Postów: 790
Pomógł: 7
Dołączył: 6.02.2003
Skąd: Polska

Ostrzeżenie: (0%)
-----


czyli prawdopodobnie występują błędy w konfiguracji

ja dziś może spróbuję skompilować to u siebie, to zobaczę, a jeszcze jedno - jakiego masz linuxa bo na forum pisze, ze wersja i686 ale nic poza tym....
Go to the top of the page
+Quote Post
Jabol
post 28.02.2004, 19:48:53
Post #7





Grupa: Przyjaciele php.pl
Postów: 1 467
Pomógł: 13
Dołączył: 22.02.2003

Ostrzeżenie: (0%)
-----


to jest coś dziwnego. On poprostu próbuje to podlinkować do jakieś funkcji, która nie istnieje. Spróbuj może daj --disable-cgi (albo jakoś tak -> ./configure --help, ogólnie zaboluj jako cgi) i zainstalować jako moduł apacha (--with-apxs lub --with-apxs2).
ja osobiście kompilowałem z takimi opcjami, jeżeli chodzi o samo php (bez rozszeżeń)
Kod
./configure --prefix=/usr/local --with-apxs2 --with-config-file-path=/usr/local/etc/apache2/ --disable-short-tags --enable-versioning'
Go to the top of the page
+Quote Post
chfast
post 29.02.2004, 12:33:45
Post #8





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
czyli prawdopodobnie występują błędy w konfiguracji

ja dziś może spróbuję skompilować to u siebie, to zobaczę, a jeszcze jedno - jakiego masz linuxa bo na forum pisze, ze wersja i686 ale nic poza tym....

Man Mandrake 9.1. Ale narazie nie trudź się. Jeszcze mam kilka pomysłów do wykorzystania (np. ten co Jabol proponuje). Dzięki.


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
chfast
post 29.02.2004, 12:42:55
Post #9





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
to jest coś dziwnego. On poprostu próbuje to podlinkować do jakieś funkcji, która nie istnieje. Spróbuj może daj --disable-cgi (albo jakoś tak -> ./configure --help, ogólnie zaboluj jako cgi) i zainstalować jako moduł apacha (--with-apxs lub --with-apxs2).

No to próbowałem. Teraz pojawia się inny błąd:
Kod
ext/libxml/libxml.lo: file not recognized: File truncated

collect2: ld returned 1 exit status

make: *** [libphp5.la] Błąd 1

Update
Sprawdziłem i po prostu nie ma pliku ext/libxml/libxml.lo w źródłach php.

Znalazłem taki post. Dotyczy chyba tego samego problemu. Tylko niewiele z niego rozumiem, ale może ktoś jest bardziej rozgarnięty biggrin.gif .


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
seaquest
post 29.02.2004, 13:33:20
Post #10





Grupa: Przyjaciele php.pl
Postów: 790
Pomógł: 7
Dołączył: 6.02.2003
Skąd: Polska

Ostrzeżenie: (0%)
-----


w tych postach jest mowa niby o podobnej sprawie ale troszke innej, bo ten gosc instaluje php5b3 z o ile dobrze pamietam php4.3.2 rpm, a ty instalujesz ze zrodel. a sprobuj moze zainstalowac najnowsze libtool

a poza tym zacznij korzystac z redhata, ja skompilowalem wczoraj bez problemow
Go to the top of the page
+Quote Post
chfast
post 29.02.2004, 15:03:37
Post #11





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
sprobuj moze zainstalowac najnowsze libtool

Wlaśnie to zrobiłem i nic. A masz może ten plik libxml.lo? Spróbuje go skopiować gdzie trzeba. Choć to dość dziwne żeby w źródłach brakowało jakiegoś pliku. Jakoś musi sie udać smile.gif .


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
Jabol
post 29.02.2004, 15:23:00
Post #12





Grupa: Przyjaciele php.pl
Postów: 1 467
Pomógł: 13
Dołączył: 22.02.2003

Ostrzeżenie: (0%)
-----


Cytat
Choć to dość dziwne żeby w źródłach brakowało jakiegoś pliku. Jakoś musi sie udać smile.gif .
Tego pliku nie brakuje. Tu coś poszło źle z kompilacją. Spróbuj poszperac jaka wersja biblioteki libexpat i libxml jest potrzebna do kompilacji. Spróbuj dać tak
Kod
make > make.log 2>&1
jak się skończy (gdy wyskorzy prompt, do tego czasu pobaw się na innej konsoli winksmiley.jpg ) to przeanalizuj make.lod pod konetem błędów. Podejrzewam, że po prostu masz jakąś bibliotekę w złej wersji.
Go to the top of the page
+Quote Post
chfast
post 29.02.2004, 15:46:48
Post #13





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
Tego pliku nie brakuje. Tu coś poszło źle z kompilacją. Spróbuj poszperac jaka wersja biblioteki libexpat i libxml jest potrzebna do kompilacji.

Tu nie chodzi tylko o libxml. Instalowałem wczoraj najnowszą. Pliki *.lo są potrzebne do kompliacji każdego rozszerzenia. Próbowałem to nawet kompilować bez rozszerzeń. Dalej brakuje jakiegoś pliku:
Kod
regex/regcomp.lo: file not recognized: File truncated

collect2: ld returned 1 exit status

make: *** [libphp5.la] Błąd 1


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post
chfast
post 2.03.2004, 20:54:32
Post #14





Grupa: Zarejestrowani
Postów: 222
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Dałem rade...
Wszystkie problemy wynikały z mojej niewielkiej (jeszcze) znajomości linuxa. Uruchomilem configure z innego skryptu bash i pliki tworzyły się nie tam gdzie trzeba.
Dziękuje wszystkim za pomoc.


--------------------
pozdrawiam, chfast
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 26.04.2024 - 21:46