Re: [AD] 4.1.1 and cvs have linking problems with debug library under linux

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


On Thu, Aug 29, 2002 at 03:25:11PM +0200, Grzegorz Adam Hankiewicz wrote:
> Release 4.1.1 and current cvs version have linking problems with the
> debug version under linux, something to do with inline functions
> [...]
> /usr/local/lib/liballd-4.1.1.so: referencia a `_read_vga_register' sin definir
> /usr/local/lib/liballd-4.1.1.so: referencia a `_vsync_out_v' sin definir
> /usr/local/lib/liballd-4.1.1.so: referencia a `_write_vga_register' sin definir
> /usr/local/lib/liballd-4.1.1.so: referencia a `_vsync_in' sin definir
> [...]
> /home/gregorio/allegro-4.1.1/./src/linux/lvgahelp.c:79: referencia a `_read_vga_register' sin definir
> /home/gregorio/allegro-4.1.1/./src/linux/lvgahelp.c:229: referencia a `_write_vga_register' sin definir
> /home/gregorio/allegro-4.1.1/./src/misc/vgaregs.c:52: referencia a `_vsync_out_v' sin definir
> /home/gregorio/allegro-4.1.1/./src/misc/vgaregs.c:53: referencia a `_vsync_in' sin definir
> [...]

The problems goes back to 2002/07/08, when Peter commited the changes
with the log "Attempt to make configure --disable-vga remove more stuff
out of the core (e.g. inport/outport function, various hacks, etc.)".
The exact modification causing the above problems was the exclusion of
some vga specific headers in aintlnx.h.

This patch reverses that change and makes the debug version of the library
working again. However I won't apply it because I don't know exactly how
this affects the dynamic version's dependency. Peter, could you take a
look at it again and see if this is ok?
Index: aintlnx.h
===================================================================
RCS file: /cvsroot/alleg/allegro/include/allegro/platform/aintlnx.h,v
retrieving revision 1.5
diff -u -r1.5 aintlnx.h
--- aintlnx.h	8 Jul 2002 02:03:57 -0000	1.5
+++ aintlnx.h	7 Sep 2002 15:19:04 -0000
@@ -255,6 +255,12 @@
 void __al_linux_mouse_get_mickeys (int *mickeyx, int *mickeyy);
 
 
+/* VGA register access helpers */
+#include "allegro/internal/aintern.h"
+#include "allegro/internal/aintvga.h"
+
+
+
 #ifdef __cplusplus
 }
 #endif


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