From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60193 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: require("module.so") on cygwin Date: Thu, 15 Jul 2010 12:11:51 +0200 Message-ID: <20100715101151.GA13895@gaston.couberia.bzh> References: <20100715084956.GA13629@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279188723 8249 80.91.229.12 (15 Jul 2010 10:12:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 10:12:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 15 12:12:00 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZLQ8-00086c-MI for gctc-ntg-context-518@m.gmane.org; Thu, 15 Jul 2010 12:12:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68902C9CBC; Thu, 15 Jul 2010 12:11:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sgpI7aSfJmPF; Thu, 15 Jul 2010 12:11:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9FD5EC9CBE; Thu, 15 Jul 2010 12:11:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4CC2C9CBE for ; Thu, 15 Jul 2010 12:11:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hwWP1WL5AEfp for ; Thu, 15 Jul 2010 12:11:53 +0200 (CEST) Original-Received: from smtp2b.orange.fr (smtp2b.orange.fr [80.12.242.146]) by balder.ntg.nl (Postfix) with ESMTP id 235AEC9CBC for ; Thu, 15 Jul 2010 12:11:52 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2b16.orange.fr (SMTP Server) with ESMTP id BCC4F70006C7 for ; Thu, 15 Jul 2010 12:11:52 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2b16.orange.fr (SMTP Server) with ESMTP id AF33F700053E for ; Thu, 15 Jul 2010 12:11:52 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-551-1-14-74.w92-129.abo.wanadoo.fr [92.129.125.74]) by mwinf2b16.orange.fr (SMTP Server) with ESMTP id 6FE4970006C7 for ; Thu, 15 Jul 2010 12:11:52 +0200 (CEST) X-ME-UUID: 20100715101152458.6FE4970006C7@mwinf2b16.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id E3925305F2; Thu, 15 Jul 2010 12:11:51 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60193 Archived-At: On Thu, Jul 15 2010, luigi scarso wrote: > I dont't have the answer , but > what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). > 1) Why don't you use mingw (luatex is compiled with mingw)? I switched from mingw to cygwin some time ago for several reasons. The one I remember: a lot of packages are easily available for cygwin but not for mingw. > 2) Does it work under Linux ? Yes. New results: I've built luatex under cygwin and replaced luatex.exe in my windows installation. Now it creates a pdf, but there is a stack-dump in the end: mkiv luv stats : runtime - 41.469 seconds, 1 processed pages, 1 shipped pages, 0.024 pages/second 3 [sig] luatex 3940 open_stackdumpfile: Dumping stack trace to luatex.exe.stackdump MTXrun | fatal error: return code: 34304 This is file luatex.exe.stackdump: Stack trace: Frame Function Args 0022C828 7C802542 (00000600, 0000EA60, 000000A4, 0022C91C) 0022C938 610C26D3 (00000000, 7C802600, 7C802542, 00000000) 0022CA18 610BF387 (00000000, 00000000, 00000000, 00000000) 0022CA68 610BF79B (00000F64, 0022CA90, 0022CA78, 67F0A00C) 0022CB28 610BF8C1 (00000F64, 00000006, 0022CB58, 610BF965) 0022CB38 610BF8FC (00000006, 0022CE80, 00000000, 00000000) 0022CB58 610BF965 (67F0A00C, 00000000, 6115B10C, 006BB4D8) 0022CB78 67F05531 (00810000, 67F05550, 0022CB98, 61004C69) 0022CB88 00401119 (00000000, 00000001, 0022CBC8, 6113AEE7) 0022CB98 61004C69 (6115DD10, 00000000, 00000000, 00000000) 0022CBC8 6113AEE7 (00000000, 00000000, 0022CBF8, 0042FB36) 0022CBE8 61112E0A (00000000, 00E47588, 0022CC08, 610BC8B6) 0022CBF8 61004EA1 (00000000, 00000000, 0022CC18, 0042E6D1) 0022CC08 610BC8B6 (00000000, 00E47588, 0022CC38, 00401934) 0022CC18 0042E6D1 (00000005, 00E47588, 0022CC48, 0022CC50) 0022CC38 00401934 (0022CC73, 6116CFFF, 0022CD98, 61006E73) End of stack trace (more stack frames may be present) Here a new example file for easy testing: \startbuffer[testmod.c] #include "lua.h" #include "lauxlib.h" static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1) * 100; lua_pushnumber(L, n); return 1; } static const struct luaL_Reg mylib[] = {{"test100", l_test}, {NULL, NULL}}; int luaopen_testmod(lua_State *L) { luaL_register(L, "testmod", mylib); return 1; } \stopbuffer \startbuffer[Makefile] testmod.so: testmod.c gcc -shared -o $@ $< /usr/lib/liblua.dll.a \stopbuffer \savebuffer[testmod.c][testmod.c] \savebuffer[Makefile][Makefile] \executesystemcommand{make testmod.so} \startluacode package.cpath = "?.so" require("testmod") \stopluacode \starttext bla \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________