Author Topic: Parted On The Zaurus (c3000)  (Read 7647 times)

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« on: February 22, 2005, 12:51:57 pm »
I'm trying to use dev_img to compile parted on my C3000. I had to get and compile e2fsprogs, which worked fine. I also had to play with the ./configure values for parted, but nothing horrible (--without-readline --disable-dynamic-loading). However, it fails to compile, complaining about a missing symbol, stat64.

After looking around on the web, it looks like Sharp hasn't compiled this into glibc on the Zaurus (argh, damn Sharp for their proprietary-esque fiddling). I tried adding the macros from glibc into the header files, but nothing seems to have worked. Does anyone know how I might be able to fix this?

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« Reply #1 on: April 07, 2005, 01:18:05 pm »
Nobody cares, huh? Damn it.... If anyone has a working build environment for the Sharp ROM I would be very grateful if you could try to get parted working. It would be great to be able to repartition CF/SD cards as well as the 4GB microdrive in my C3000.

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Parted On The Zaurus (c3000)
« Reply #2 on: April 07, 2005, 01:41:11 pm »
Quote
Nobody cares, huh? Damn it.... If anyone has a working build environment for the Sharp ROM I would be very grateful if you could try to get parted working. It would be great to be able to repartition CF/SD cards as well as the 4GB microdrive in my C3000.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74059\"][{POST_SNAPBACK}][/a][/div]

Can you use __stat64 from the Kernel headers?... (checks...) no apparently not... strange the Kernel should have this as an entry point.
« Last Edit: April 07, 2005, 01:43:01 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« Reply #3 on: April 07, 2005, 02:01:16 pm »
You seem to know what you're talking about...any idea how to fix this?

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Parted On The Zaurus (c3000)
« Reply #4 on: April 07, 2005, 02:15:36 pm »
Quote
You seem to know what you're talking about...any idea how to fix this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74069\"][{POST_SNAPBACK}][/a][/div]

Hang on, just going to build a stock kernel and see if the system map lists the API....(checks)...

Code: [Select]
c0159340 t cp_new_stat64
c0159450 T sys_stat64
c0159480 T sys_lstat64
c01594b0 T sys_fstat64
c015

Yep, there it is... should be in sys/stat.h...  not part of glibc but a system call.

Hope this helps,

Andy
« Last Edit: April 07, 2005, 02:31:42 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« Reply #5 on: April 07, 2005, 02:34:12 pm »
Well...looks like someone finally posted about this in Feb and solved it. I just found this thread which talks about stat64 and linking a bunch of things that the dev_image's setup script doesn't link. I also re-copied the include files (I'd been futzing with them trying to get the right functions and structures in the header files) and now it's compiling.

Hmmm...make ran fine, but I don't see an executable. make install also failed. I'm goign to clean and start over.

BTW, my configuration line for this (on my Z with the dev image copied to /hdd2/dev) is:
Code: [Select]
LDFLAGS="-L/lib -L/usr/lib -L/opt/QtPalmtop/lib -L/hdd2/dev/lib -L/mnt/dev/lib" CFLAGS="-I/hdd2/dev/include" CPPFLAGS="-I/hdd2/dev/include -I/mnt/dev/include" CXXFLAGS="-I/hdd2/dev/include -I/mnt/dev/include" ./configure --without-readline --prefix="/hdd2/dev" --disable-dynamic-loading

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« Reply #6 on: April 07, 2005, 02:47:02 pm »
Tried again, make runs though fine. make install dies with:
Code: [Select]
.././install-sh -c -D ./pt_BR-parted.8 /hdd2/dev/man/pt_BR/man8/parted.8
install:  -D does not exist
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/hdd2/dev/src/parted-1.6.21/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/hdd2/dev/src/parted-1.6.21/doc'
make: *** [install-recursive] Error 1

However I now see that hte binary is at parted/parted. And it runs! :-) Oh happy day!

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Parted On The Zaurus (c3000)
« Reply #7 on: April 07, 2005, 04:21:53 pm »
For anyone following this thread (if any) I altered doc/Makefile and removed the -D from the $(INSTALL) command. This allowed make install to finish. The docs may not be installed "correctly" but I don't really care as parted seems to be all working.