www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <421D998A.6090404@weinberger.local> |
Date: | Thu, 24 Feb 2005 10:08:26 +0100 |
From: | Christian Weinberger <christian DOT weinberger AT muenchen-mail DOT de> |
User-Agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Cc: | =?ISO-8859-1?Q?Jo=E3o_Carmona?= <jcarmona AT convex DOT pt> |
Subject: | Re: need help with chroot with cygwin |
References: | <421CCC42 DOT 4070803 AT convex DOT pt> |
In-Reply-To: | <421CCC42.4070803@convex.pt> |
Joćo Please post to the list exclusively, so others may assist as well. I don“t have enought time and resources to answer all personal email. See my comments below. Regards, Christian Joćo Carmona schrieb: > Hi there, sorry to disturbe you. > > I retrieve your mail from a mailing list on the web. It seems that you > have achieved to compile scponly with cygwin. Can You help me? > > I trying to compile, but i'm stop on "make". > > $ make > gcc -g -O2 -I. -I. -DHAVE_CONFIG_H > -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly.o -c > scponly.c > gcc -g -O2 -I. -I. -DHAVE_CONFIG_H > -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o helper.o -c helper.c > helper.c:12:36: libgen.h: No such file or directory > helper.c: In function `substitute_known_path': > helper.c:175: warning: passing arg 1 of `strdup' makes pointer from > integer without a cast > helper.c:180: warning: passing arg 1 of `strcmp' makes pointer from > integer without a cast > make: *** [helper.o] Error 1 > $ > > Have you any idea? > > I make the following changes in this file as you suggested: > > usr/src/scponly-3.11:{509}:$ diff scponly.c scponly.c.bak > 331c331 > < char bad_winscp3str[] = "test -x /usr/sbin/sftp-server && exec > /usr/sbin/sftp-server test -x /usr/local/lib/sftp-server && exec > /usr/local/lib/sftp-server exec sftp-server"; > --- > >> char bad_winscp3str[] = "test -x /usr/lib/sftp-server && exec > > /usr/lib/sftp-server test -x /usr/local/lib/sftp-server && exec > /usr/local/lib/sftp-server exec sftp-server"; > > > But i don't understand the next step: > > /usr/src/scponly-3.11:{510}:$ diff helper.c helper.c.bak > 27a28,29 > >> #define basename g_basename >> > Simply remove (or comment) the #define > additionally comment this: > /usr/src/scponly-3.11:{513}:$ grep "libgen.h" *.c > helper.c:// #include <libgen.h> // basename > Simply remove (or comment) the #include > > Can be more explicit? > > > thank you > > Joćo Carmona > > > > > > > > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |