Warning: Parameter 1 to behaviorsPagesStatiques::addTplPath() expected to be a reference, value given in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php on line 304

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/public/lib.urlhandlers.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 273
Flyou.net [Dev] : Développements - Tag - Compiler 2017-05-04T04:41:02+02:00 Flyounet urn:md5:69f091255befd3717a2b2e45b9aa3688 Dotclear Webalizer et la compilation... urn:md5:cd38b9f75fdd297f73a302b32a8e1c05 2009-09-08T17:00:00+02:00 2009-09-08T18:10:50+02:00 Flyounet Documentations CompilerLinuxShellStatistiquesUnixWebalizer <p>Pour mon boulot<sup>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#pnote-15-1" id="rev-pnote-15-1">1</a>]</sup>, j'ai un léger besoin de <a href="http://www.mrunix.net/webalizer/" hreflang="en" title="Analyse &amp; statistiques de logs Apache">Webalizer</a>. Du coup, plutôt que d'utiliser la version binaire<sup>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#pnote-15-2" id="rev-pnote-15-2">2</a>]</sup>, j'ai besoin d'en avoir une version static<sup>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#pnote-15-3" id="rev-pnote-15-3">3</a>]</sup>. Donc voici la ligne de configuration pour mes tests&nbsp;:</p> <pre>./configure --prefix=/tmp/webalizer-bin --enable-static --with-geodb=/tmp/webalizer-bin/geodb --enable-geoip --enable-bz2</pre> <p>Je poursuis d'un <code>make&nbsp;; make install</code> qui se banane comme une vieille bouse en m'insultant avec de vieilles vannes sur la lib <code>pthread</code>&nbsp;:</p> <pre>/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(os_addrinfo.o): In function `__os_getaddrinfo': (.text+0x44): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(os_pid.o): In function `__os_id': (.text+0x2a): undefined reference to `pthread_self' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(os_yield.o): In function `__os_yield': (.text+0xc9): undefined reference to `pthread_yield' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_destroy': (.text+0x38): undefined reference to `pthread_mutex_destroy' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_destroy': (.text+0x5f): undefined reference to `pthread_cond_destroy' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_unlock': (.text+0x159): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_unlock': (.text+0x1c4): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_unlock': (.text+0x1e3): undefined reference to `pthread_cond_signal' /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libdb.a(mut_pthread.o): In function `__db_pthread_mutex_lock': (.text+0x278): undefined reference to `pthread_mutex_lock'</pre> <p>Pour faire simple la manip est de modifier le <code>Makefile</code>&nbsp;: <br />Avant&nbsp;:</p> <pre>LIBS = -lGeoIP -lbz2 -ldb -lgd -lpng -lz -lm WCMGR_LIBS = -ldb</pre> <p>Après&nbsp;:</p> <pre>LIBS = -lGeoIP -lbz2 -ldb -lgd -lpng -lz -lm -lpthread WCMGR_LIBS = -ldb -lpthread</pre> <div class="footnotes"><h4>Notes</h4> <p>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#rev-pnote-15-1" id="pnote-15-1">1</a>] Oui ça m'arrive d'y aller...</p> <p>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#rev-pnote-15-2" id="pnote-15-2">2</a>] Qui est linkée dynamiquement.</p> <p>[<a href="http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#rev-pnote-15-3" id="pnote-15-3">3</a>] Oui, c'est une grande invention de décideur... Je compile sur ma machine et utilise les binaires générés sur une autre qui n'a pas les libs, car c'est une machine de Production... Cherchez pas, il n'y a pas de vrai raison derrière (et je ne dis pas cela parce que le décideur vient du monde Windows).</p></div> http://dev.flyou.net/post/2009/09/08/Webalizer-et-la-compilation#comment-form http://dev.flyou.net/feed/atom/comments/15