From owner-freebsd-ports@FreeBSD.ORG Mon Aug 16 08:00:50 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23B9510656A9 for ; Mon, 16 Aug 2010 08:00:50 +0000 (UTC) (envelope-from culot@0xd0.org) Received: from 0xd0.org (0xd0.org [91.121.92.146]) by mx1.freebsd.org (Postfix) with ESMTP id 11B408FC0C for ; Mon, 16 Aug 2010 08:00:48 +0000 (UTC) Received: from 0xd0.org (doudou.0xd0.org [172.16.0.254]) by 0xd0.org (8.14.4/8.14.4) with ESMTP id o7G80WBc071558; Mon, 16 Aug 2010 10:00:32 +0200 (CEST) (envelope-from culot@0xd0.org) Received: (from culot@localhost) by 0xd0.org (8.14.4/8.14.4/Submit) id o7G80VgL071557; Mon, 16 Aug 2010 10:00:31 +0200 (CEST) (envelope-from culot) Date: Mon, 16 Aug 2010 10:00:31 +0200 From: Frederic Culot To: perryh@pluto.rain.com Message-ID: <20100816080031.GB15226@culot.org> References: <20100815075812.GA15226@culot.org> <4c6896d4.3pdxwnrQ856zJXYK%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4c6896d4.3pdxwnrQ856zJXYK%perryh@pluto.rain.com> X-PGP-Key: http://culot.org/public/pgp-key.txt User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports@freebsd.org Subject: Re: Feedback on wanted port: obskurator X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 08:00:50 -0000 Thanks for your feedback but unfortunately the result is the same even if I provide the prototype for printf in the source file. Frederic > Frederic Culot wrote: > > > Following the links on the ports tasks wiki page I found > > 'obskurator' to be a wanted port ... so I gave it a try > > and report about it here. > > > > obskurator is supposed to obfuscate source code by changing > > variable names ... > > I believe the software itself is unusable and should not be > > added to the ports tree in its current state. Indeed, I wrote a > > simple code to test the resulting obfuscated program generated > > by obskurator and it would not compile. > > > > Here is my test code: > > > > ----- > > #include > > > > int my_int1; > > > > int > > main (void) > > { > > char *my_txt1 = "Hello world"; > > > > printf ("first var: %d\n", my_int1); > > printf ("second var: %s\n", my_txt1); > > > > return 0; > > } > > ----- > > > > and obskurator transformed it into the following: > > > > ----- > > #include > > > > int my_int1; > > > > int > > main (void) > > { > > char *x1 = "Hello world"; > > > > x2 ("first var: %d\n", my_int1); > > x2 ("second var: %s\n", x1); > > > > return 0; > > } > > ----- > > > > That is obskurator believed printf(3) was a user-defined variable > > and replaced it with 'x2', which makes the resulting program > > impossible to compile. > > Does it by any chance work properly if you provide the prototype > for printf in the source file, instead of depending on the one > that should be provided by the #included header file? If it does, > a possible w/a might be to run the program through CPP first, and > then through obskurator. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"