Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ApacheGallery] Relocation error with Apache::Gallery on Gentoo Linux



Hi

I've had trouble getting A::G to work on Gentoo. A default installation
does not work and spits out lines like the one below into
/var/log/apache/gallery-error_log:

  /usr/sbin/apache: relocation error: /usr/lib/loaders/image/jpeg.so:
  undefined symbol: __imlib_GetTag



However, I believe I have found a solution: simply enable the Inline
GLOBAL_LOAD option in Gallery.pm, e.g.:

  use Inline (C => Config =>
                            GLOBAL_LOAD => 1,
                             ..
                             ..



I removed the INC option and cleaned out the LIBS option without
problems. Patch attached.

Please notice that the GLOBAL_LOAD option may not work on all platforms
according to
http://search.cpan.org/author/INGY/Inline-0.44/Inline.pod#GLOBAL_LOAD


regards

Thomas
--- Apache-Gallery-0.6/lib/Apache/Gallery.pm	Mon Apr 21 13:26:51 2003
+++ Apache-Gallery/lib/Apache/Gallery.pm	Thu Jul 24 05:58:57 2003
@@ -25,9 +25,9 @@
 my $escape_rule = "^A-Za-z0-9\-_.!~*'()\/";
 
 use Inline (C => Config => 
-				LIBS => '-L/usr/X11R6/lib -lImlib2 -lm -ldl -lXext -lXext',
-				INC => '-I/usr/X11R6/include',
+				LIBS => '-lImlib2',
 				UNTAINT => 1,
+				GLOBAL_LOAD => 1,
 				DIRECTORY => File::Spec->tmpdir()
 			);