Re: [squid-users] Compiling squid 3.2.0.16 under Solaris 10

From: Jose-Marcio Martins da Cruz <Jose-Marcio.Martins_at_mines-paristech.fr>
Date: Thu, 15 Mar 2012 23:06:24 +0100

A log and a patch :

Henrik Nordström wrote:
> tor 2012-03-15 klockan 22:18 +0100 skrev Jose-Marcio Martins da Cruz:

> and configure is supposed to automatically enable this when needed. What
> do config.log say (search for strsep)?

At config.log :

******************************

configure:28325: checking for strsep
configure:28325: g++ -o conftest -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-g -O2 -I/usr/local/ssl/include
-lsasl conftest.cpp -lm -lsocket -lresolv -lnsl -lrt >&5
/var/tmp//ccQChqzn.o: In function `main':
/export/sources/squid/squid-3.2.0.16/conftest.cpp:317: undefined reference to `strsep'
collect2: ld returned 1 exit status
configure:28325: $? = 1
configure: failed program was:

...

ac_cv_func_strsep=no
LIBOBJS=' ${LIBOBJDIR}eui64_aton$U.o ${LIBOBJDIR}strsep$U.o'
LTLIBOBJS=' ${LIBOBJDIR}eui64_aton$U.lo ${LIBOBJDIR}strsep$U.lo'

*****************************

At include/autoconf.h :

include/autoconf.h:/* #undef HAVE_STRSEP */

This patch solves the problem and the compile process go till the end... 8-)

But maybe you have a better way to include it.

****************************************
--- src/snmp_core.cc.org Thu Mar 15 23:03:54 2012
+++ src/snmp_core.cc Thu Mar 15 23:02:18 2012
@@ -41,6 +41,7 @@
  #include "snmp_core.h"
  #include "snmp/Forwarder.h"

+#include "compat/strsep.h"

  /// dials snmpConnectionOpened call
  class SnmpListeningStartedDialer: public CallDialer,

***************************************

>
> Regards
> Henrik
>
>

-- 
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
  Ecole des Mines de Paris
  60, bd Saint Michel                      75272 - PARIS CEDEX 06
  mailto:Jose-Marcio.Martins_at_mines-paristech.fr
Received on Thu Mar 15 2012 - 22:06:30 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 16 2012 - 12:00:12 MDT