For the life of me, I can't seem to get a working build of ion-devel
(the latest one, 20020814). It builds fine with both libtool14 and
15, as expected. However, when run, it errors trying to load any of the
4 modules with lt_dlgetinfo() errors. I can't track this problem down.
Whether it's linked with libltdl 1.4 or libltdl 1.5, the only difference
is the error message returned from libltdl.

It doesn't appear to be a linking error, ldd shows that it was properly
linked. My best guess is that it's looking for a file where there isn't
one, but I'm no whiz with gdb so I wasn't able to verify that - and
truss(1) didn't seem to want to attach to the process.

Using the same system.mk and rules.mk under FreeBSD 4.8 gives me a fully 
working install with both libtool/libltdl 1.4 and 1.5.

Attached are my script(1) output of ion's errors, and the diffs against
the stock system.mk and rules.mk

Any ideas or suggestions are appreciated :)

> uname -a
FreeBSD cell.databits.net 5.1-CURRENT FreeBSD 5.1-CURRENT #7: Wed Jul  2
21:26:58 CDT 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/CELL i386


Regards,
-Jordan Sissel

PS: I <3 Ion.
Script started on Wed Aug 20 17:29:58 2003
extl_loadfile(/usr/local/share/ion-devel/ioncorelib.lua)
extl_loadfile(/usr/local/share/ion-devel/ioncore-mplexfns.lua)
extl_loadfile(/usr/local/etc/ion-devel/draw.lua)
>> lt_dlgetinfo() failed to return module name.
>> de: Module version information not found or version mismatch. Refusing to use.
>> Stack trace:
   0 [C]: in 'gr_select_engine'
   1 /usr/local/etc/ion-devel/draw.lua:6
     [Skipping unnamed C functions.]
extl_loadfile(/usr/local/share/ion-devel/ioncore-startup.lua)
extl_loadfile(/usr/local/etc/ion-devel/ioncore.lua)
extl_loadfile(/usr/local/etc/ion-devel/kludges.lua)
extl_loadfile(/usr/local/etc/ion-devel/ioncore-bindings.lua)
>> Mod1+F1: Could not convert keysym to keycode
>> Stack trace:
     [Skipping unnamed C functions.]
   1 /usr/local/share/ion-devel/ioncore-startup.lua:20: in 'global_bindings'
   2 /usr/local/etc/ion-devel/ioncore-bindings.lua:18
     [Skipping unnamed C functions.]
   6 [C]: in 'do_include'
   7 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   8 /usr/local/etc/ion-devel/ioncore.lua:32
     [Skipping unnamed C functions.]
   12 [C]: in 'do_include'
   13 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   14 /usr/local/share/ion-devel/ioncore-startup.lua:44
     [Skipping unnamed C functions.]
extl_loadfile(/usr/local/share/ion-devel/querylib.lua)
>> F1: Could not convert keysym to keycode
>> Stack trace:
   0 [C]: in 'genframe_bindings'
   1 /usr/local/etc/ion-devel/ioncore-bindings.lua:157
     [Skipping unnamed C functions.]
   5 [C]: in 'do_include'
   6 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   7 /usr/local/etc/ion-devel/ioncore.lua:32
     [Skipping unnamed C functions.]
   11 [C]: in 'do_include'
   12 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   13 /usr/local/share/ion-devel/ioncore-startup.lua:44
     [Skipping unnamed C functions.]
>> lt_dlgetinfo() failed to return module name.
>> query: Module version information not found or version mismatch. Refusing to use.
>> Stack trace:
   0 [C]: in 'load_module'
   1 /usr/local/etc/ion-devel/ioncore.lua:57
     [Skipping unnamed C functions.]
   5 [C]: in 'do_include'
   6 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   7 /usr/local/share/ion-devel/ioncore-startup.lua:44
     [Skipping unnamed C functions.]
