Date: Wed, 13 Aug 2008 11:28:25 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: unga888@yahoo.com Cc: freebsd-stable@FreeBSD.ORG Subject: Re: sysinstall compilation issue Message-ID: <200808130928.m7D9SPmG027548@lurza.secnetix.de> In-Reply-To: <268893.22415.qm@web57009.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Unga wrote: > > Oliver Fromme <olli@lurza.secnetix.de> wrote: > > > Unga <unga888@yahoo.com> wrote: > > > > [...] > > > > What is wrong at my end? > > > > > > > > Note, I linked the rtermcap with ncursesw > > > > libraries, can that be the cause? Any ideas? > > > > > > Yes, that's the cause. Why did you do that? > > > > > > FreeBSD's ncurses port contains a patch so the > > > tgetent() function (which is used by rtermcap) > > > returns the actual termcap entry in the buffer. > > > The original ncurses code (which is terminfo- > > > based) doesn't do that. > > > > > > When you linked rtermcap with the wrong library, > > > you restored the original behaviour of tgetent(), > > > so the output of rtermcap was empty, so file2c > > > produced invalid source. > > > > Sorry for my late reply on this. I was not well during > > weekend, an eye ache due to over work :( Sorry to hear that. I hope you're better now. > > Here is the situation at my end, no matter whether I link > > with ncurses widec libs or non-widec libs, its still return > > the same code as above I mentioned. > > > > Possible causes can be: > > 1. The way I compile and install ncurses is not correct. > > 2. OR some essential files required are missing > > 3. OR there can be an other option Maybe my first response wasn't clear enough. So let me explain it again: To compile sysinstall correctly you must use the standard ncurses library from the base system. Anything else WILL NOT WORK. I already explained the reason for that in detail in my previous response (quoted above). > So the question is, do ncurses and ncurses-devel ports > do the same thing as ncurses in base system for the > following statement? > TERMCAP=/usr/src/usr.sbin/sysinstall/../../share/termcap/termcap.src ./rtermcap ansi | file2c 'const char termcap_ansi[] = {' ',0};' >> makedevs.c No, they don't do the same thing. You could have saved yourself some time if you had read my first response more carefully. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd $ dd if=/dev/urandom of=test.pl count=1 $ file test.pl test.pl: perl script text executable
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808130928.m7D9SPmG027548>