hallo, ich ziehe von Rechner(Ubuntu 16) zu Laptop(Ubuntu 18.04) um.
ich nahm php.5.5.38.tar (Kopie vom Rechner) Alle Schritte unternommen wie bei meinem Rechner, über den Browser (info.php) dass das php 5.5.38 erfolgreich installiert worden ist. Im Verzeichnis /ext habe ich: ./ext_skel --extame=hellohello cd .. ./buildconf --force
Dann habe ich das Projekt hellohello(Verzeichnis) in hellohello-backup(Verzeichnis) umbenannt und die Copy von meinem Rechner genommen.
./configure --enable-debug --enable-maintainer-zts --with-apxs2 --disable-cgi --enable-cli --without-pear --disable-xml --without-mysql --enable-hellohello
bis hier ist alles ok.
make
snip snip-––
s_title.lo sapi/cli/php_cli_process_title.lo -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cli/php ext/hellohello/.libs/hellohello.o: In function `zm_startup_hellohello': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:101: multiple definition of `zm_startup_hellohello' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:101: first defined here ext/hellohello/.libs/hellohello.o: In function `zm_info_hellohello': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:136: multiple definition of `zm_info_hellohello' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:136: first defined here ext/hellohello/.libs/hellohello.o: In function `zif_confirm_hellohello_compiled': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:156: multiple definition of `zif_confirm_hellohello_compiled' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:156: first defined here ext/hellohello/.libs/hellohello.o: In function `zif_hello_factorial': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:174: multiple definition of `zif_hello_factorial' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:174: first defined here ext/hellohello/.libs/hellohello.o: In function `zm_activate_hellohello': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: multiple definition of `zm_activate_hellohello' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: first defined here ext/hellohello/.libs/hellohello.o: In function `zm_deactivate_hellohello': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: multiple definition of `zm_deactivate_hellohello' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: first defined here ext/hellohello/.libs/hellohello.o: In function `zm_shutdown_hellohello': /home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: multiple definition of `zm_shutdown_hellohello' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:204: first defined here ext/hellohello/.libs/hellohello.o:(.data.rel.local+0x0): multiple definition of `hellohello_module_entry' ext/hellohello/.libs/hellohello.o:(.data.rel.local+0x0): first defined here ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:41: multiple definition of `hellohello_functions' ext/hellohello/.libs/hellohello.o:/home/tomycat/Downloads/php-5.5.38/ext/hellohello/hellohello.c:41: first defined here collect2: error: ld returned 1 exit status Makefile:246: recipe for target 'sapi/cli/php' failed make: *** [sapi/cli/php] Error 1 snip snip--------------
Das schlimme daran, das Projekt hellohello hat auf dem alten Rechner funktioniert.
Moderiert von sebix:
Der Beitrag ist von php erweiterng schreiben... abgetrennt worden, weil es eine andere Ubuntu-Version betrifft.