Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 16:06:51 +0200
From:      Volodymyr Kostyrko <arcade@b1t.name>
To:        bug-followup@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: ports/184993: www/squid33 - fails to build on ^/stable/10 (without AUFS or why AUFS doesn't work)
Message-ID:  <52FCD17B.4090107@b1t.name>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080501080603010301000802
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi all.

The core problem to whole this stuff is about how squid is compiled when 
it requires threading support (and AUFS needs pthreads).

Let's see some diffs. The whole difference between this two is FS_AUFS 
is enabled for the +++ and disables for the ---.

--- squid.nobuild       2014-02-13 13:48:44.361353003 +0200
+++ squid.build 2014-02-13 14:24:09.565205775 +0200
@@ -162,7 +162,7 @@
  configure: cbdata debugging enabled: no
  configure: xmalloc stats display: no
  checking for library containing shm_open... none required
-checking for DiskIO modules to be enabled...  AIO Blocking DiskDaemon 
IpcIo Mmapped
+checking for DiskIO modules to be enabled...  AIO Blocking DiskDaemon 
IpcIo Mmapped DiskThreads
  checking aio.h usability... yes
  checking aio.h presence... yes
  checking for aio.h... yes
@@ -173,8 +173,10 @@
  configure: Enabling DiskDaemon DiskIO module
  configure: Enabling IpcIo DiskIO module
  configure: Enabling Mmapped DiskIO module
+configure: pthread library requires FreeBSD 7 or later

That's a weird one. Like we have no support on 10 for pthreads?

+configure: Native pthreads support disabled. DiskThreads module 
automaticaly disabled.

And that's why aufs stops working.

  configure: IO Modules built:  AIO Blocking DiskDaemon IpcIo Mmapped
-configure: Store modules built:  diskd rock ufs
+configure: Store modules built:  diskd rock ufs aufs
  configure: Removal policies to build: lru heap
  configure: Disabling ESI processor
  checking whether to support eCAP... no, explicitly
@@ -674,7 +676,7 @@
  checking for prctl... no
  checking for pthread_attr_setschedparam... yes
  checking for pthread_attr_setscope... yes
-checking for pthread_setschedparam... no
+checking for pthread_setschedparam... yes
  checking for pthread_sigmask... yes
  checking for putenv... (cached) yes
  checking for random... (cached) yes
@@ -743,9 +745,9 @@
  configure: BUILD OBJECTS:
  configure: BUILD EXTRA OBJECTS:
  configure: BUILD C FLAGS:  -O2 -pipe -march=native 
-fno-strict-aliasing -I/usr/local/include
-configure: BUILD EXTRA C FLAGS:  -Werror -Qunused-arguments
+configure: BUILD EXTRA C FLAGS:
  configure: BUILD C++ FLAGS:  -O2 -pipe -march=native 
-fno-strict-aliasing -Wno-unused-private-field -std=c++0x 
-I/usr/local/include
-configure: BUILD EXTRA C++ FLAGS:  -Werror -Qunused-arguments
+configure: BUILD EXTRA C++ FLAGS:

And those two are about why squid can't build withous AUFS. -Werror 
chimes in and thrashes whole thing.

  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating compat/Makefile

The tiny patch attached fixes wording around AUFS (ie stops calling it 
async) and disables by default DISKD and ROCK storages (as they seem to 
fail anyway).

-- 
Sphinx of black quartz, judge my vow.

--------------080501080603010301000802
Content-Type: text/plain; charset=UTF-8;
 name="squid.patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="squid.patch.txt"

SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIE1ha2VmaWxlCShyZXZpc2lvbiAz
NDQwNDYpCisrKyBNYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtNjEsNyArNjEsNyBAQAog
T1BUSU9OU19ERUZJTkU9CUFSUF9BQ0wgQVVUSF9LRVJCIEFVVEhfTERBUCBBVVRIX05JUyBB
VVRIX1NBU0wgQVVUSF9TTUIgXAogCQlBVVRIX1NRTCBcCiAJCUNBQ0hFX0RJR0VTVFMgREVC
VUcgREVMQVlfUE9PTFMgRE5TX0hFTFBFUiBFQ0FQIEVTSSBcCi0JCUZPTExPV19YRkYgRlNf
QVVGUyBGU19DT1NTIEhUQ1AgSUNBUCBJQ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
ZW1lbnQKQEAgLTMwOCw4ICszMTAsOCBAQAogCiAjIFN0b3JhZ2Ugc2NoZW1lczoKIAotc3Rv
cmFnZV9zY2hlbWVzPQlkaXNrZCByb2NrIHVmcwotZGlza2lvX21vZHVsZXM9CUFJTyBCbG9j
a2luZyBEaXNrRGFlbW9uIElwY0lvIE1tYXBwZWQKK3N0b3JhZ2Vfc2NoZW1lcz0JdWZzCitk
aXNraW9fbW9kdWxlcz0JQUlPIEJsb2NraW5nIElwY0lvIE1tYXBwZWQKIC5pZiAke1BPUlRf
T1BUSU9OUzpNRlNfQVVGU30KIHN0b3JhZ2Vfc2NoZW1lcys9CWF1ZnMKIGRpc2tpb19tb2R1
bGVzKz0JRGlza1RocmVhZHMKQEAgLTMyMiw2ICszMjQsMTMgQEAKIC5pZiAke1BPUlRfT1BU
SU9OUzpNRlNfQ09TU30KIHN0b3JhZ2Vfc2NoZW1lcys9CWNvc3MKIC5lbmRpZgorLmlmICR7
UE9SVF9PUFRJT05TOk1GU19ESVNLRH0KK3N0b3JhZ2Vfc2NoZW1lcys9CWRpc2tkCitkaXNr
aW9fbW9kdWxlcys9CURpc2tEYWVtb24KKy5lbmRpZgorLmlmICR7UE9SVF9PUFRJT05TOk1G
U19ST0NLfQorc3RvcmFnZV9zY2hlbWVzKz0Jcm9jaworLmVuZGlmCiBDT05GSUdVUkVfQVJH
Uys9CS0tZW5hYmxlLXN0b3JlaW89IiR7c3RvcmFnZV9zY2hlbWVzfSIKIENPTkZJR1VSRV9B
UkdTKz0JLS1lbmFibGUtZGlzay1pbz0iJHtkaXNraW9fbW9kdWxlc30iCiAK
--------------080501080603010301000802--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52FCD17B.4090107>