>> lt_dlgetinfo() failed to return module name.
>> ionws: Module version information not found or version mismatch. Refusing to use.
>> Stack trace:
   0 [C]: in 'load_module'
   1 /usr/local/etc/ion-devel/ioncore.lua:58
     [Skipping unnamed C functions.]
   5 [C]: in 'do_include'
   6 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   7 /usr/local/share/ion-devel/ioncore-startup.lua:44
     [Skipping unnamed C functions.]
>> lt_dlgetinfo() failed to return module name.
>> floatws: Module version information not found or version mismatch. Refusing to use.
>> Stack trace:
   0 [C]: in 'load_module'
   1 /usr/local/etc/ion-devel/ioncore.lua:59
     [Skipping unnamed C functions.]
   5 [C]: in 'do_include'
   6 /usr/local/share/ion-devel/ioncorelib.lua:220: in 'include'
   7 /usr/local/share/ion-devel/ioncore-startup.lua:44
     [Skipping unnamed C functions.]
>> Could not find a complete workspace class. Please load some modules.
>> Unable to set up any rootwins.
>> Refusing to start due to encountered errors.
Script done on Wed Aug 20 17:30:08 2003
--- system.mk.orig      Wed Jul 30 10:14:46 2003
+++ system.mk   Sat Aug 16 15:37:51 2003
@@ -7,7 +7,7 @@
 ## Installation paths
 ##
 
-PREFIX=/usr/local/ion-devel
+PREFIX=/usr/local
 
 # Unless you are creating a package conforming to some OS's standards, you
 # probably do not want to modify the following directories:
@@ -40,11 +40,11 @@
 # libtool because even more-recent-than-libtool-1.4.3 releases of those
 # OSes only have an _ancient_ 1.3.x libtool that _will_ _not_ _work even
 # though a lot of libltdl-using apps require 1.4.3. 
-LIBTOOL=libtool
+LIBTOOL=libtool15 --tag=CC
 
 # Settings for compiling and linking to ltdl
-LTDL_INCLUDES=
-LTDL_LIBS=-lltdl
+LTDL_INCLUDES=-I/usr/local/include
+LTDL_LIBS=-lltdl -L/usr/local/lib
 
 # The following should do it if you have manually installed libtool 1.5 in
 # $(LIBTOOLDIR).
@@ -113,7 +113,9 @@
 # specified here.
 
 # GNU/Linux and other glibc-2.2 based systems.
-#DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\"WCHAR_T\" -DCF_ICONV_SOURCE=\"UTF-8\"
+DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\"WCHAR_T\" -DCF_ICONV_SOURCE=\"UTF-8\"
+EXTRA_LIBS += -liconv -L/usr/local/lib -lc
+EXTRA_INCLUDES += -I/usr/local/include
 
 # Systems that depend on libutf8 and libiconv might want these.
 #DEFINES += -DCF_UTF8 -DCF_LIBUTF8 -DCF_ICONV_TARGET=\"C99\" 
-DCF_ICONV_SOURCE=\"UTF-8\"
@@ -137,7 +139,7 @@
 # asprintf and vasprintf in the c library. (gnu libc has.)
 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
 # in sprintf_2.2/ is used.
-#HAS_SYSTEM_ASPRINTF=1
+HAS_SYSTEM_ASPRINTF=1
 
 
 ##
@@ -200,9 +202,9 @@
 ##
 
 # Should work almost everywhere
-INSTALL=install
+#INSTALL=install
 # On a system with pure BSD install, -c might be preferred
-#INSTALL=install -c
+INSTALL=install -c
 
 INSTALLDIR=mkdir -p
 
--- rules.mk    Wed Jun 18 14:12:19 2003
+++ rules.mk.bsd        Sun Aug 17 20:28:21 2003
@@ -84,6 +84,7 @@
 module_install:
        $(INSTALLDIR) $(MODULEDIR)
        $(LIBTOOL) --mode=install $(INSTALL) -m $(BIN_MODE) $(MODULE).la $(MODULEDIR)
+       $(INSTALL) -m $(BIN_MODE) $(MODULE).la $(MODULEDIR)
        # $(STRIP) $(MODULEDIR)/$(MODULE).so
 
 clean_objs:

Reply via email to