Dear Openpkg people, Last year I worked with you guys to add large file support to squid builds.
Recently I had a requirement to rebuild squid and now I am running into some problems. The previous build I used (squid-3.0.1-20080223), worked fine. The latest version (squid-3.0.13-20090203) has problems compiling. The problem would appear to be some changes in the way the Squid configure script handles large files. It uses the getconf command on Solaris to determine what 'model' to use for building with large file support. On my Solaris box it uses the POSIX_V6_LPBIG_OFFBIG model which adds -xarch=generic64 to CFLAGS. Now, gcc doesn't like this and the Squid configure scripts changes this to '-m64'. Unfortunately gcc doesn't support 64bit builds and any compile returns an error about multilib not being supported, because it isn't. To work around I added a new getconf command into the Openpkg bin directory (as it is earlier in the path then the Solaris /bin/getconf) which simply does 'exit 1'. That way configure uses the 'old' way to determine compile time flags (which ends up using _FILE_OFFSET_BITS=64). Not sure what the 'right' fix would be. As far as I know the Openpkg gcc builds still don't do multilib support (haven't tried a recent build, but haven't heard otherwise). At least the build for squid works, but I haven't extensively tested yet. Is there a 'getconf' equivalent for Openpkg environment that will supply the 'right' values? To be honest, getconf is a new command to me, and I never run into this particular problem before. Jason -- Jason Wilson Security Consultant, ICT Operational Security Services Telephone: +61 7 389 63129 Facsimile: +61 7 389 63740 Email: mailto:jason.wil...@nrw.qld.gov.au http://www.nrw.qld.gov.au Department of Natural Resources and Water Corner Main and Vulture Streets, Woolloongabba QLD 4102 Locked Bag 40, Coorparoo Delivery Centre QLD 4151 ************************************************************************ The information in this email together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this email message is prohibited, unless as a necessary part of Departmental business. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org