Re: Building squid on Solaris 10 with large file support

2009-02-10 Thread Ralf S. Engelschall
On Mon, Feb 09, 2009, Wilson Jason wrote:

> Wilson Jason wrote:
> > multilib is disabled by default. Rebuilding now with multilib
> > explicitly enabled and will report how it goes.
>
> Building of gcc went fine - now have multilib support.
>
> Unfortunately having problems with squid still.
>
> When squid is running its configure scripts it is doing compile time
> tests with a command like:
>   gcc -m64 conftest.c -lfsl
>
> The problem is that the libfsl.a library is only 32 bit (or so I
> presume) as I get errors like:
> /secomon/openpkg-3/bin/ld: skipping incompatible
> /secomon/openpkg/lib/libfsl.a when searching for -lfsl
>
> I have rebuilt fsl with the new gcc, but doesn't help with the problem -
> as it defaults to 32bit of course.
>
> Do I need to build the whole openpkg system with 64bit support defined
> for everything, like this article you linked previously talks about?
> >>http://marc.info/?l=openpkg-users&m=116072933928495&w=2
>
> If so, this is probably more effort then I am prepared to do just to get
> the largefile support in squid when I have a workable 'hack' to do it
> with 32bit compiling.

The problem is that you cannot mix 32 and 64 objects. If you run
OpenPKG's GCC in 64 bit mode you really have to build the _complete_
OpenPKG instance in 64 bit mode. Linking in old libraries (which are
still built 32 bit) doesn't work. Sorry, this is a restriction of the
platform and cannot be changed by OpenPKG.

   Ralf S. Engelschall
   r...@engelschall.com
   www.engelschall.com

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


RE: Building squid on Solaris 10 with large file support

2009-02-08 Thread Wilson Jason
Wilson Jason wrote:
> multilib is disabled by default. Rebuilding now with multilib
> explicitly enabled and will report how it goes.

Building of gcc went fine - now have multilib support.

Unfortunately having problems with squid still.

When squid is running its configure scripts it is doing compile time
tests with a command like:
  gcc -m64 conftest.c -lfsl

The problem is that the libfsl.a library is only 32 bit (or so I
presume) as I get errors like:
/secomon/openpkg-3/bin/ld: skipping incompatible
/secomon/openpkg/lib/libfsl.a when searching for -lfsl

I have rebuilt fsl with the new gcc, but doesn't help with the problem -
as it defaults to 32bit of course.

Do I need to build the whole openpkg system with 64bit support defined
for everything, like this article you linked previously talks about?
>>http://marc.info/?l=openpkg-users&m=116072933928495&w=2

If so, this is probably more effort then I am prepared to do just to get
the largefile support in squid when I have a workable 'hack' to do it
with 32bit compiling.

Jason



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


RE: Building squid on Solaris 10 with large file support

2009-02-07 Thread Wilson Jason
openpkg-users-ow...@openpkg.org wrote:
> On Thu, Feb 05, 2009, Wilson Jason wrote:
> 
>> [...]
>> 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. 
> 
> Why does your GCC not support -m64 on your 64-bit platform?

Am using the default build of gcc on Solaris 10 from openpkg.

Checking on the source for the 'latest' version I see:
openpkg rpm -qip
rsync.openpkg.org/current/SRC/CORE/gcc-4.2.4-20080521.src.rpm
Name: gcc   Source RPM:   (none)
Version:  4.2.4 Signature:
md5:84d4f944e7d9f29decd6a9a8bca21e87
Release:  20080521  Build Host:   rm0.openpkg.net
Group:Compiler  Build System: ix86-freebsd6.2
Class:CORE  Build Time:   Thu May 22 05:17:09
2008
Distrib:  OpenPKG Community Install Time: (not installed)
License:  GPL   Install Size: 44039998 bytes
Packager: OpenPKG Foundation e.V.   Relocations:  (not relocateable)
Vendor:   Free Software Foundation
Summary:  GNU Compiler Collection
URL:  http://gcc.gnu.org/
Description:
The GNU Compiler Collection (GCC) provides a standard conforming and
highly portable ISO C and ISO C++ compiler.
Provides:
gcc::with_binutils = yes
gcc::with_cxx = yes
gcc::with_objc = no
gcc::with_java = no
gcc::with_fortran = no
gcc::with_optimize = yes
gcc::with_profile = no
gcc::with_threads = yes
gcc::with_multilib = no

multilib is disabled by default. Rebuilding now with multilib explicitly
enabled and will report how it goes.

> PS: For some old hints about OpenPKG and 64 bit see also:
>http://marc.info/?l=openpkg-users&m=116072933928495&w=2

Had seen this before, the main bit I missed was in 'Fact #1' saying that
it supports both 32 and 64 bit - just not built this way by default.

Thanks for the help.

Jason


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


Re: Building squid on Solaris 10 with large file support

2009-02-07 Thread Ralf S. Engelschall
On Thu, Feb 05, 2009, Wilson Jason wrote:

> [...]
> 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.

Why does your GCC not support -m64 on your 64-bit platform?

PS: For some old hints about OpenPKG and 64 bit see also:
http://www.lotterer.net/blog/en/78-openpkg-32bit-vs-64bit
http://marc.info/?l=openpkg-users&m=116072933928495&w=2

   Ralf S. Engelschall
   r...@engelschall.com
   www.engelschall.com

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org