IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Utilisation de Runkit_Sandbox


Sujet :

Langage PHP

  1. #1
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut Utilisation de Runkit_Sandbox
    Bonjour à tous,

    J'ai patché et installé (pas sans mal) l'extension Runkit (un impératif pour mon projet).

    Néanmoins, il ne semble ni fonctionner, ni retourner d'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    <?php
    	echo class_exists('Runkit_Sandbox',true);// false
    	new Runkit_Sandbox();// pas d'erreur
    ?>
    Auriez-vous une idée du pourquoi, svp?

  2. #2
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    Il n'as pas l'air d'etre installer, regarde dans ton phpinfo, pourquoi as tu besoin de cette extension ?

  3. #3
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Pour créer des sandboxes pour tester mon framework multi-users.

    Le but étant de sécuriser l'appel à certaines fonctions natives de PHP (notamment).
    Fichiers attachés Fichiers attachés

  4. #4
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    runkit n'est pas fait pour php 5.3,
    fait un ReflectionExtension dessus pour voir les classes dispo

  5. #5
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Pfff, bon, ben, j'ai plus qu'à abandonner le PHP alors...

    Quelle bande d'enfoirés, chez PHP, non seulement ils documentent de très bons outils qu'on ne peut plus compiler sous Windows, mais, en plus, ils ne les maintiennent pas...

  6. #6
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    Citation Envoyé par Lcf.vs Voir le message
    Pfff, bon, ben, j'ai plus qu'à abandonner le PHP alors...

    Quelle bande d'enfoirés, chez PHP, non seulement ils documentent de très bons outils qu'on ne peut plus compiler sous Windows, mais, en plus, ils ne les maintiennent pas...
    c'est une extension PECL donc non officiel et c'est d'autre personnes qui les maintiennent

    c'est assez simple de faire une sandbox avec php, suffit de mettre une instance en worker avec apache, avec un php.ini propre a la sendbox (disable function/classe)

  7. #7
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Oui mais non, j'y ai pensé...

    Le but n'est pas de totalement interdire une fonction mais d'en contrôler les arguments, en fonction de la source de l'appel à cette fonction, pour savoir si elle peut ou non être appelée.

    C'est pourquoi Runkit était si approprié.

    J'entrevois peut-être une autre possibilité (APD) mais que j'essaie de l'installer avec la commande pecl ou avec phpize, ça plante...

    A partir du make (mode phpize) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    root@debian:/home/lcf/apd-1.0.1# make
    /bin/bash /home/lcf/apd-1.0.1/libtool --mode=compile cc -I. -I/home/lcf/apd-1.0.1 -DPHP_ATOM_INC -I/home/lcf/apd-1.0.1/include -I/home/lcf/apd-1.0.1/main -I/home/lcf/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /home/lcf/apd-1.0.1/php_apd.c -o php_apd.lo
    libtool: compile: cc -I. -I/home/lcf/apd-1.0.1 -DPHP_ATOM_INC -I/home/lcf/apd-1.0.1/include -I/home/lcf/apd-1.0.1/main -I/home/lcf/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /home/lcf/apd-1.0.1/php_apd.c -fPIC -DPIC -o .libs/php_apd.o
    /home/lcf/apd-1.0.1/php_apd.c: In function ‘zif_override_function’:
    /home/lcf/apd-1.0.1/php_apd.c:615: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222)
    /home/lcf/apd-1.0.1/php_apd.c: In function ‘zif_rename_function’:
    /home/lcf/apd-1.0.1/php_apd.c:669: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222)
    /home/lcf/apd-1.0.1/php_apd.c: In function ‘zif_apd_set_pprof_trace’:
    /home/lcf/apd-1.0.1/php_apd.c:792: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222)
    /home/lcf/apd-1.0.1/php_apd.c: In function ‘apd_zend_startup’:
    /home/lcf/apd-1.0.1/php_apd.c:967: error: ‘struct _zend_compiler_globals’ has no member named ‘extended_info’
    make: *** [php_apd.lo] Erreur 1
    Avec pecl :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    root@debian:/home/lcf/apd-1.0.1# pecl install apd
    downloading apd-1.0.1.tgz ...
    Starting to download apd-1.0.1.tgz (36,643 bytes)
    ........done: 36,643 bytes
    15 source files, building
    running: phpize
    Cannot find config.m4.
    Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

  8. #8
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    pareil c'est une vielle extension pas sur que ça marche avec les nouvelles

    t'as un exemple de code que tu voudrais faire

  9. #9
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Oui, ce sont de vieilles extensions mais il n'existe rien de plus récent du même genre...

    Sinon, j'ai réussi à installer APD et il fonctionne!

    Néanmoins, j'ai quelques soucis de gestion des erreurs de PHP :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    <?php
    	error_reporting(E_STRICT | E_ALL | E_NOTICE);
    	ini_set("display_errors", 1);
    	abstract class MaClasse{
    		private static $vars;
    		public static function rename($name,$new_name){
    			echo 1;
    			if(!isset(self::$vars)){
    				self::rename('test2','newtest2');
    			}
    		}
    	}
    	MaClasse::rename('test1','newtest1');
    ?>
    Ce code n'affiche pas le moindre 1 et ne renvoie pas d'erreur de Timeout.

    Tout ce que j'ai, c'est ceci dans mon fichier de log:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    [Tue Mar 27 14:43:04 2012] [notice] child pid 2513 exit signal Segmentation fault (11)
    Selon ce topic (http://stackoverflow.com/questions/7...apache-error-l), il faut tester en désactivant les modules un par un, ce que j'ai fait mais ça ne change rien.

  10. #10
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    erreur de seg, le code est bugé, malheureusement c'est pas parce que le fichier est compiler qu'il fonctionne

    t'as juste besoin du rename_function ?

  11. #11
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Oui... juste le rename_function devrait être suffisant.

    Sinon, avec APD désactivé, j'ai toujours ce problème de seg, ça peut tout de même être à cause de APD?

    Voici à quoi (à peu près) ressemblera mon gestionnaire :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    <?php
    	abstract class FunctionManager{
    		private static $function_names;
    		private static function generate(){
    			$chars=str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_');
    			$string='_';
    			$length=mt_rand(25,75);
    			for($i=0;$i<$length;$i++){
    				$string.=$chars[mt_rand(0,strlen($chars)-1)];
    			}
    			return $string;
    		}
    		private static function exists($name){
    			if(!isset(self::$function_names)){
    				self::$function_names=array();
    				while(function_exists($str=self::generate()));
    				self::$function_names['function_exists']=array('name'=>$str,'controller'=>null);
    				rename_function('function_exists',$str);
    			}
    			return self::$function_names['function_exists']['name']($name);
    		}
    		public static function rename($name,$controller){
    			if(!isset(self::$function_names)){
    				self::rename('get_defined_functions',null);
    			}
    			while(self::$function_names['function_exists']['name']($str=self::generate()));
    			self::$function_names[$name]=array('name'=>$str,'controller'=>$controller);
    		}
    		public static function call(){
    			$args=func_get_args();
    			$name=array_shift($args);
    			if(self::exists($name)&&self::$function_names[$name]['controller']&&call_user_func_array(self::$function_names[$name]['controller'],$args)){
    				return self::$function_names[$name]['name']($args);
    			}
    			new RuntimeException('Function '.$name.' doesn\'t exist');
    		}
    	}
    ?>

  12. #12
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    Citation Envoyé par Lcf.vs Voir le message
    Oui... juste le rename_function devrait être suffisant.
    je te fais ça demain

  13. #13
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    essaye ça
    Fichiers attachés Fichiers attachés

  14. #14
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Waouh! Je te remercie beaucoup.

    Néanmoins, pourrais-tu m'expliquer comment m'en servir, stp?

    Débutant avec Linux, jusqu'ici, je me suis inspiré de la procédure indiquée dans ce topic pour mes compilations et installations.

    Le truc, c'est que comme ce n'est donc plus une extension pecl et qu'il n'y a pas de package.xml, je ne suis pas trop sûr de mon coup.


    Edit: Ah, j'oubliais, l'usage de ton extension nécessite-elle l'ajout d'une directive dans mon php.ini (comme pour APD)?

  15. #15
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    il te faut le php-devel

    ensuite dans le dossier :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    phpize
    ./configure
    make
    make install
    ensuite je t'ai juste fait une fonction : function_rename

  16. #16
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Hum, j'ai une erreur lors du make install:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Installing shared extensions:     /usr/lib/php5/20090626+lfs/
    cp: cannot stat `modules/*': No such file or directory
    make: *** [install-modules] Erreur 1
    J'me suis dit que ça devait être parce que le dossier /usr/lib/php5/20090626+lfs/modules/ n'existait pas (toutes mes .so sont directement dans le dossier /usr/lib/php5/20090626+lfs/), je l'ai donc créé mais make install me renvoie la même erreur.

  17. #17
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    de toute facon y'a bien un .so dans le dossier copie le direct

  18. #18
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Euh, non, pas de .so

    Voici le contenu actuel du dossier :
    Fichiers attachés Fichiers attachés

  19. #19
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    t'es sur que le make a bien fonctionné ? montre le rendu

  20. #20
    Membre éclairé

    Femme Profil pro
    Experte JS / Conseillère en best practices / Chercheuse en programmation
    Inscrit en
    Octobre 2007
    Messages
    741
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Experte JS / Conseillère en best practices / Chercheuse en programmation
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2007
    Messages : 741
    Points : 808
    Points
    808
    Par défaut
    Bonjour,

    Voici tout le détail depuis phpize :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    root@debian:/home/lcf/common_vm/php_rename# phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    root@debian:/home/lcf/common_vm/php_rename# ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    rm: cannot remove `conftest.err': Text file busy
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    checking for PHP extension directory... /usr/lib/php5/20090626+lfs
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by cc... /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... no, using cp -p
    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 cc object... ok
    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 cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc 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... no
    configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands
    root@debian:/home/lcf/common_vm/php_rename# make
     
    Build complete.
    Don't forget to run 'make test'.
     
    root@debian:/home/lcf/common_vm/php_rename# make test
     
    Build complete.
    Don't forget to run 'make test'.
     
     
    =====================================================================
    PHP         : /usr/bin/php 
    PHP_SAPI    : cli
    PHP_VERSION : 5.3.3-7+squeeze8
    ZEND_VERSION: 2.3.0
    PHP_OS      : Linux - Linux debian 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
    INI actual  : /home/lcf/common_vm/php_rename/tmp-php.ini
    More .INIs  :  
    CWD         : /home/lcf/common_vm/php_rename
    Extra dirs  : 
    VALGRIND    : Not used
    =====================================================================
    TIME START 2012-03-29 09:47:57
    =====================================================================
    No tests were run.
    root@debian:/home/lcf/common_vm/php_rename# make install
    Installing shared extensions:     /usr/lib/php5/20090626+lfs/
    cp: cannot stat `modules/*': No such file or directory
    make: *** [install-modules] Erreur 1
    root@debian:/home/lcf/common_vm/php_rename#

Discussions similaires

  1. utiliser les tag [MFC] [Win32] [.NET] [C++/CLI]
    Par hiko-seijuro dans le forum Visual C++
    Réponses: 8
    Dernier message: 08/06/2005, 15h57
  2. Réponses: 4
    Dernier message: 05/06/2002, 14h35
  3. utilisation du meta type ANY
    Par Anonymous dans le forum CORBA
    Réponses: 1
    Dernier message: 15/04/2002, 12h36
  4. [BCB5] Utilisation des Ressources (.res)
    Par Vince78 dans le forum C++Builder
    Réponses: 2
    Dernier message: 04/04/2002, 16h01
  5. Réponses: 2
    Dernier message: 20/03/2002, 23h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo