>
>...I am consistently getting a linking error towards what
> appears to be the end...
>
. . . .
> libtool: link: cannot find the library `' or unhandled argument
> `and'
> make[2]: *** [libcfengine.la] Error 1
> make[2]: Leaving directory `/cygdrive/c/Documents and
> Settings/lschierer/Desktop/cfengine-2.2.7/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/cygdrive/c/Documents and
> Settings/lschierer/Desktop/cfengine-2.2.7/src'
> make: *** [all-recursive] Error 1
>
You are getting bitten by the Windows/Mac world's permissive
attitiude towards the use of whitespace in file and directory names,
versus the Unix (and therefore cygwin, I guess) desire to use all
whitespace as a separator between tokens on the command line.
cygwin is not regarding "Documents and Settings" as the name of a
directory or folder. Instead, it sees the space after the word "Documents"
and decides that that is the end of the command line being passed to make,
or link or whatever.
You need to enclose "Documents and Settings" in enough double
quotes, single quotes, escaped double quotes, escaped single quotes, or
who knows what-all else, wherever it appears in your config scripts, so
that it's enclosed in quotes (probly single quotes) when finally passed to
the link command.
Yours,
(George) Kurt Reimer
C119K, x3719
On Sun, 22 Jun 2008, Luke Schierer wrote:
> Hi,
> I am trying to compile cfengine 2.2.7 on cygwin. I've installed gcc,
> make, bison, openssl, openssl-devel, and a bunch of other packages
> that I thought might conceivably be related, but I am consistently
> getting a linking error towards what appears to be the end of the
> compile. Configure completed fine, telling me to to run make/gmake
> after creating the makefiles.
>
> Any help would be greatly appreciated.
>
> Luke
>
> gcc -DHAVE_CONFIG_H -I. -I/usr/include/db4 -I/usr/include -g -O2
> -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
> -I/usr/include/db4 -fPIC -g -O2 -I/u
> sr/include/db4 -MT libcfengine_la-scli.lo -MD -MP -MF
> .deps/libcfengine_la-scli.Tpo -c scli.c -o libcfengine_la-scli.o
> scli.c:1: warning: -fPIC ignored for target (all code is position
> independent)
> scli.c: In function `SCLIScript':
> scli.c:50: warning: 'error' might be used uninitialized in this
> function
> mv -f .deps/libcfengine_la-scli.Tpo .deps/libcfengine_la-scli.Plo
> /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wreturn-type
> -Wmissing-prototypes -Wuninitialized -g -O2 -I/usr/include/db4 -fPIC
> -g -O2 -I/usr/include/d
> b4 -version-info 1:0:0 -no-undefined -o libcfengine.la -rpath
> /usr/local/lib libcfengine_la-init.lo libcfengine_la-modules.lo
> libcfengine_la-alerts.lo libcfeng
> ine_la-report.lo libcfengine_la-client.lo libcfengine_la-ip.lo
> libcfengine_la-ipname.lo libcfengine_la-instrument.lo
> libcfengine_la-process.lo libcfengine_la-ti
> meout.lo libcfengine_la-ifconf.lo libcfengine_la-image.lo
> libcfengine_la-item.lo libcfengine_la-item-ext.lo
> libcfengine_la-item-file.lo libcfengine_la-2Dlist.lo
> libcfengine_la-globals.lo libcfengine_la-classes.lo
> libcfengine_la-misc.lo libcfengine_la-parse.lo
> libcfengine_la-functions.lo libcfengine_la-edittools.lo libc
> fengine_la-patches.lo libcfengine_la-install.lo
> libcfengine_la-link.lo libcfengine_la-tidy.lo
> libcfengine_la-filedir.lo libcfengine_la-eval.lo libcfengine_la-mo
> des.lo libcfengine_la-sockaddr.lo libcfengine_la-chflags.lo
> libcfengine_la-locks.lo libcfengine_la-mount.lo
> libcfengine_la-macro.lo libcfengine_la-filenames.lo
> libcfengine_la-varstring.lo libcfengine_la-wildcard.lo
> libcfengine_la-cfparse.lo libcfengine_la-comparray.lo
> libcfengine_la-read.lo libcfengine_la-checksums.lo
> libcfengine_la-proto.lo libcfengine_la-filters.lo
> libcfengine_la-copy.lo libcfengine_la-repository.lo
> libcfengine_la-rotate.lo libcfengine_la-errors.lo libcfeng
> ine_la-cflex.lo libcfengine_la-net.lo libcfengine_la-df.lo
> libcfengine_la-log.lo libcfengine_la-crypto.lo
> libcfengine_la-popen.lo libcfengine_la-popen_def.lo li
> bcfengine_la-sensible.lo libcfengine_la-acl.lo
> libcfengine_la-dce_acl.lo libcfengine_la-nameinfo.lo
> libcfengine_la-strategies.lo libcfengine_la-granules.lo libc
> fengine_la-methods.lo libcfengine_la-dtypes.lo
> libcfengine_la-state.lo libcfengine_la-checksum_db.lo
> libcfengine_la-expand-files.lo libcfengine_la-expand-tidy.l
> o libcfengine_la-expand-image.lo libcfengine_la-expand-editfiles.lo
> libcfengine_la-package.lo libcfengine_la-scli.lo -L../pub -lcfpub
> -lpthread -lm
> mkdir .libs
> libtool: link: cannot find the library `' or unhandled argument
> `and'
> make[2]: *** [libcfengine.la] Error 1
> make[2]: Leaving directory `/cygdrive/c/Documents and
> Settings/lschierer/Desktop/cfengine-2.2.7/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/cygdrive/c/Documents and
> Settings/lschierer/Desktop/cfengine-2.2.7/src'
> make: *** [all-recursive] Error 1
>
> [EMAIL PROTECTED] ~/Desktop/cfengine-2.2.7
> $
>
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
>
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine