dpkg-buildpackage fails

Asked by debianfrgr on 2012-06-24

I am trying to build package for stratagus and i am taking this at the end of procedure :

Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /home/nick/stratagus_2.2.6.orig/debian/tmp/usr/games/stratagus
-- Installing: /home/nick/stratagus_2.2.6.orig/debian/tmp/usr/bin/png2stratagus
-- Installing: /home/nick/stratagus_2.2.6.orig/debian/tmp/usr/include/stratagus-game-installer.nsi
-- Installing: /home/nick/stratagus_2.2.6.orig/debian/tmp/usr/include/stratagus-game-launcher.h
-- Installing: /home/nick/stratagus_2.2.6.orig/debian/tmp/usr/include/stratagus-maemo-extract.h
make[1]: Leaving directory `/home/nick/stratagus_2.2.6.orig/obj-x86_64-linux-gnu'
   debian/rules override_dh_install
make[1]: Entering directory `/home/nick/stratagus_2.2.6.orig'
dh_install
cp: cannot stat «debian/tmp/usr/share/doc»: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
dh_install: cp -a debian/tmp/usr/share/doc debian/stratagus-doc//usr/share/ returned exit code 1
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/home/nick/stratagus_2.2.6.orig'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

**Δεν υπάρχει τέτοιο αρχείο ή κατάλογος means there is not such a file or folder

Is this a bug?
What have i to do?
Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Stratagus Edit question
Assignee:
Pali Edit question
Last query:
2012-06-24
Last reply:
2012-06-24
Pali (pali) said : #1

Make sure you are building it with command:
$ debuild -b

If still not working, please upload full build log to pastebin.com and write link here.

debianfrgr (mpamphs-win2k) said : #2

I am trying to build with this command (Debian 64 distro)

dpkg-buildpackage -d -b -rfakeroot

Pali (pali) said : #4

dpkg-buildpackage:
-d Do not check build dependencies and conflicts.

You should avoid param '-d'. This is reason why building can fail.

debianfrgr (mpamphs-win2k) said : #5

i check-install the deps... now i am taking

dpkg-buildpackage -b -rfakeroot
dpkg-buildpackage: source package stratagus
dpkg-buildpackage: source version 2.2.6-1
dpkg-buildpackage: source changed by Pali Rohár <email address hidden>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build stratagus_2.2.6.orig
dpkg-checkbuilddeps: Unmet build dependencies: libosso-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)

but debian has not libosso

debianfrgr (mpamphs-win2k) said : #6

debian testing** i will try to install it through stable or sid

Pali (pali) said : #7

libosso-dev is needed only on maemo5. So now you can ignore this error and append '-d' flag.

debianfrgr (mpamphs-win2k) said : #8

ok now i am taking this
http://pastebin.com/MKn603t9 trying to install stargus

debianfrgr (mpamphs-win2k) said : #9

ok now i am taking this
http://pastebin.com/MKn603t9 trying to install stargus

Pali (pali) said : #10

Please compile stargus manually in debug mode (append cmake param -DCMAKE_BUILD_TYPE=Debug) and run startool under gdb. When crashed upload backtrace.

debianfrgr (mpamphs-win2k) said : #11

could you tell me how to do that?

 ./configure
bash: ./configure: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος(no file or directory)

make
make: *** No targets specified and no makefile found. Stop.

debianfrgr (mpamphs-win2k) said : #12

 gdb ./startool /media/cdrom data.sg
Excess command line arguments ignored. (data.sg)
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mpamphs/stargus_2.2.6.orig/build/startool...done.
"/media/cdrom" is not a core dump: IS Directory
(gdb)

debianfrgr (mpamphs-win2k) said : #13

without gdb
./startool '/media/cdrom0/install.exe' data.sg

Extract from "/media/cdrom0/install.exe" to "data.sg"
Using mpq list file "data.sg/mpqlist.txt"
Please be patient, the data may take a couple of minutes to extract...
Archive "/media/cdrom0/install.exe/install.exe"
Can't open /media/cdrom0/install.exe/install.exe
Could not open archive "/media/cdrom0/install.exe/install.exe", skipping
Archive "/media/cdrom0/install.exe/stardat.mpq"
Can't open /media/cdrom0/install.exe/stardat.mpq
Could not open archive "/media/cdrom0/install.exe/stardat.mpq", skipping
Fatal error: Cannot extract data

Pali (pali) said : #14

compiling stargus:
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
$ make

this will compile program startool with debug info

extracting data (under gdb + show backtrace of crash):
$ gdb -ex r -ex bt -ex q --args ./startool </path/to/cd>

replace </path/to/cd> with correct path where you have mounted starcraft CD.

debianfrgr (mpamphs-win2k) said : #15

gdb -ex r -ex bt -ex q --args ./startool '/media/cdrom0/'
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mpamphs/stargus_2.2.6.orig/build/startool...done.
Starting program: /home/mpamphs/stargus_2.2.6.orig/build/startool /media/cdrom0/
Extract from "/media/cdrom0/" to "data"
Using mpq list file "data/mpqlist.txt"
Please be patient, the data may take a couple of minutes to extract...
Archive "/media/cdrom0//install.exe"
Error: Can't open specified list: data/mpqlist.txt
MpqReadInfo failed
Could not open archive "/media/cdrom0//install.exe", skipping
Archive "/media/cdrom0//stardat.mpq"
Can't open /media/cdrom0//stardat.mpq
Could not open archive "/media/cdrom0//stardat.mpq", skipping
Fatal error: Cannot extract data
[Inferior 1 (process 29143) exited with code 01]
No stack.

Pali (pali) said : #16

copy file mpqlist.txt to directory data (in build)

debianfrgr (mpamphs-win2k) said : #17

Program received signal SIGABRT, Aborted.
0x00007ffff6eab475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007ffff6eab475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6eae6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff6ee52fb in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff6eeeb46 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007ffff6ef387c in free () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000409c9d in ConvertTileset (listfile=0x425120 "tileset\\Jungle",
    file=0x425112 "jungle/jungle")
    at /home/mpamphs/stargus_2.2.6.orig/startool.cpp:3210
#6 0x000000000040ccff in main (argc=2, argv=0x7fffffffe8f8)
---Type <return> to continue, or q <return> to quit---

debianfrgr (mpamphs-win2k) said : #18

(gdb) backtrace
#0 0x00007ffff6eab475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6eae6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff6ee52fb in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff6eeeb46 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007ffff6ef387c in free () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000409c9d in ConvertTileset (listfile=0x425120 "tileset\\Jungle",
    file=0x425112 "jungle/jungle")
    at /home/username/stargus_2.2.6.orig/startool.cpp:3210
#6 0x000000000040ccff in main (argc=2, argv=0x7fffffffe8f8)
    at /home/username/stargus_2.2.6.orig/startool.cpp:4242

Pali (pali) said : #19

Ok, thanks for report. I will look at it.

debianfrgr (mpamphs-win2k) said : #20

perhaps error in my cd?
i tried with a copy iso
without errors but no signle player or multi because of segmentation fault

 stargus
Stratagus V2.2.6, Copyright (c) 1998-2011 by The Stratagus Project and Pali Rohar
  written by Lutz Sammer, Fabrice Rossi, Vladi Shabanski, Patrice Fortier,
  Jon Gabrielson, Andreas Arens, Nehal Mistry, Jimmy Salmon, Pali Rohar,
  and others.
 https://launchpad.net/stratagus
Compile options ZLIB OPENGL

Stratagus may be copied only under the terms of the GNU General Public License
which may be found in the Stratagus source kit.

DISCLAIMER:
This software is provided as-is. The author(s) can not be held liable for any
damage that might arise from the use of this software.
Use it at your own risk.

Can't open file 'maps/(2)Challenger.smp': No such file or directory
4 CPUs detected!
Σφάλμα κατάτμησης (segmentation fault)

ps could you tell me please :
1)if wargus and stargus can play through battlenet?
2)how could i install broodwar and war2 expansion?

sorry for offtopic but i can not see any answer to these questions in web

Pali (pali) said : #21

startool is program which extract data from cd. without data stargus not working. you posted backtrace of crash, I will try to fix it.

battlenet is not supported, only network game with other wargus/stargus is working (but not with original war2/sc)

broodwar expansion is not supported, but war2 expansion (dark portal) yes.

Can you help with this problem?

Provide an answer of your own, or ask debianfrgr for more information if necessary.

To post a message you must log in.