On Thu, 2008-10-02 at 18:29 +0100, Peter Clifton wrote:
> On Thu, 2008-10-02 at 12:13 -0500, Kipton Moravec wrote:
> > I have not compiled in Linux before so I may be doing things completely
> > wrong if so tell me what I am doing wrong.
> > 
> > I downloaded geda-utils-1.4.1 and put it in my local directory.
> > 
> > I modified the source file for convert_sym to fix some conversions from
> > my ViewDraw files.
> > 
> > Then from that directory I did a 
> > 
> > make convert_sym 
> >
> >I got two errors. The first one was a typo on I line I did not go near.
> > How is that possible? I was easily able to fix it.
> 
> If you didn't touch it, I'd suggest putting it back as was. It is
> probably indirectly due to the steps you missed...

I do not think so. Here is the code.

#ifdef HAVE_SNPRINTF
    snprintf(tmpName, MAX_TEXTLEN, "netname");
    snprintf(tmpValue, MAX_TEXTLEN, "NC");
#else
    snprintf(tmpName, "netname");  
    sprintf(tmpValue, "NC");
#endif


I changed it to:

#ifdef HAVE_SNPRINTF
    snprintf(tmpName, MAX_TEXTLEN, "netname");
    snprintf(tmpValue, MAX_TEXTLEN, "NC");
#else
/*    snprintf(tmpName, "netname"); */ /* This caused a compile error I
am guessing it should be sprintf*/
    sprintf(tmpName, "netname");       /* this was my fix - Kip */
    sprintf(tmpValue, "NC");
#endif

I guess if HAVE_SNPRINTF is defined it would never hit the bad code.

> 
> in the utils directory, you need to run "./configure"

[EMAIL PROTECTED]:/home/backup/Work/geda-utils-1.4.1/geda-utils-1.4.1/src $ 
[EMAIL PROTECTED]:/home/backup/Work/geda-utils-1.4.1/geda-utils-1.4.1/src $ cd 
..
[EMAIL PROTECTED]:/home/backup/Work/geda-utils-1.4.1/geda-utils-1.4.1
$ ./configure
Configuring geda-utils version 1.4.1.20080929
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for perl... /usr/bin/perl
checking For a working C99 __func__... __func__
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for guile... /usr/bin/guile
checking for guile-config... /usr/bin/guile-config
checking for guile-tools... /usr/bin/guile-tools
checking libguile compile flags...  
checking libguile link flags...  -lguile -lltdl  -lgmp -lcrypt -lm
-lltdl
checking Guile version >= 1.6.0... 1.8.3
checking whether scm_is_string is declared... yes
checking whether scm_is_integer is declared... yes
checking whether scm_to_int is declared... yes
checking whether scm_from_int is declared... yes
checking whether scm_is_true is declared... yes
checking whether scm_is_false is declared... yes
checking whether scm_from_locale_string is declared... yes
checking whether scm_to_locale_string is declared... yes
checking for rint in -lm... yes
checking for dlopen in -ldl... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBGEDA... no
configure: error: libgeda detection error: Requested 'libgeda >=
20080929' but version of libgeda is 20080127


I got an error in configure on the version. Is that a deal breaker?

-- 
Kipton Moravec AE5IB
"Always do right; this will gratify some people and astonish the rest."
--Mark Twain




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to