Hi List,

i try to compile the Perl's DBI::Mysql Driver and have some problems
with it.

I used a copy of another Perl Makefile and modifyed it.

Makefile:
--------------------------------------------------------------------
include $(TOPDIR)/rules.mk

PKG_NAME:=perl-dbd-mysql
PKG_VERSION:=4.017
PKG_RELEASE:=1
PKG_MD5SUM:=fc6f53e2a87bc5c32c44f10ee3f03683

PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU
PKG_SOURCE:=DBD-mysql-$(PKG_VERSION).tar.gz

PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBD-mysql-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk

define Package/perl-dbd-mysql
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=Database independent interface for Perl
URL:=http://search.cpan.org/dist/DBD/
DEPENDS:=perl +perlbase-essential +perl-dbi
endef

define Build/Configure
        $(call perlmod/Configure,,)
endef

define Build/Compile
        $(call perlmod/Compile,,)
        PERL5LIB="$(PERL_LIB)" $(2) $(MAKE) -C $(PKG_BUILD_DIR) $(1)
installperl
endef

define Package/perl-dbd-mysql/install
        $(call perlmod/Install,$(1),DB* auto/DBD,DBD/W32ODBC.pm
auto/DBD/*.h)
endef


$(eval $(call BuildPackage,perl-dbd-mysql))
-------------------------------------------------------------------

First was, that DBI it self could not be found by the DBI::Mysql
compiling stuff, so i added the following line to the Makefile:

  PKG_SOURCE:=DBD-mysql-$(PKG_VERSION).tar.gz
+ PERL_LIB := $(PERL_LIB):$(STAGING_DIR)/root-x86/usr/lib/perl5/5.10

  PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBD-mysql-$(PKG_VERSION)

to let the compilescript loock into staging dir to find dbi module.

but now it comes the error, that DBI could not beloaded, cause dynamic 
loading is not available for perl. 

message:
Can't load module DBI, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the DBI module statically linked into it.)

at 
/home/carcinoma/src/alix/squeezetest/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/usr/lib/perl5/5.10/DBI.pm
 line 116


i could not find an answer by using google. so i hope, anybody here can
help me.

 Carci




_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to