Re: [AD] Now a problem with debug shared libraries and ggi.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx> writes:
> I recompiled Allegro with --enable-esddigi --enable-dbglib --enable-dbgprog
> --enable-shared --disable-static --disable-ggi
> 
> but whenever I try to link some object files into a binary I get:
> 
> lib/unix/liballd.so.2: undefined reference to `ggi_read_bank'
[snip]

These patches should fix it, let me know if you still have problems.

> PD: If I start using shared libs, and forget to uninstall some version
> before upgrading, would the uninstall target of Allegro delete the old
> files too?

There is no uninstall target at the moment :-) But once there is, surely it 
should only remove libs for its own version of Allegro?

Heh. I've got 9 megs of old Allegro DLL files sat around in my Windows 
system directory at the moment :-)


--
Shawn Hargreaves - shawn@xxxxxxxxxx - http://www.talula.demon.co.uk/
"A binary is barely software: it's more like hardware on a floppy disk."
--- /e/allegro/src/linux/ggis.s	Mon Nov 22 01:31:48 1999
+++ allegro/src/linux/ggis.s	Sun Dec  5 16:35:59 1999
@@ -20,12 +20,14 @@
 
 
 #include "../i386/asmdefs.inc"
+#include "allegro/alunixac.h"
+
 
 .text
 
 
-#ifndef ALLEGRO_NO_ASM
-	/* Use only with ASM calling convention.  */
+#if (!defined ALLEGRO_NO_ASM) && (defined ALLEGRO_LINUX_GGI)
+
 
 FUNC(ggi_read_bank_asm)
 	pushl %ecx
@@ -81,5 +83,6 @@
 	popl %eax
 	ret
 
+
 #endif
 
--- /e/allegro/src/linux/svgalibs.s	Mon Nov 22 01:31:48 1999
+++ allegro/src/linux/svgalibs.s	Sun Dec  5 16:36:39 1999
@@ -20,11 +20,15 @@
 
 
 #include "../i386/asmdefs.inc"
+#include "allegro/alunixac.h"
 
 
 .text
 
 
+#if (!defined ALLEGRO_NO_ASM) && (defined ALLEGRO_LINUX_SVGALIB)
+
+
 FUNC(_svgalib_read_line_asm)
 	pushl %ecx
 	pushl %eax
@@ -56,3 +60,6 @@
 	popl %ecx
 	popl %eax
 	ret
+
+
+#endif


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/