Message-Id: <4.3.2.7.0.20000807185820.00ab9b50@mail.subdimension.com> X-Sender: matt DOT l AT mail DOT subdimension DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 07 Aug 2000 19:15:29 -0700 To: djgpp AT delorie DOT com From: Matt Lewandowsky Subject: Re: Uh oh. Another newbie. (Sorta...) In-Reply-To: References: <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20000805192349 DOT 00ab2a60 AT mail DOT subdimension DOT com> Mime-Version: 1.0 Content-Type: text/plain Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At 11:44 PM 8/5/00, Eli Zaretskii wrote: >On Sat, 5 Aug 2000, Matt Lewandowsky wrote: >[SNIPPED] > > configure:1198: checking for initscr in -lcurses > > configure:1217: gcc -o conftest -g -O2 conftest.c -lcurses 1>&5 > > d:/djgpp/bin/ld.exe: cannot find -lcurses > >This is your problem: why doesn't GCC find libcurses.a in your lib >subdirectory? Do you have libcurses.a in there? What happens if you try >the following from the command line? > > gcc -o foo foo.c -lcurses > >(where foo.c is any C source file). > > > This doesn't look right to me... is /djgpp/lib not in the LIBPATH by > default? > >%DJDIR%/lib is searched by the linker by default, otherwise the configure >script would not be able to link any of the programs it tries. You need >to make sure that libcurses.a is in the same directory as libc.a. OK. Now, I have a related problem... I got the program I gave the previous snippet from to get past configure. (Now I have to fix portability issues...) However, I have one I thought would be easier to get past this spot. I'm kinda amazed theres no termcap/terminfo support under DJGPP... Are there any compatible implementations I could build? (I didn't find anything in the FAQ about this, either. I guess I'm just having more problems than anyone should...) And I have to figure out if PDCurses does, in fact, support setupterm and tgetent. (It is apparently trying to be ncurses-compatible...) I'm sorry to have to ask so many questions, but there's a bit of a learning curve if you're porting existing software, apparently. :/ Thanks again, - --Matt Relevant snippet from ./configure: checking for setupterm in -lncurses... no checking for setupterm in -ltinfo... no checking for setupterm in -lcurso... no checking for tgetent in -lcurso... no checking for tgetent in -ltermlib... no checking for tgetent in -ltermcap... no configure: error: Cannot find tgetent. Build will fail without it. lewellyn AT mattlap:177$ And config.log: configure:2060: checking for setupterm in -lncurses configure:2079: gcc -o conftest -g -O2 conftest.c -lncurses -lm 1>&5 d:/djgpp/bin/ld.exe: cannot find -lncurses collect2: ld returned 1 exit status configure: failed program was: #line 2068 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char setupterm(); int main() { setupterm() ; return 0; } configure:2124: checking for setupterm in -ltinfo configure:2143: gcc -o conftest -g -O2 conftest.c -ltinfo -lm 1>&5 d:/djgpp/bin/ld.exe: cannot find -ltinfo collect2: ld returned 1 exit status configure: failed program was: #line 2132 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char setupterm(); int main() { setupterm() ; return 0; } configure:2162: checking for setupterm in -lcurso configure:2181: gcc -o conftest -g -O2 conftest.c -lcurso -lm 1>&5 d:/djgpp/tmp\ccqakyyz.o: In function `main': conftest.c:2177: undefined reference to `setupterm' collect2: ld returned 1 exit status configure: failed program was: #line 2170 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char setupterm(); int main() { setupterm() ; return 0; } configure:2200: checking for tgetent in -lcurso configure:2219: gcc -o conftest -g -O2 conftest.c -lcurso -lm 1>&5 d:/djgpp/tmp\ccvhoJPW.o: In function `main': conftest.c:2215: undefined reference to `tgetent' collect2: ld returned 1 exit status configure: failed program was: #line 2208 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgetent(); int main() { tgetent() ; return 0; } configure:2238: checking for tgetent in -ltermlib configure:2257: gcc -o conftest -g -O2 conftest.c -ltermlib -lm 1>&5 d:/djgpp/bin/ld.exe: cannot find -ltermlib collect2: ld returned 1 exit status configure: failed program was: #line 2246 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgetent(); int main() { tgetent() ; return 0; } configure:2276: checking for tgetent in -ltermcap configure:2295: gcc -o conftest -g -O2 conftest.c -ltermcap -lm 1>&5 d:/djgpp/bin/ld.exe: cannot find -ltermcap collect2: ld returned 1 exit status configure: failed program was: #line 2284 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgetent(); int main() { tgetent() ; return 0; } -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use iQA/AwUBOY9tQOoMko8dOmunEQJhDwCg7wrbe5hq4DK1JeMGQTquKgEn3cUAnjaj bJZT5DXZuCzWl+RPnL5aXL18 =kJQk -----END PGP SIGNATURE-----