ubuntuusers.de

PHP Erweiterung von 16.04 migrieren

Status: Ungelöst | Ubuntu-Version: Ubuntu 18.04 (Bionic Beaver)
Antworten |

tomovic

Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: Zähle...

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.

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

die hellohello.c

/*
  +----------------------------------------------------------------------+
  | PHP Version 5                                                        |
  +----------------------------------------------------------------------+
  | Copyright (c) 1997-2015 The PHP Group                                |
  +----------------------------------------------------------------------+
  | This source file is subject to version 3.01 of the PHP license,      |
  | that is bundled with this package in the file LICENSE, and is        |
  | available through the world-wide-web at the following url:           |
  | http://www.php.net/license/3_01.txt                                  |
  | If you did not receive a copy of the PHP license and are unable to   |
  | obtain it through the world-wide-web, please send a note to          |
  | license@php.net so we can mail you a copy immediately.               |
  +----------------------------------------------------------------------+
  | Author:                                                              |
  +----------------------------------------------------------------------+
*/

/* $Id$ */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_hellohello.h"

/* If you declare any globals in php_hellohello.h uncomment this:
ZEND_DECLARE_MODULE_GLOBALS(hellohello)
*/

/* True global resources - no need for thread safety here */
static int le_hellohello;

/* {{{ hellohello_functions[]
 *
 * Every user visible function must have an entry in hellohello_functions[].
 */
const zend_function_entry hellohello_functions[] = {
	PHP_FE(confirm_hellohello_compiled,	NULL)		/* For testing, remove later. */
        PHP_FE(hello_factorial, NULL)
	PHP_FE_END	/* Must be the last line in hellohello_functions[] */
};
/* 

*/

/*

 hellohello_module_entry
 */
zend_module_entry hellohello_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
	STANDARD_MODULE_HEADER,
#endif
	"hellohello",
	hellohello_functions,
	PHP_MINIT(hellohello),
	PHP_MSHUTDOWN(hellohello),
	PHP_RINIT(hellohello),		/* Replace with NULL if there's nothing to do at request start */
	PHP_RSHUTDOWN(hellohello),	/* Replace with NULL if there's nothing to do at request end */
	PHP_MINFO(hellohello),
#if ZEND_MODULE_API_NO >= 20010901
	PHP_HELLOHELLO_VERSION,
#endif
	STANDARD_MODULE_PROPERTIES
};
/* 

*/

#ifdef COMPILE_DL_HELLOHELLO ZEND_GET_MODULE(hellohello) #endif

/*

 PHP_INI
 */
/* Remove comments and fill if you need to have entries in php.ini
PHP_INI_BEGIN()
    STD_PHP_INI_ENTRY("hellohello.global_value",      "42", PHP_INI_ALL, OnUpdateLong, global_value, zend_hellohello_globals, hellohello_globals)
    STD_PHP_INI_ENTRY("hellohello.global_string", "foobar", PHP_INI_ALL, OnUpdateString, global_string, zend_hellohello_globals, hellohello_globals)
PHP_INI_END()
*/
/* 

*/

/*

 php_hellohello_init_globals
 */
/* Uncomment this function if you have INI entries
static void php_hellohello_init_globals(zend_hellohello_globals *hellohello_globals)
{
	hellohello_globals->global_value = 0;
	hellohello_globals->global_string = NULL;
}
*/
/* 

*/

/*

 PHP_MINIT_FUNCTION
 */
PHP_MINIT_FUNCTION(hellohello)
{
	/* If you have INI entries, uncomment these lines 
	REGISTER_INI_ENTRIES();
	*/
	return SUCCESS;
}
/* 

*/

/*

 PHP_MSHUTDOWN_FUNCTION
 */
PHP_MSHUTDOWN_FUNCTION(hellohello)
{
	/* uncomment this line if you have INI entries
	UNREGISTER_INI_ENTRIES();
	*/
	return SUCCESS;
}
/* 

*/

/* Remove if there's nothing to do at request start */ /*

 PHP_RINIT_FUNCTION
 */
PHP_RINIT_FUNCTION(hellohello)
{
	return SUCCESS;
}
/* 

*/

/* Remove if there's nothing to do at request end */ /*

 PHP_RSHUTDOWN_FUNCTION
 */
PHP_RSHUTDOWN_FUNCTION(hellohello)
{
	return SUCCESS;
}
/* 

*/

/*

 PHP_MINFO_FUNCTION
 */
PHP_MINFO_FUNCTION(hellohello)
{
	php_info_print_table_start();
	php_info_print_table_header(2, "hellohello support", "enabled");
	php_info_print_table_end();

	/* Remove comments if you have entries in php.ini
	DISPLAY_INI_ENTRIES();
	*/
}
/* 

*/

