Accéder au contenu.
Menu Sympa

fr - [sympa-fr] Re: 5.3b.4 : eu_ES OK - Upgrade.pm pas OK

Objet : Pour les administrateurs de serveurs de listes utilisant le logiciel Sympa

Archives de la liste

Chronologique Discussions  
  • From: Ludovic GARNIER <adresse@cachée>
  • To: Olivier Salaün - CRU <adresse@cachée>
  • Cc: adresse@cachée
  • Subject: [sympa-fr] Re: 5.3b.4 : eu_ES OK - Upgrade.pm pas OK
  • Date: Fri, 20 Apr 2007 22:01:43 +0200

Bonsoir Olivier,

Olivier Salaün - CRU a écrit :
[...]
Making src
making in src...
make[1]: Entering directory `/home/sympa/src/sympa-5.3b.4/src'
gcc -g -DCONFIG=\"/etc/sympa.conf\" -o queue queue.c
gcc -g -DCONFIG=\"/etc/sympa.conf\" -o bouncequeue bouncequeue.c
gcc -g -DCONFIG=\"/etc/sympa.conf\" -o familyqueue familyqueue.c
gcc -g -DCONFIG=\"/etc/sympa.conf\" -DNEWALIASES=\"/usr/sbin/postalias\" \
        -DNEWALIASES_ARG=\"\" -o aliaswrapper aliaswrapper.c
aliaswrapper.c: In function ‘main’:
aliaswrapper.c:40: attention : incompatible implicit declaration of built-in function ‘exit’
gcc -g -DCONFIG=\"/etc/sympa.conf\" -DPOSTMAP=\"/usr/sbin/postmap\" \
        -DPOSTMAP_ARG=\"/etc/postfix/sympa_virtual\" -o virtualwrapper virtualwrapper.c
virtualwrapper.c: In function ‘main’:
virtualwrapper.c:39: attention : incompatible implicit declaration of built-in function ‘exit’

Je viens de corriger ces 2 problèmes.
Peux tu m'expliquer comment intégrer ces corrections. Ai téléchargé sympa-test via svn .
[...]
making in po/....
make[1]: Entering directory `/home/sympa/src/sympa-5.3b.4/po'
Checking available locales ...
#############################################################################################################
## IMPORTANT : Sympa is not able to use all supported locales because they are not properly configured on this server
## Herer is a list on NOT supported locales :
##     eu
## On Debian you should run the following command : dpkg-reconfigure locales
## On others systems, check /etc/locale.gen or /etc/sysconfig/i18n files
#############################################################################################################
make[1]: Leaving directory `/home/sympa/src/sympa-5.3b.4/po'

=> qq'un a eu je crois les mêmes erreurs sur le basque ...
J'ai corrigé ce problème dans SVN : on ne spécifiait pas l'intitulé complet de la locale pour le Basque qui est eu_ES.
Le patch si besoin :
http://sourcesup.cru.fr/cgi/viewvc.cgi/trunk/src/Language.pm?r1=4223&r2=4234&root=sympa&view=patch
http://sourcesup.cru.fr/cgi/viewvc.cgi/trunk/po/Makefile?r1=4086&r2=4234&root=sympa&view=patch
Te confirme que c'est OK .
[...]
make install
(...)
Overwriting /usr/local/man/man8/alias_manager.8
Overwriting /usr/local/man/man8/sympa.8
Can't read load_subscribers.pl: Aucun fichier ou répertoire de ce type
On viens de corrigé dans l'arbre SVN ; Sympa essayait d'installer un script qui a n'existe plus.
Quel fichier le corrige ?
(...)

[root@ sympa-5.3b.4]# sudo -u sympa /home/sympa/bin/sympa.pl --upgrade
Conf::_load_auth(/home/sympa/bin/etc/auth.conf)
Configuration file read, default log level  0

DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`admin_table' at line 1 at /home/sympa/bin/Upgrade.pm line 806.
Unable to execute SQL query : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`admin_table' at line 1
Sympa not setup to use DBI

D'après la ligne mentionnée, le problème vient d'une requête de type "SHOW FIELDS FROm admin_table".
Peux-tu appliquer le patch ci-dessous pour le vérifier :
http://sourcesup.cru.fr/cgi/viewvc.cgi/trunk/src/Upgrade.pm?r1=4168&r2=4235&root=sympa&view=patch

Patch passé, le problème persiste, même message d'erreur.

Near 806 ...
## Get fields
        foreach my $t (@tables) {
            my $sth;

            #       unless ($sth = $dbh->table_info) {
            #       unless ($sth = $dbh->prepare("LISTFIELDS $t")) {
            my $sql_query = "SHOW FIELDS FROM $t";
            unless ($sth = $dbh->prepare($sql_query)) {
                do_log('err','Unable to prepare SQL query %s : %s', $sql_query, $dbh->errstr);
                return undef;
            }

            unless ($sth->execute) {
                do_log('err','Unable to execute SQL query %s : %s', $sql_query, $dbh->errstr);
                return undef;
            }

Module id = DBD::mysql
    DESCRIPTION  MySQL driver for DBI
    CPAN_USERID  CAPTTOFU (Patrick Galbraith <adresse@cachée>)
    CPAN_VERSION 4.004
    CPAN_FILE    C/CA/CAPTTOFU/DBD-mysql-4.004.tar.gz
    UPLOAD_DATE  2007-03-22
    DSLIP_STATUS RmcO? (released,mailing-list,C,object-oriented,)
    MANPAGE      DBD::mysql - MySQL driver for the Perl5 Database Interface (DBI)
    INST_FILE    /usr/local/lib/perl5/site_perl/5.8.8/i686-linux-ld/DBD/mysql.pm
    INST_VERSION 4.004


A plus tard ou à demain peut être.
Ludovic






Archives gérées par MHonArc 2.6.19+.

Haut de le page