I'm trying to build OpenPKG Release 2.5 with some CURRENT packages on a
SuSE Linux Enterprise 9, Service Pack 3 system.  The processor is an AMD
Athlon-64.

I thought I was beginning to understand building in the mixed 32/64 bit
environment on SLES9, but, after three days of hacking, I have more
questions than answers -- mostly related to gcc finding and building the
correct 64-bit libraries.  The only system I've ever worked with that
generated code for different library types is SCO OpenServer which creates
COFF and ELF libraries using the options to the C compilter -belf, -bcoff,
etc. (and gcc uses -melf if I remeber correctly).

The rest of this are notes and questions (probably displaying my ignorance
on this more than anything else :-).

SLES9 has 32-bit libraries in the normal places, and the 64-bit in /lib64,
/usr/lib64, and /usr/X11R6/lib64 (and probably more that I haven't found
yet).

I think that the openpkg rc.openpkg run control should be setting
LD_LIBRARY_PATH to use /lib64 and /usr/lib64.

The OpenPKG x11 package doesn't set x11_libdir="/usr/X11/lib64".  Packages
that use imake need some tweaking since the Imake.tmpl file isn't found
where expected.

Building the Berkeley db package fails, unable to find things like
db_create.  There are other linking issues that seemed to require that gcc
be built with --enable-shared.

Some of the linking and configure problems seem to result from the libtool,
automake, autoconf family searching the /lib and /usr/lib directories
instead of /lib64 and /usr/lib64.  I did some tweaking using shtool to
replace "/lib /usr/lib" with "/lib64 /usr/lib64", but this hardly seems
like the Right Way(tm) to do this.

Looking at the gcc-4.0.3 gcc.spec file, it has multilib disabled for Intel
64 bit architectures.  Should this be disabled for amd64 as well?

Can gcc be built to only produce 64-bit code, and is this a good idea?

If an OpenPKG instance is to have multiple libraries, this complicates
things thoroughly such as %{l_prefix}/lib.  I would rather see multiple
OpenPKG instances than mix them.

Should gcc be called with the ``-m64'' option to find the correct library
files?  If so, where's the best place to define this?

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

If you want government to intervene domestically, you're a liberal.  If you
want government to intervene overseas, you're a conservative.  If you want
government to intervene everywhere, you're a moderate.  If you don't want
government to intervene anywhere, you're an extremist -- Joseph Sobran
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to