> Sound pretty much like it could be. Can you take vanilla python 2.5.2
> on your box, build from source and then check if the gdbm extension
> compiles [I think it won't]. Can you then build gdbm from source and
> use that version to build python? If that works it is likely to be a
> use flag problem somehow in arch and your specific setup.
Hi Michael,
Applying the following patch to "python-2.5.2/src/setup.py" solves
the
problem of "dbm.so" compilation. However, running the sage still
gives
the same errors which should thus stem from somewhere else.
--- Python-2.4.4/setup.py.orig 2007-01-14 12:50:46.000000000 -0600
+++ Python-2.4.4/setup.py 2007-01-14 12:54:02.000000000 -0600
@@ -685,12 +685,12 @@
if self.compiler.find_library_file(lib_dirs,
'ndbm'):
ndbm_libs = ['ndbm']
else:
- ndbm_libs = []
+ ndbm_libs = ['gdbm', 'gdbm_compat']
exts.append( Extension('dbm', ['dbmmodule.c'],
define_macros=[('HAVE_NDBM_H',None)],
libraries = ndbm_libs ) )
elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
- and find_file("gdbm/ndbm.h", inc_dirs, []) is not
None):
+ and find_file("ndbm.h", inc_dirs, []) is not
None):
exts.append( Extension('dbm', ['dbmmodule.c'],
define_macros=[('HAVE_GDBM_NDBM_H',None)],
libraries = ['gdbm'] ) )
Cheers,
Osman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---