DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2006-10-30 11:15:03

StevieP
Member
Registered: 2006-08-19
Posts: 21

MySql - failed so far

So, has anyone managed to compile MySql yet? I've tried with both the toolchain (which failed due to dependencies on various not-very-portable components) and Gentoo.

My efforts at emerge-ing dev-db/mysql got as far as a failed attempt to build zlib, which is annoying firstly because the Gentoo stage 3 tar ball already includes zlib, and secondly because it appears to be due to gcc making the main function in minigzip "hidden", which seems ridiculous. It looks like the version of gcc I have is 3.4.x. Clearly, the gcc developers are completely unaware of the concept of "backwards compatibility".

Offline

 

#2 2006-10-30 13:19:28

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: MySql - failed so far

Have you looked openwrt and nslu2 linux patches for mysql?
Some time ago I also messed with mysql, but I did fail also, although I was able to compile mysqlclient successfully.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#3 2006-10-30 14:51:35

StevieP
Member
Registered: 2006-08-19
Posts: 21

Re: MySql - failed so far

Thanks for the suggestion. I'll take a look and make a note to check them first if I have any similar problems in future.

Offline

 

#4 2006-11-01 14:10:28

SystemR89
Member
From: >>Turin<< >>Italy<<
Registered: 2006-09-19
Posts: 88

Re: MySql - failed so far

have you tried SQLite?


Free is BETTER!!
Use GNU/Linux!!

Offline

 

#5 2006-11-09 03:44:03

TheWalt
Member
Registered: 2006-09-12
Posts: 39

Re: MySql - failed so far

SystemR89 wrote:

have you tried SQLite?

I gave that a quick shot today.  The make file wants to run some local executables to determine compile time settings which of course on a cross compiler isn't going to happen.  Gentoo chroot might have better luck.

Offline

 

#6 2006-11-09 08:04:16

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: MySql - failed so far

TheWalt wrote:

SystemR89 wrote:

have you tried SQLite?

I gave that a quick shot today.  The make file wants to run some local executables to determine compile time settings which of course on a cross compiler isn't going to happen.  Gentoo chroot might have better luck.

This is very easy to hack away, you need just comment some exit commands away, one or two lines after you get the error.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#7 2006-11-09 14:18:57

TheWalt
Member
Registered: 2006-09-12
Posts: 39

Re: MySql - failed so far

sala wrote:

TheWalt wrote:

SystemR89 wrote:

have you tried SQLite?

I gave that a quick shot today.  The make file wants to run some local executables to determine compile time settings which of course on a cross compiler isn't going to happen.  Gentoo chroot might have better luck.

This is very easy to hack away, you need just comment some exit commands away, one or two lines after you get the error.

No not those, as I did that.  It compiles this program called 'lemon' and then wants to run it later in the make.  Skipping it all together causes the parse.c to fail.  If I get time will have to see what it is doing exactally.

Code:

parse.c:    $(TOP)/src/parse.y lemon$(BEXE)
    cp $(TOP)/src/parse.y .
    ./lemon $(OPTS) parse.y

Last edited by TheWalt (2006-11-09 14:19:50)

Offline

 

#8 2006-11-09 15:01:28

TheWalt
Member
Registered: 2006-09-12
Posts: 39

Re: MySql - failed so far

TheWalt wrote:

Sometimes waiting til the next day and a clear head makes all the difference.  I just compiled the missing tools (lemon, mkkey, etc) under intel and copied them over to the crossbuild.  Duh, problem solved.  Now to see why it fails a reference to keywordCode.

Got a binary, will test it tonight.

Offline

 

#9 2006-11-10 01:11:42

TheWalt
Member
Registered: 2006-09-12
Posts: 39

Re: MySql - failed so far

sqlite binary does work, but having trouble reading the libraries.  Going to try and recompile with them included tomorrow as my build machine is at the office.

Offline

 

#10 2007-07-09 22:47:06

gerick
Member
Registered: 2007-07-07
Posts: 7

Re: MySql - failed so far

It is my understanding that SQLite is built into PHP5.  Can Lighttpd be built with PHP and SQLite?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB