Author Topic: Where Can I Find Getconf?  (Read 5181 times)

jbruno

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://
Where Can I Find Getconf?
« on: February 12, 2006, 01:10:41 pm »
Has anyone tried to build MySql 5 ?
I tried it and ./configure blows up because I don't have 'getconf'.

Does anyone know where I can find getconf? I didn't see it in the pdaXrom feeds

Thanks
-----
SL6000L
ATP 512MB SD

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Where Can I Find Getconf?
« Reply #1 on: April 03, 2006, 10:28:40 am »
Quote
Has anyone tried to build MySql 5 ?
I tried it and ./configure blows up because I don't have 'getconf'.

Does anyone know where I can find getconf? I didn't see it in the pdaXrom feeds

I'm trying to compile MySQL 4.1.18 and have the same problem. I tried cheating by creating my own getconf:
Code: [Select]
#!/bin/sh
echo "linuxthreads-0.10"
 

but configure is too clever as it tries to compile a test program and fails:
Code: [Select]
checking "Linux threads"... "starting"
checking "getconf GNU_LIBPTHREAD_VERSION"... "Linuxthreads"
"no need to check headers"
checking "for pthread_create in -lpthread"... "no"
configure: error:
This is a Linux system claiming to support threads, either Linuxthreads or NPTL, but linking a test program failed.
Please install one of these (or a new glibc) and try again.
See the Installation chapter in the Reference Manual for more information.

Any ideas anyone?

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

jeana

  • Newbie
  • *
  • Posts: 34
    • View Profile
Where Can I Find Getconf?
« Reply #2 on: April 13, 2006, 10:00:02 am »
Hi,

I encountered the same problems when trying to compile MySQL 4.1.18.

At present, I am compiling on my sl-c3000 Zaurus MySQL with no problems (The compilation isn't finished ...).

I do the following modifications to allow the compilation of MySQL :
      - creation of the getconf shell script as follow (don't forget to put it in the path and do a chmod u+x on it)
Code: [Select]
#!/bin/bash
if [ "$1" == "GNU_LIBPTHREAD_VERSION" ]
then
    echo "linuxthreads-0.9"
fi

Modified the configure file (in mysql-4.1.18/ ) replace the line number 25576 with the following lines :
Code: [Select]
 pthread_t newtr;
  (void) pthread_create(&newtr,(pthread_attr_t*) 0, 0, 0);

When my compilation will finish I will put the MySQL package in the "New Packages Announcement" topic (It's my first ipk build. I hope that no problems will be encountered ).
Zaurus SL-C3000 with Zubuntu

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Where Can I Find Getconf?
« Reply #3 on: April 13, 2006, 11:36:45 am »
Quote
When my compilation will finish I will put the MySQL package in the "New Packages Announcement" topic (It's my first ipk build. I hope that no problems will be encountered ).

That's great news. Also please don't forget to make a devel package

The only reason why I tried compiling mysql rather than use the one in the feed was that I needed the header and static libs to compile support into php.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

jeana

  • Newbie
  • *
  • Posts: 34
    • View Profile
Where Can I Find Getconf?
« Reply #4 on: April 14, 2006, 07:22:29 am »
Quote
The only reason why I tried compiling mysql rather than use the one in the feed was that I needed the header and static libs to compile support into php.

I have the same needs.

You can found the MySQL package at New Packages Announcement
Zaurus SL-C3000 with Zubuntu

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Where Can I Find Getconf?
« Reply #5 on: April 14, 2006, 11:41:29 am »
Quote
New Packages Announcement

Thanks, I'll grab it now.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM