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

Re: start.S undefined reference to `main'



Thank you very much, this has been frustrating me for months. Both of your solutions combined worked. Here's the diff:

----- Diff -----

15c15
< CFLAGS= -O2 -I/usr/include/espeak -fPIC  -DPIC -pedantic  -Wall -I/usr/include/tcl8.4
---
> CFLAGS= -O2 -I/usr/include/espeak -fPIC  -DPIC -pedantic  -Wall -I/usr/include/tcl8.4 -Wno-long-long
21,22c21,22
< tclespeak.lo: tclespeak.cpp
<       libtool --mode=compile $(CC) $(CFLAGS) -c $<
---
> tclespeak.o: tclespeak.cpp
>       $(CC) $(CFLAGS) -c $<
24,25c24,25
< libtclespeak.so: tclespeak.lo
<       libtool --mode=link $(CC) $(CFLAGS) -g -o $@ tclespeak.lo $(LIBS)  -shared
---
> libtclespeak.so: tclespeak.o
>       $(CC) $(CFLAGS) -g -o $@ tclespeak.o $(LIBS)  -shared
28c28
<       rm -f *.so *.o *.lo libtclespeak.so
---
>       rm -f *.so *.o libtclespeak.so

----------

On Sat, Jul 4, 2009 at 3:32 PM, Robert D. Crawford <rdc1x@comcast.net> wrote:
John Harris <johnallenharris@gmail.com> writes:

> I'm attempting to compile the espeak server. I had to apply some
> changes to make the code compile at all, I found it in an archived
> post, this should be fixed by default. But now there are problems
> linking.

The errors you are seeing at the end of the output look like the errors
I saw before.  Using a makefile from Tim Cross (If I remember correctly)
I figured out where I was going wrong.  Edit your makefile to remove the
calls to libtool and change each reference to *.lo to *.o.  for example,
if it called for tclespeak.lo, change it to tclespeak.o.

By the way, commenting the libtool references will not work.  Remove
them completely.

I am not positive that this is the problem.  Make sure to have a copy of
the original makefile that you are working on and pass the name of the
new file to make with the -f flag.

I hope this helps,
rdc
--
Robert D. Crawford                                      rdc1x@comcast.net

I don't like this official/unofficial distinction.  It sound, er, officious.
               -- Larry Wall in <199702221943.LAA20388@wall.org>

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".




If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive