[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: (ITS#5215) Use of ln is hardcoded in some files



OK, forget about my remark on Cygwin/MinGW.
However, you should update the "Porting OpenLDAP" FAQ to mention MSYS.

Then with MSYS, I get an error when running make on servers/slapd Makefile:
in case there is no extra LDFLAG, the lines 
	@for i in $(LDFLAGS) ; do \
	    path=`expr "$$i" : "-L\(.*\)"`; \
	    if test $$? != 0; then continue; fi; \
	    paths="$$paths $$path"; \
	done; \
cause a sh error: "syntax error near unexpected token ';'"


-----Message d'origine-----
De : Howard Chu [mailto:hyc@symas.com] 
Envoyé : mercredi 7 novembre 2007 04:08
À : emmanuel.duru@atosorigin.com
Cc : openldap-its@openldap.org
Objet : Re: (ITS#5215) Use of ln is hardcoded in some files

emmanuel.duru@atosorigin.com wrote:
> Full_Name: Emmanuel Duru
> Version: 2.3.38
> OS: Windows
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (195.68.44.148)
> 
> 
> configure allows the use of "cp" instead of "ln", but the build/shtool
tool uses
> a hardcoded "ln" (line 1266).
> Some makefiles (libraries/liblunicode, libraries/libldap_r and
> servers/slapd/back-hdb) use a hardcoded "-s" option. This is a problem on
> Windows because in cygwin environment "cp -s" behaves the same way as "ln
-s".
> The use of "ln" is not welcome here because it creates a Windows shortcut,
which
> is not understood by mingw compiler.

We only support the MSYS build environment on Windows.

If you'd like to submit a patch to address this issue that doesn't break the

other platforms, we can look at incorporating it.
-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/