/* Remove the following function when you have successfully modified config.m4 so that your module can be compiled into PHP, it exists only for testing purposes. */

/* Every user-visible function in PHP should document itself in the source */ /*

 proto string confirm_hellohello_compiled(string arg)
   Return a string to confirm that the module is compiled in */
PHP_FUNCTION(confirm_hellohello_compiled)
{
	char *arg = NULL;
	int arg_len, len;
	char *strg;

	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE) {
		return;
	}

	len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "hellohello", arg);
	RETURN_STRINGL(strg, len, 0);
}

// neu Function !!!!!!!!!!!!!!



PHP_FUNCTION(hello_factorial)
{
     char *str = NULL;
      int argc = ZEND_NUM_ARGS();
      int str_len;
      long n;
 
 
      char *result; /*points to resulting string*/
      char *ptr;  /*points to the next location we want to copy*/
      int result_length; /*length of resulting string*/
 
 
      if (zend_parse_parameters(argc TSRMLS_CC, "sl", &str, &str_len, &n) == FAILURE)
          return;
 
      /*calculate length of result*/
      result_length = (str_len * n);
 
      result = (char *) emalloc(result_length + 1);
      ptr = result;
      while (n--) {
         memcpy(ptr, str, str_len);
         ptr += str_len;
     }

     *ptr = '\0';
     /* Return result to the scripting engine without duplicating it*/
     RETURN_STRINGL(result, result_length,0);

     //php_error(E_WARNING, "self_concat: not yet implemented");
}

Marc_BlackJack_Rintsch Team-Icon

Ehemalige
Avatar von Marc_BlackJack_Rintsch

Anmeldungsdatum:
16. Juni 2006

Beiträge: 4694

Wohnort: Berlin

Kann es sein das Du das vom alten Rechner mit kompilierten Object-Dateien kopiert und nicht vorher ”aufgeräumt” hast, also insbesondere alte Kompilate nicht gelöscht hast? Oder die Object-Datei(en) wird/werden aus irgendeinem Grund mehr als einmal an den Linker beim gleichen Aufruf übergeben. Um letzteres auszuschliessen hast Du zu viel vomn der Ausgabe weg geschnibbelt.

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

hallo, ich hatte heute eine Frage gestellt und habe eine Antwort bekommen ?!?! Was ist passiert?

Moderiert von sebix:

An passenden Thread angehaengt.

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

thx, ich weis was du meinst, ist leider nicht so. Mit dem Befehl... ./ext_skel --extame=hellohello ... wird ein neues Unterverzeichnis erstellt in /php-5.5.38/ext/ ←--hier Ich habe erst das hellohello Projekt durch make gejagt, ohne es zu mit Code zu versorgen.

genau das gleiche Problem.

Das einzige was ich übernommen habe war die php-5.5.38.tar und 2 conf-Dateien für Apache. DAnn habe ich das hellohello Verzeichnis mit dem leeren hellohello Verzeichnis ausgetauscht. Zusätzlich die lo und o Daten gelöscht.

genau das gleiche Problem.

Marc_BlackJack_Rintsch Team-Icon

Ehemalige
Avatar von Marc_BlackJack_Rintsch

Anmeldungsdatum:
16. Juni 2006

Beiträge: 4694

Wohnort: Berlin

Wie sieht denn der ld-Aufruf aus? Dieses Verhalten bekommt man wie schon gesagt, wenn man die gleich Object-Datei zweimal angibt.

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

Marc_BlackJack_Rintsch schrieb:

Wie sieht denn der ld-Aufruf aus? Dieses Verhalten bekommt man wie schon gesagt, wenn man die gleich Object-Datei zweimal angibt.

ld ?

Ich war bei php und habe mir die neueste Version gezogen 5.6.40

- entpackt mit gunzip - neues Projekt angelegt (hello) - 2 Zeilen auskokumentiert in der config.m4 Datei. - ./buildconf --force - ./configure --hello - make - make install

per ./php -f ext/hello/hello.php Es kommt: Gratulation blablablal

Jetzt kommts Das Projektverzeichnis hello gesichert. bin in das Verzeichnis hello rein, die -h und die .c erweitert. Ich führte folgendes aus: - ./buildconf --force alles ok - ./configure --hello alles ok - make

schnipp
le.lo -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt  -o sapi/cli/php
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
collect2: error: ld returned 1 exit status
Makefile:243: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1
ENDE

}

2.Idee das hello Projekt gelöscht und das backup(Verzeichnis) zurückgesichert. Gleiche Fehler. ☹

