public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* FW: Need help to compile coreutils-5.96
@ 2006-06-14 23:18 Olivier Langlois
  0 siblings, 0 replies; 6+ messages in thread
From: Olivier Langlois @ 2006-06-14 23:18 UTC (permalink / raw)
  To: cygwin

Hi,

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?

Thank you,
Olivier Langlois
http://www.olivierlanglois.net


--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: FW: Need help to compile coreutils-5.96
@ 2006-06-16 16:48 Eric Blake
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Blake @ 2006-06-16 16:48 UTC (permalink / raw)
  To: Olivier Langlois; +Cc: cygwin

> 
> I have tried to rerun configure prep after installing automake but it
> did not do anything. The missing step was to execute autoreconf. I have
> no clue what this command does but that is what was needed.

autoreconf runs both automake and autoconf, as needed.

> 
> Since you are maintaining the package, I suggest adding a small comment
> in the INSTALL file about this issue. It would probably help others that
> might have the same problem that I had.

I already did - quoting /usr/share/doc/Cygwin/coreutils-5.96.README:

Additional build conditions (these or newer):
  autoconf2.5-2.59-2
  automake1.9-1.9.6-1
  binutils-20050610-1
  bzip2-1.0.3-1
  coreutils-5.94-1
  gcc-3.4.4-1
  gettext-devel-0.14.5-1
  gnupg-1.4.2.1-1
  patch-2.5.8-8
  perl-5.8.7-5

-- 
Eric Blake

--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FW: Need help to compile coreutils-5.96
  2006-06-15 17:39 Olivier Langlois
@ 2006-06-16 12:54 ` Eric Blake
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Blake @ 2006-06-16 12:54 UTC (permalink / raw)
  To: cygwin, olanglois

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Olivier Langlois on 6/15/2006 11:30 AM:
> Eric,
> 
> I think that I have found the problem. In the file lib/Makefile.am, you
> have
> 
> 
> 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.

That warning was the key.  Automake has to be run during the prep state.
Running configure is not enough; you should try running 'autoreconf' prior
to configure, to guarantee that you pick up changes to Makefile.am.  Or,
now that you have automake (and I hope autoconf) installed, rerun the prep
stage.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEkqiT84KuGfSFAYARAptxAJ44ayhByTLIanY6JxOg5EKcOg9NlgCfYeRD
u51QsNeJDv5KVxXG22nuupE=
=UrZQ
-----END PGP SIGNATURE-----

--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: FW: Need help to compile coreutils-5.96
@ 2006-06-15 17:39 Olivier Langlois
  2006-06-16 12:54 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier Langlois @ 2006-06-15 17:39 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: FW: Need help to compile coreutils-5.96
@ 2006-06-15 15:29 Olivier Langlois
  0 siblings, 0 replies; 6+ messages in thread
From: Olivier Langlois @ 2006-06-15 15:29 UTC (permalink / raw)
  To: cygwin

Hi,

What you say makes sense. I have run coreutils-5.96-1.sh first and it
did not complete correctly because I did not have patch installed. I
have downloaded patch and then executed the script again thinking that
it would overwrite what the first attempt did. I will try to redo the
whole process from scratch and If I still have the problem, I'll come
back to report it.

BTW, it is the first time I try to compile a cygwin package and I'm
really amazed how easy it is. I used to have bad experiences with
compiling stuff on Unix but with your package, everything went very
smooth and flawlessly except for my small glitch.

Nice job!

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: FW: Need help to compile coreutils-5.96
@ 2006-06-15  1:50 Eric Blake
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Blake @ 2006-06-15  1:50 UTC (permalink / raw)
  To: Olivier Langlois, cygwin

> 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-16 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-14 23:18 FW: Need help to compile coreutils-5.96 Olivier Langlois
2006-06-15  1:50 Eric Blake
2006-06-15 15:29 Olivier Langlois
2006-06-15 17:39 Olivier Langlois
2006-06-16 12:54 ` Eric Blake
2006-06-16 16:48 Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).