This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin setup crashes


Manu wrote:
> Anyway, I tried to build the CVS sources, but "setup" doesn't link:
>
> linking setup.exe
> [...]
> c:/Dev/Sources/Cygwin-Setup/build/libgetopt++/src/OptionSet.cc:76:
> undefined reference to `getopt_long'
> c:/Dev/Sources/Cygwin-Setup/build/libgetopt++/src/OptionSet.cc:91:
> undefined reference to `optarg'
> c:/Dev/Sources/Cygwin-Setup/build/libgetopt++/src/OptionSet.cc:95:
> undefined reference to `optind'
> c:/Dev/Sources/Cygwin-Setup/build/libgetopt++/src/OptionSet.cc:96:
> undefined reference to `optind'
> [..]
>
> Strange, since I have libgetopt installed.
>
> I have done "./libgetopt++/bootstrap.sh", then,
>
> "./configure -C --enable-dependencies --disable-shared \
> --build=i386-pc-mingw32 'CC=gcc -g' 'CXX=g++ -g' \
> --enable-maintainer-mode && make"
>
> libgetopt++/src/getopt.c is not compiled, my "MinGW/lib/getopt.a"
> is not linked with libgetopt++.

You are confused with your configure line. Your --build flag is very
incorrect.

Either: Drop the --build flag, use the rest as-is to build a cygwin1.dll
dependent version of setup.

Or: Use the configure line as-is from
http://sources.redhat.com/cygwin-apps/setup.html.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]