Squid 3.0-PRE7 won't build with snmp

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Squid 3.0-PRE7 won't build with snmp

Nicole-19

 Squid 3.0-PRE7 seems to not build if you have --enable-snmp.
 Server was FreeBSD-6.2 amd64

 When --disable-snmp was specified it built ok. Which seems to be opposite
perhaps from a bug I noticed, #2071


configure: running /bin/sh './configure'
 --prefix=/usr/local/squid
'--prefix=/usr/local/squid'
'--exec-prefix=/usr/local/squid'
'--enable-underscores'
'--enable-removal-policies=lru heap'
'--enable-delay-pools'
'--enable-snmp'
'--disable-ident-lookups'
'--with-large-files'
'--enable- large-cache-files'
'--enable-storeio=ufs diskd aufs coss null'
'--enable-referer-log'
'--enable-kqueue'  
'--enable-removal-policies'
'--with-pthreads'
'--disable-epoll'
 --cache-file=/dev/null
--srcdir=.
                         
---------------
s.a fs/libcoss.a fs/libnull.a auth/libntlm.a auth/libbasic.a auth/libdigest.a
auth/libnegotiate
.a -lcrypt ../snmplib/libsnmp.a -lmiscutil -lpthread -lm
client_db.o(.text+0x69d): In function `snmp_meshCtblFn':
/usr/ports/programs/squid-3.0.PRE7/src/client_db.cc:431: undefined reference to
`snmpDebugOid'
dns_internal.o(.text+0xaa7): In function `snmp_netIdnsFn':
/usr/ports/programs/squid-3.0.PRE7/src/dns_internal.cc:1417: undefined
reference to `snmpDebugO
id'
fqdncache.o(.text+0xdbc): In function `snmp_netFqdnFn':
/usr/ports/programs/squid-3.0.PRE7/src/fqdncache.cc:769: undefined reference to
`snmpDebugOid'
ipcache.o(.text+0x11ac): In function `snmp_netIpFn':
/usr/ports/programs/squid-3.0.PRE7/src/ipcache.cc:977: undefined reference to
`snmpDebugOid'
*** Error code 1

Stop in /usr/ports/programs/squid-3.0.PRE7/src.
*** Error code 1

Stop in /usr/ports/programs/squid-3.0.PRE7/src.
*** Error code 1
                         
Stop in /usr/ports/programs/squid-3.0.PRE7/src.
*** Error code 1




 Nicole




--
                     |\ __ /|   (`\            
                     | o_o  |__  ) )          
                    //      \\                
  -  [hidden email]  -  Powered by FreeBSD  -
------------------------------------------------------
 "The term "daemons" is a Judeo-Christian pejorative.
 Such processes will now be known as "spiritual guides"
  - Politicaly Correct UNIX Page



Reply | Threaded
Open this post in threaded view
|

Re: Squid 3.0-PRE7 won't build with snmp

Guido Serassio
Hi,

At 02.12 05/09/2007, Nicole wrote:

>  Squid 3.0-PRE7 seems to not build if you have --enable-snmp.
>  Server was FreeBSD-6.2 amd64
>
>  When --disable-snmp was specified it built ok. Which seems to be opposite
>perhaps from a bug I noticed, #2071

It should be a dependency problem in Makefile: running make clean
before the build should fix the problem.

See my comment to the bug #2071:
http://www.squid-cache.org/bugs/show_bug.cgi?id=2071.

Regards

Guido Serassio



-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1           10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [hidden email]
WWW: http://www.acmeconsulting.it/

Reply | Threaded
Open this post in threaded view
|

Re: Squid 3.0-PRE7 won't build with snmp

Nicole-19

On 05-Sep-07 My Secret NSA Wiretap Overheard Guido Serassio Saying  :

> Hi,
>
> At 02.12 05/09/2007, Nicole wrote:
>
>>  Squid 3.0-PRE7 seems to not build if you have --enable-snmp.
>>  Server was FreeBSD-6.2 amd64
>>
>>  When --disable-snmp was specified it built ok. Which seems to be opposite
>>perhaps from a bug I noticed, #2071
>
> It should be a dependency problem in Makefile: running make clean
> before the build should fix the problem.
>
> See my comment to the bug #2071:
> http://www.squid-cache.org/bugs/show_bug.cgi?id=2071.
>
> Regards
>
> Guido Serassio
>
>

 Hi
 Yes I tried that. Sadly the build still fails.

 In fact I was also surprised that snmp was enabled by
default and that I had to use --disable-snmp to get it to build.


 Also I found that even in my little test of telling my browser to use port
3120 for a proxy at home (with it on a server at home) that it would easily
become slow or fail to load images. I had to reinstall 2.6-15.


 If your would like any more information that may help, please let me know.


 Nicole



--
                     |\ __ /|   (`\            
                     | o_o  |__  ) )          
                    //      \\                
  -  [hidden email]  -  Powered by FreeBSD  -
------------------------------------------------------
 "The term "daemons" is a Judeo-Christian pejorative.
 Such processes will now be known as "spiritual guides"
  - Politicaly Correct UNIX Page



Reply | Threaded
Open this post in threaded view
|

Re: Squid 3.0-PRE7 won't build with snmp

Guido Serassio
Hi,

At 21.37 05/09/2007, Nicole wrote:

>On 05-Sep-07 My Secret NSA Wiretap Overheard Guido Serassio Saying  :
> > Hi,
> >
> > At 02.12 05/09/2007, Nicole wrote:
> >
> >>  Squid 3.0-PRE7 seems to not build if you have --enable-snmp.
> >>  Server was FreeBSD-6.2 amd64
> >>
> >>  When --disable-snmp was specified it built ok. Which seems to be opposite
> >>perhaps from a bug I noticed, #2071
> >
> > It should be a dependency problem in Makefile: running make clean
> > before the build should fix the problem.
> >
> > See my comment to the bug #2071:
> > http://www.squid-cache.org/bugs/show_bug.cgi?id=2071.
> >
> > Regards
> >
> > Guido Serassio
> >
> >
>
>  Hi
>  Yes I tried that. Sadly the build still fails.
>
>  In fact I was also surprised that snmp was enabled by
>default and that I had to use --disable-snmp to get it to build.

I have done the following test:

- configure --enable-snmp
- make (OK)
- configure --disable-snmp (but also configure only should be the same)
- make (FAILED, because the files are not compiled again)
- removed manually the .o files
- make (OK)

Please check if make clean really remove the .o files.
I will run some more build test.

Regards

Guido



-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1           10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [hidden email]
WWW: http://www.acmeconsulting.it/