Advanced search
Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings mud-builder
Summary Tracker Lists Tasks News SCM

Patches: Browse | Download .csv

[#822] gpsd

Please login

State:
Open
Date:
2007-05-05 17:51
Priority:
3
Submitted By:
Matthew Andrew (mzandrew)
Assigned To:
Kees Jongenburger (keesj)
Summary:
gpsd

Detailed description
It fails at the end, after compiling:

make[1]: Leaving directory `/home/mza/mud-builder/build/gpsd/gpsd-2.34'
dh_testdir
dh_testroot
dh_install --sourcedir=debian/tmp
dh_link
dh_strip
/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/sbox-arm-linux-strip: Unable to recognise the format of the input file
`debian/gpsd/usr/lib/python2.3/site-packages/gpspacket.so'
dh_strip: command returned error code 256
make: *** [binary-arch] Error 1
+++ Calculating dependencies to copy to [/home/mza/mud-builder/upload]
Finding debs for [*] in [/home/mza/mud-builder/build/gpsd]
`/home/mza/mud-builder/build/gpsd/gpsd_2.34.dsc' -> `/home/mza/mud-builder/upload/gpsd_2.34.dsc'
`/home/mza/mud-builder/build/gpsd/gpsd_2.34.tar.gz' -> `/home/mza/mud-builder/upload/gpsd_2.34.tar.gz'
Build dir = [/home/mza/mud-builder/build/gpsd/gpsd-2.34]

another issue is that I hardcoded the version # in the url for download, so it'll require some maintaining
unfortunately.

Followup

Message
Date: 2007-05-11 22:01
Sender: Matthew Andrew

here's the .deb for anyone that wants it.  It's for os2006.39-14,
but may work for the latest os2006.
Date: 2007-05-11 21:59
Sender: Matthew Andrew

I don't know.  As I said, I'm running the scratchbox that builds
for os2006-39-14, which is not the latest os2006 release for
the 770.

When I was trying to compile mpd one time, A bunch of the symlinks
like that were bad (although those were related to autoconf or
something) - you should do a ls
-l /scratchbox/compilers/host-gcc/bin/gcc and see if it's a symlink
to nowhere or if the /scratchbox/compilers/host-gcc/bin dir even
exists.  If it is bad, I don't know how to fix it...
Date: 2007-05-11 09:44
Sender: Kees Jongenburger

I still does not work for me , did you install special package
and such?

then mv -f ".deps/gpsd.Tpo" ".deps/gpsd.Po";
else rm -f ".deps/gpsd.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CC --mode=link arm-linux-gnueabi-gcc
-Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type
-D_GNU_SOURCE  -I/usr/X11R6/include  -L/usr/lib -o gpsd  gpsd_dbus.o
gpsd.o -ldbus-1   -lm libgps.la -lm -lpthread
arm-linux-gnueabi-gcc -Wall -g -O2 -Wall -Wcast-align
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wpointer-arith -Wreturn-type -D_GNU_SOURCE -I/usr/X11R6/include
-o .libs/gpsd gpsd_dbus.o gpsd.o  -L/usr/lib -ldbus-1
./.libs/libgps.so -lnsl -lm -lpthread
creating gpsd
python setup.py build_ext --inplace
running build_ext
building 'gpspacket' extension
creating build
creating build/temp.linux-arm-2.3
/scratchbox/compilers/host-gcc/bin/gcc
-specs=/scratchbox/compilers/host-gcc/host-gcc.specs -pthread
-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -I/scratchbox/tools/include/python2.3 -c hex.c -o
build/temp.linux-arm-2.3/hex.o
unable to execute /scratchbox/compilers/host-gcc/bin/gcc: No
such file or directory
error: command '/scratchbox/compilers/host-gcc/bin/gcc' failed
with exit status 1
make[2]: *** [gpspacket.so] Error 1
make[1]: *** [all] Error 2
make: *** [build-stamp] Error 2
make[2]: Leaving directory
`/home/keesj/mud-builder/build/gpsd/gpsd-2.34'
make[1]: Leaving directory
`/home/keesj/mud-builder/build/gpsd/gpsd-2.34'
+++ Calculating dependencies to copy
to [/home/keesj/mud-builder/upload]
Date: 2007-05-07 08:46
Sender: Matthew Andrew

A-ha!  I got it to remove the offending file in the debian/rules
file.  Patch is attached.

I put the line "ldconfig" in the postinst file.

I can now do a mud build gpsd and it gives me a .deb that installs
and works fine on the 770.  Yay.  Thanks for the help, Kees.
Date: 2007-05-07 05:26
Sender: Kees Jongenburger

>I don't know how to delete a file after it unpacks the
source
from the gpsd.xml file
Yes , this currently is not possible. and I agree that replacing
the whole get target is to much. I think we want a post get target.
I will ask Andrew :P

>I'm fiddling around with postinst.ex
We all love debian. .ex files a "example" files , you
can rename them to postinst and see what happens. I think sauna
already does something similar.

>ldconfig on my 770....
I guess this is normal but I am not sure
Date: 2007-05-06 19:23
Sender: Matthew Andrew

All I did was delete ~/mud-builder/build/gpsd/gpsd-2.34/gpspacket.so
and ~/mud-builder/build/gpsd/gpsd-2.34/debian/gpsd/usr/lib/python
2.3/
site-packages/gpspacket.so and then run mud compile again and
it worked fine.  There were some warnings along the way, but
it created a .deb for me.  It installed on my 770.

I don't know how to delete a file after it unpacks the source
from the gpsd.xml file.  I could use command instead of tarball,
but I'm not sure by which mechanism mud normally uses to get
the tarball, so I don't wanna just throw a wget line in there,
since that likely won't work.

I tried reverting all the modified files in the source tree using
svn revert and then I deleted gpspacket.so, but svn says no patch
against upstream is necessary.  I joined the gpsd-users mailing
list so I can mention that gpspacket.so is in the tarball.  I
searched their mailing list since this version was released and
there's no mention of gpspacket.so, so I guess we're the first
people to build this version for non-386 architectures.

Another thing is that I needed to run ldconfig on my 770 after
installing it so /usr/sbin/gpsd could find libgps.sp.16.  I'm
fiddling around with postinst.ex right now (I assume that's where
you do that).
Date: 2007-05-06 04:49
Sender: Kees Jongenburger

After unpacking the tar.gz  gpspacket.so already exists. I guess
this file is in the tar.

now it fails differently:

creating build/temp.linux-arm-2.3
/scratchbox/compilers/host-gcc/bin/gcc
-specs=/scratchbox/compilers/host-gcc/host-gcc.specs -pthread
-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -I/scratchbox/tools/include/python2.3 -c hex.c -o
build/temp.linux-arm-2.3/hex.o
unable to execute /scratchbox/compilers/host-gcc/bin/gcc: No
such file or directory
error: command '/scratchbox/compilers/host-gcc/bin/gcc' failed
with exit status 1
make[2]: *** [gpspacket.so] Error 1
make[2]: Leaving directory
`/home/keesj/mud-builder/build/gpsd/gpsd-2.34'
make[1]: *** [all] Error 2
make: *** [build-stamp] Error 2
make[1]: Leaving directory
`/home/keesj/mud-builder/build/gpsd/gpsd-2.34'
+++ Calculating dependencies to copy
to [/home/keesj/mud-builder/upload]

Date: 2007-05-06 03:39
Sender: Matthew Andrew

running "./mud get helloworld; ./mud compile helloworld"
works as expected - it builds an arm executable:
[sbox-SDK_ARMEL: ~/mud-builder] > file
build/helloworld/helloworld-0.1/helloworld
build/helloworld/helloworld-0.1/helloworld: ELF 32-bit LSB executable,
ARM, version 1 (SYSV), for GNU/Linux 2.4.17, dynamically linked
(uses shared libs), not stripped

So it's something to do with gpsd or my config or maybe mud itself
(ie, it's probably not my scratchbox).

There's two copies of gpspacket.so in the tree.  one's
~/mud-builder/build/gpsd/gpsd-2.34/gpspacket.so and one's
~/mud-builder/build/gpsd/gpsd-2.34/debian/gpsd/usr/lib/python2.3/
site-packages/gpspacket.so.  Neither's a symlink to the other,
and they've got different inode numbers, so no hardlinks.  Same
file size and both are unstripped intel 386 shared libs.
Date: 2007-05-06 03:13
Sender: Matthew Andrew

[sbox-SDK_ARMEL: ~/mud-builder] > file
build/gpsd/.build/debian/gpsd/usr/lib/python2.3/site-packages/gps
packet.so
build/gpsd/.build/debian/gpsd/usr/lib/python2.3/site-packages/gps
packet.so: ELF 32-bit LSB shared object, Intel 80386, version
1 (SYSV), not stripped

Which seems rather odd (the intel 386 part), since it's clearly
using the arm target.  Either something's misconfigured or I
misunderstand something about the scratchbox build process or
quite possibly both.  Any hints?
Date: 2007-05-05 18:15
Sender: Kees Jongenburger

but is there a command to get mud
to build and package and not delete the source tree?  
yes
first mud get bla
then mud compile bla
also look at this documentation.

http://mud-builder.garage.maemo.org/docs/index.php?id=creating

greetings
Date: 2007-05-05 17:55
Sender: Matthew Andrew

This was all attempted on the scratchbox for os2006-39-14.  It
builds debs properly for my tablet's os, so I don't want to upgrade
my tablet nor my scratchbox.  Feel free to test against a newer
scratchbox and report here.

I see that there's a "./mud get blah" that will just
get and unpack the source, but is there a command to get mud
to build and package and not delete the source tree?  I wanna
run strip on gpspacket.so manually and see what's up.
Date: 2007-05-05 17:52
Sender: Matthew Andrew

here's the full output

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
File Added109: gpsd_2.34_armel.deb2007-05-11 22:01mzandrew
assigned_tonone2007-05-11 09:44keesj
File Added105: gpsd.patch2007-05-07 08:46mzandrew
File Added104: gpsd.log2007-05-05 17:52mzandrew
File Added103: gpsd.xml2007-05-05 17:51mzandrew

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment