This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

What to include when creating a distribution using cygwin?


Hi...

I'm porting our research group's software to Windows. This is written in
ANSI C, and uses Tcl and Tk. After a bit of effort, things seem to be
working fairly well now (thanks for creating cygwin - it is making Windows
a less painful experience for me! :).

The software runs well under my cygwin/bash environment. However I would
like to be able to package the thing up so that people can install it
without setting up their own cygwin environment. I'm planning on using the
GkSetup install builder (see http://www.gkware.com/). I'm aware that this
will mean that our software will have to be GPL'd.

I'm attempting to discover which bits need including in the package along
with the executable that I have compiled. Doing objdump -p on the
executable reveals dependencies on CYGWINB19.DLL, KERNEL32.DLL,
CYGTCL80.DLL and CYGTK80.DLL.

To simulate this, I copied these four files into the same directory as the
executable, and ran it. Unfortunately this causes "invalid page fault in
module <unknown> at 0000:cc267bb8. Running it under gdb is slightly more
illuminating - I include the output with backtrace below. It all seems to
fall over in something called from cygwin_crt0 somewhere.

What am I missing?

Apologies for subscribing and jumping in straight away with a question, but
I have been reading many articles from the archives today with no
success. Also apologies for my lack of knowledge on Windows - I'm mainly a
UNIX type bod.

Output from gdb:

(gdb) run
Starting program: /Ash/PhD/Tkeden/pctkeden/tkeden.exe
7fce0000:/WINDOWS/SYSTEM/SHELL32.DLL
bfb70000:/WINDOWS/SYSTEM/COMCTL32.DLL
70bd0000:/WINDOWS/SYSTEM/SHLWAPI.DLL

[failed reading symbols from DLL]
"/WINDOWS/SYSTEM/COMDLG32.DLL": error reading line numbers

66300000:/ASH/PHD/TKEDEN/PCTKEDEN/CYGTK80.DLL
66000000:/ASH/PHD/TKEDEN/PCTKEDEN/CYGTCL80.DLL
bff20000:/WINDOWS/SYSTEM/GDI32.DLL
bff50000:/WINDOWS/SYSTEM/USER32.DLL
bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL
bfea0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
10000000:/ASH/PHD/TKEDEN/PCTKEDEN/CYGWINB19.DLL

Program received signal SIGSEGV, Segmentation fault.
0xcc267bb8 in ?? ()
(gdb) bt
#0  0xcc267bb8 in ?? ()
#1  0x10027907 in _size_of_stack_reserve__ ()
#2  0x1004eb92 in _size_of_stack_reserve__ ()
#3  0x100448f7 in _size_of_stack_reserve__ ()
#4  0x10044962 in _size_of_stack_reserve__ ()
#5  0x10017737 in _size_of_stack_reserve__ ()
#6  0x10017a49 in _size_of_stack_reserve__ ()
#7  0x100305a8 in _size_of_stack_reserve__ ()
#8  0x100068d6 in _size_of_stack_reserve__ ()
#9  0x10006b9c in _size_of_stack_reserve__ ()
#10 0x43498e in cygwin_crt0 ()
(gdb)

Thanks very much for any help.

Ash.

-- 
         Ashley Ward - Graduate Teaching Assistant - PhD year 1
    ashley@dcs.warwick.ac.uk - http://www.dcs.warwick.ac.uk/~ashley/
Room 102, Department of Computer Science, University of Warwick, Coventry

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]