Hi All, 

 

If someone could please suggest how to build 64-bit library on AIX 5L.

 

Thanks, 

Alla Bogolubov

 

________________________________

From: Bob Atkins [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2008 3:15 PM
To: Mark Crispin
Cc: Alla Bogolubov; [email protected]
Subject: Re: [Imap-uw] Re: building 64-bit version on UNIX

 

Mark,

FYI, we have successfully built and deployed a 64 bit version of the UW
Imap package and a shared version of the c-client library on Solaris and
have been running the c-client library as a 64 bit shared object with
PHP for several months now. It has been working just fine. It appears
that you fixed a couple of problems in the 2007 release that were
breaking the 64 bit version of imapd and that is now working just fine
(along with everything else) in 64 bit mode.

The main benefit/requirement for a 64 bit build (at least of the
c-client library) is to link in with a 64 bit build of Apache/PHP/Perl,
etc..

In addition - those of us doing voice services using asterisk are also
using the c-client lib for voicemail service. We are running all of our
voice software as 64 bit apps.

Why is 64 bit valuable? One main thing is it removes the 256 file
descriptor limit for streams - substantial roadblock to any applications
that may open hundreds or thousands of streams at a time. In general I
don't see not building apps 64 bit these days if you are running on a 64
bit capable processor. Not doing so is just delaying the inevitable
obsolescence that will occur as more and more apps and coders depend on
64 bit characteristics. The arguments against building 64 bit - like it
takes more memory - just don't hold water. The amount of additional
memory is insignificant and at a system level is substantially less
since you don't have to load both 64 bit and 32 bit versions of various
libraries. In addition - kernels don't have to context switch between 32
and 64 bit modes for system calls from 32 bit apps. These are just a few
of the top reasons - there are no doubt many more albeit of lesser
consequence and benefit.

It would be so nice if the UW imap c-client library build was setup to
properly build as both a static and a shared library. Internally we have
modified your build to handle this but it is specific to our world. It
would be so much better if the library had an appropriately correct name
(eg: libuwimap.so) and had the appropriate shared object versioning so
that it would be consistent with the way shared objects are handled in
other packages. Having a clearly identifiable name (c-client is far too
generic) that uniquely identifies the library so that other packages
(php, and no doubt other unnamed apps) could properly find the library
and the header files in standard search paths (for instance,
/usr/local/include/uwimap) or better yet just /usr/local/include if the
header file could be limited to just external interfaces in a single
file would make incorporating the UW Imap libraries a far more
predictable process that would likely require a lot less support from
yourself in dealing with odd bugs that turn out to be related to the way
things have been linked to some old, static version of c-client.

Basically what I am saying - at least for Solaris is that UW Imap is
already 64 bit capable - this is just the age old issue of needing
shared library support.

Mark Crispin wrote: 

64-bit builds are not supported; nor is the software likely to derive
much (if any) benefit by being built in 64-bits.  Building in 64-bits
has worked for some people, but not for others. 

I see from your transcript that you are doing a re-make.  Because build
arguments are recorded into configuration files in a first make, you
can't pass build arguments to a re-make.  I'm surprised that you are
getting errors with CCTYPE and CFLAGS, but a fresh make should fix both
problems. 

In other words, try doing a "make clean" first, then redo your 
    make h11 EXTRACFLAGS='-mt +DA2.0W +DS2.0' 
command. 

On Mon, 3 Mar 2008, Alla Bogolubov wrote: 



Hi Marc, 

Thank you for your prompt reply. 

Now we are struggling to build a 64-bit version of the library on 
Solaris, AIX and HP-UX OS. Has 64-bit version of c-client ever been 
built? How to pass 64-bit flags to Makefile? 

We receive the following error on HP-UX when trying to pass the flags 
via EXTRACFLAGS: 

/home/sambuild/imap-2007> make h11 EXTRACFLAGS='-mt +DA2.0W +DS2.0' 
make build EXTRACFLAGS='-mt +DA2.0W +DS2.0' EXTRALDFLAGS='' 
EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd 
IP=4 EXTRASPECIALS='' BUILDTYPE=h11 
make[1]: Entering directory `/home/sambuild/imap-2007' 
Rebuilding c-client for h11... 
cd c-client;make all CC=`cat CCTYPE` \ 
CFLAGS="`cat CFLAGS`" `cat SPECIALS` 
cat: Cannot open CCTYPE: No such file or directory 
cat: Cannot open CFLAGS: No such file or directory 
make[2]: Entering directory `/home/sambuild/imap-2007/c-client' 
You must specify what type of system 
make[2]: *** [osdep.h] Error 1 
make[2]: Leaving directory `/home/sambuild/imap-2007/c-client' 
make[1]: *** [rebuild] Error 2 
make[1]: Leaving directory `/home/sambuild/imap-2007' 
make: *** [h11] Error 2 


Thank you, 
Alla 

-----Original Message----- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Mark Crispin 
Sent: Monday, March 03, 2008 1:58 PM 
To: Alla Bogolubov 
Cc: [email protected] 
Subject: Re: [Imap-uw] IMAP client library API documentation 

On Mon, 3 Mar 2008, Alla Bogolubov wrote: 



Please advise where we can find API documentation. 


The standard distribution of the UW IMAP toolkit is: 
    ftp://ftp.cac.washington.edu/mail/imap.tar.Z 

When unpacking that distribution, there is a docs/ directory inside 
which 
contains numerous documentation files.  As a start, read 
docs/internal.txt 

-- Mark -- 

http://panda.com/mrc 
Democracy is two wolves and a sheep deciding what to eat for lunch. 
Liberty is a well-armed sheep contesting the vote. 


-- Mark -- 

http://panda.com/mrc 
Democracy is two wolves and a sheep deciding what to eat for lunch. 
Liberty is a well-armed sheep contesting the vote. 
_______________________________________________ 
Imap-uw mailing list 
[email protected] 
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw 

 

-- 

Bob Atkins  

President/CEO

  <http://www.digilink.net> 
Business Inter-net-working
The Cure for the Common ISP!

Phone: (310) 577-9450
Fax: (310) 577-3360
eMail: [EMAIL PROTECTED]

  

<<image001.jpg>>

_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to