[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA: Problems building gaf under msys / WinXP



I am in the process of compiling and linking gaf release 20021103 under
windows XP.  I have stumbled into several problems:

1. bindtextdomain, textdomain, and gettext were undefined
The first is where the Makefile for gschem/src does not seem to include the
libintl.a library when linking.  That library is built, but does not
included on the linker command line in src/Makefile.

I managed to hack out a solution by directly modifying the Makefile, but
would like some input on the correct way to make this change.  Of course I
could be just making some mistake; if so please correct me.

I modified src/Makefile so that    LIBS = -L../intl -llibintl

2. snprintf was undefined in src/i_basic.c

Changed snprintf to _snprintf.

3. fork was undefined
I really don't feel like figuring out fork() under msys   :^0
Changed the following line in src/i_callbacks.c:
  if ((pid = fork()) < 0) {
to:
  if ((pid = -1) < 0) {

I have no idea what functionality I just broke!

4. geda-utils-20021103/src/sarlacc_schem.c would not link.
geda-utils-20021103/src/sarlacc_schem.c
Changed line "sarlacc_schem_LDADD =" to "sarlacc_schem_LDADD = $(LIBERTY)"
in Makefile to pull in getopt()
Renamed snprintf to _snprintf

5. geda-utils-20021103/src/olib.c would not compile or link.
Changed line "olib_LDADD =" to "olib_LDADD = $(LIBERTY)" in Makefile to pull
in getopt()
Added #include <getopt.h> to olib.c
Renamed snprintf to _snprintf

6. geda-utils-20021103/gschlas/gschlas.c would not link.
Added $(LIBERTY) to the "gschlas_LDADD =" line in Makefile to pull in
getopt()

Michael Stovenour