Hi!Ok, made progress. ./bootstrap for libtool-1.5.22 works now. (After fixing the inital stack creation routine and tweaking gcc to return the default library directory for 'gcc -print-search-dirs)
But it looks like that there is a misconfiguration in the skyos specific settings I just added. When I try to build libtool-1.5.22 it succeeds and creates following files in the libltdl/.libs directory:
libltdl.dll (A valid SkyOS dll with all functions exported) libltdl.a (The static library) ======================================================================== libltdl.la : # libltdl.la - a libtool library file# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
# # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libltdl.3.1.4.dll' # Names of this library. library_names='libltdl.dll' # The name of the static archive. old_library='libltdl.a' # Libraries that this one depends upon. dependency_libs='' # Version information for libltdl. current=4 age=1 revision=4 # Is this an already installed library? installed=no # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib' ======================================================================== libltdl.lai: # libltdl.la - a libtool library file# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
# # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libltdl.3.1.4.dll' # Names of this library. library_names='libltdl.dll' # The name of the static archive. old_library='libltdl.a' # Libraries that this one depends upon. dependency_libs='' # Version information for libltdl. current=4 age=1 revision=4 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib' ========================================================================Unfortunately trying to install libtool-1.5.22 doesn't work because the install process can't find libltdl-3.1.4.dll (which obviously isn't there)
'make install': ..../boot/programs/unix/bin/install -c .libs/libltdl.3.1.4.dll $dldir/libltdl.3.1.4.dll (this fails)
.... Now the questions:- Does anyone know which libtool.m4 configuration is responsible for this failure?
- When this is fixed, and there finally is a libltdl.3.1.4 dll, does the make install process install a symlink like libltdl.dll -> libltdl.3.1.4.dll ? ( If not, how is ld supposed to find this library when a third party package for instance tries to link to libltdl by just using 'ld -lltdl ?)
- May there be any problems with SkyOS using the .PE DLL format for shared libraries? There must be no undefined/unreferenced symbols when building a DLL. (like in Windows)
Anyway, a few more information: I tried to add a skyos target to libtool.m4 with following characteristics: - The static library should be named: $(libname).a - The dynamic library should be named: $(libname).dll- There should be NO import library. ( $(libname).lib), because SkyOS GCC/LD can directly link against the DLL
I attach following files: libtool.m4.diff output from (./bootstrap && ./configure && make && make install) I would be very thankful for any hint! Robert!
log.txt.gz
Description: GNU Zip compressed data
libtool.m4.diff.gz
Description: GNU Zip compressed data
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool