Mail Archives: cygwin/2006/06/15/13:31:33
Eric,
I think that I have found the problem. In the file lib/Makefile.am, you
have
libcoreutils_a_SOURCES = \
allocsa.c allocsa.h \
euidaccess.h \
exit.h \
fprintftime.c fprintftime.h \
full-read.c full-read.h \
full-write.c full-write.h \
getaddrinfo.h \
gettext.h \
localcharset.c localcharset.h \
mbchar.h \
mbswidth.c mbswidth.h \
mbuiter.h \
readtokens0.c readtokens0.h \
strcase.h \
strnlen1.c strnlen1.h \
strstr.h \
time_r.c time_r.h \
unicodeio.c unicodeio.h \
verify.h \
xalloc-die.c \
xgethostname.c xgethostname.h \
xmemcoll.c xmemcoll.h \
xstrndup.c xstrndup.h \
xstrtoimax.c \
xstrtoumax.c
libcoreutils_a_SOURCES += \
printf-args.h \
printf-parse.h \
vasprintf.h \
vasnprintf.h \
cygwin.c cygwin.h
Somehow, when lib/Makefile is generated by configure, cygwin.c is not
included in the Makefile. I did not have automake installed and a
warning has been issued during make. I have tried to install automake
and rerun configure but I still have the same result where cygwin.c is
not compiled.
Greetings,
Olivier Langlois
http://www.olivierlanglois.net
> > -----Original Message-----
> >
> > > When compiling this package, I receive this error message from the
> > linker:
> > >
> > > gcc -std=gnu99 -g -O2 -o cp.exe cp.o copy.o cp-hash.o
> > ../lib/libcoreutils.a
> > > ../lib/libcoreutils.a
> > > copy.o:copy.c:(.text+0xefd): undefined reference to
> `_cygwin_spelling'
> > > copy.o:copy.c:(.text+0x2b38): undefined reference to
> `_cygwin_spelling'
> > > collect2: ld returned 1 exit status
> > >
> > > Does someone have any idea about what is wrong?
> >
> > It sounds like you did not properly run the
> /usr/src/coreutils-5.96-1.sh
> > script to prep the source with my downstream patches.
> cygwin_spelling()
> > is a function I wrote, provided in lib/cygwin.c which is part of my
> patch,
> > and should be linked in to lib/libcoreutils.a if the package is
> properly
> > re-autotooled during the prep stage.
> >
> > --
> > Eric Blake
> > volunteer cygwin coreutils maintainer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -