With additional help from Matthew, I was able to get getopt loaded. I ended up manually adding -liberty at the end of the first step of the ivl.exe link. Thank you, Matthew!
The configure was not picking up liberty. Steve's mingw.txt specified the following before the configure
$ CPPFLAGS="-Id:/gnuwin32/include -Id:/mingw-packages/include"
$ LDFLAGS="-Ld:/gnuwin32/lib -Ld:/mingw-packages/include"
$ export CPPFLAGS LDFLAGS
$ ./configure --prefix=d:/iverilog
The second half of LDFLAGS does not look right to me. Should it not be -Ld:/mingw-packages/lib?
Also, there are two libiberty.a here:
c:/cygwin/lib/libiberty.a
c:/mingw/lib/libiberty.a
Which is the correct one ivl build needs? Should these be included in the flags above as...
$ CPPFLAGS="-Id:/gnuwin32/include -Id:/mingw/include -Id:/mingw-packages/include"
$ LDFLAGS="-Ld:/gnuwin32/lib -Ld:/mingw/lib -Ld:/mingw-packages/include"
Back to my problem:
I am still getting the error at the first linkstep of ivl.exe (this error was always there)
lexor.o: In function `Z14VL_init_bufferP15yy_buffer_stateP6_iobuf':
c:/ivl/v81/lexor.cc:2409: undefined reference to `isatty(int)'
make: *** [ivl.exe] Error 1
There are many libs which have isatty defined, I tried adding one by one all of these to the link step, but with no luck. Anybody knows which lib has the needed isatty()?
Cordially,
Chacko
On Mon, 4 Jul 2005 01:47:09 -0700, Matthew Ballance wrote:
getopt comes from libiberty.a - at least on Mingw. Here are my directions for building IVI under Mingw (I use Mingw instead of Cygwin).
- install gperf-3.0.1 (from your favorite GNU mirror)
- install bison-2.0-MSYS from the mingw site
- Create 'man' and 'ps2pdf' shell scripts. Each of these scripts is:
#!/bin/sh
echo ""
Seems to build for me...
Regards,
Matthew
- Re: gEDA: Win compile help please Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Need help resolving a scheduling contr... John Sanguinetti
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradiction Stephen Brickles
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradic... Anthony J Bybell
- Re: gEDA: Need help resolving a scheduling contradic... Hamish Moffatt
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradiction geda