Marc_BlackJack_Rintsch Team-Icon

Ehemalige
Avatar von Marc_BlackJack_Rintsch

Anmeldungsdatum:
16. Juni 2006

Beiträge: 4694

Wohnort: Berlin

Ja ld. Der Linker. Das ist das Programm was auf die Nase fällt und den Rückgabecode 1 geliefert hat, wie man am Ende von der Ausgabe laut und deutlich sieht. Und Du hast schon wieder den interessanten Teil gekonnt abgeschnitten, nämlich den kompletten letzten Programmaufruf der zum Fehler führt. ☺

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

hallo, ich habe configure und make in eine Datei umgeleitet und die auf meiner Server zu verfügung gestellt.

root@tomycat-N71Vg:~/Downloads/php-5.6.40# ./configure --enable-hello --disable-cgi > configure.txt
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40# make > make.txt
Makefile:674: Warnung: Die Befehle für das Ziel „ext/hello/hello.lo“ werden überschrieben
Makefile:672: Warnung: Alte Befehle für das Ziel „ext/hello/hello.lo“ werden ignoriert
Makefile:676: Warnung: Die Befehle für das Ziel „ext/hello/hello.lo“ werden überschrieben
Makefile:674: Warnung: Alte Befehle für das Ziel „ext/hello/hello.lo“ werden ignoriert
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
root@tomycat-N71Vg:~/Downloads/php-5.6.40# 

https://feledi.de/make.txt https://feledi.de/configure.txt

Marc_BlackJack_Rintsch Team-Icon

Ehemalige
Avatar von Marc_BlackJack_Rintsch

Anmeldungsdatum:
16. Juni 2006

Beiträge: 4694

Wohnort: Berlin

Beim letzten libtool-Aufruf, also dem der scheitert, steht dreimal ext/hello/hello.lo in den Argumenten. Das darf da nur einmal stehen. Und schon in der configure-Ausgabe steht dreimal direkt hintereinander checking whether to enable hello support... yes. Kann es sein das Du da drei Unterordner hast jeweils mit der Erweiterung drin und das configure die halt alle als Erweiterungen auffasst? Du hattest doch irgendwas von umbenannten Backup-Verzeichnis gesagt. Falls ja, woher soll denn das configure von PHP wissen, dass das keine Erweiterung ist wenn's doch im ext-Ordner rumliegt?

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

thx, ich habe die hello-1-step und hello-geht-nicht nach /Download verschoben.

https://feledi.de/configure2.txt https://feledi.de/make2.txt

root@tomycat-N71Vg:~/Downloads/php-5.6.40# ./configure --enable-hello --disable-cgi > configure2.txt                                                                                                  configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40#
root@tomycat-N71Vg:~/Downloads/php-5.6.40# make > make2.txt
Makefile:674: Warnung: Die Befehle für das Ziel „ext/hello/hello.lo“ werden überschrieben
Makefile:672: Warnung: Alte Befehle für das Ziel „ext/hello/hello.lo“ werden ignoriert
Makefile:676: Warnung: Die Befehle für das Ziel „ext/hello/hello.lo“ werden überschrieben
Makefile:674: Warnung: Alte Befehle für das Ziel „ext/hello/hello.lo“ werden ignoriert
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
ext/hello/.libs/hello.o: In function `zm_startup_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: multiple definition of `zm_startup_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:94: first defined here
ext/hello/.libs/hello.o: In function `zif_confirm_hello_compiled':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: multiple definition of `zif_confirm_hello_compiled'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:55: first defined here
ext/hello/.libs/hello.o: In function `zm_info_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: multiple definition of `zm_info_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:129: first defined here
ext/hello/.libs/hello.o: In function `zm_activate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_activate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_deactivate_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_deactivate_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o: In function `zm_shutdown_hello':
/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: multiple definition of `zm_shutdown_hello'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:132: first defined here
ext/hello/.libs/hello.o:(.data.rel.local+0x0): multiple definition of `hello_module_entry'
ext/hello/.libs/hello.o:(.data.rel.local+0x0): first defined here
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: multiple definition of `hello_functions'
ext/hello/.libs/hello.o:/home/tomycat/Downloads/php-5.6.40/ext/hello/hello.c:144: first defined here
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
root@tomycat-N71Vg:~/Downloads/php-5.6.40#

leider kommt die gleiche Meldung ☹

tomovic

(Themenstarter)
Avatar von tomovic

Anmeldungsdatum:
25. August 2013

Beiträge: 238

Ich habe re2c und bison installiert. Es kommt jetzt keine Warung mehr, aber mein Problem ist nicht gelöst. Hat Irgendjemand noch eine Idee?

Antworten |