From adam.ellwood at verizon.net Fri Nov 1 18:56:09 2002 From: adam.ellwood at verizon.net (Adam Ellwood) Date: Fri, 1 Nov 2002 13:56:09 -0500 Subject: [scponly] solaris 2.6, gcc 3.2, scponly 3.3 make issues Message-ID: <000801c281d8$57e8d170$a6f7fea9@ellwoodconsulting.com> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C281AE.6E53BF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable folks,=20 i can get the configure to run fine, now here are these issues; bash-2.02# make gcc -g -O2 -DHAVE_CONFIG_H = -DDEBUGFILE=3D'"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c = helper.c scponly.c: In function `main': scponly.c:76: `LOG_PERROR' undeclared (first use in this function) scponly.c:76: (Each undeclared identifier is reported only once scponly.c:76: for each function it appears in.) scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this function) helper.c: In function `build_arg_vector': helper.c:187: warning: assignment makes pointer from integer without a = cast helper.c: In function `expand_wildcards': helper.c:218: `GLOB_TILDE' undeclared (first use in this function) helper.c:218: (Each undeclared identifier is reported only once helper.c:218: for each function it appears in.) make: *** [scponly] Error 1 Thanks much! adam@ellwoodconsulting.com ------=_NextPart_000_0005_01C281AE.6E53BF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
folks,
 
i can get the configure to run fine, = now here are=20 these issues;
 
bash-2.02# make
gcc -g -O2 = -DHAVE_CONFIG_H=20 -DDEBUGFILE=3D'"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c = helper.c
scponly.c: In function `main':
scponly.c:76: `LOG_PERROR' = undeclared (first use in this function)
scponly.c:76: (Each = undeclared=20 identifier is reported only once
scponly.c:76: for each function it = appears=20 in.)
scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this=20 function)
helper.c: In function `build_arg_vector':
helper.c:187: = warning:=20 assignment makes pointer from integer without a cast
helper.c: In = function=20 `expand_wildcards':
helper.c:218: `GLOB_TILDE' undeclared (first use = in this=20 function)
helper.c:218: (Each undeclared identifier is reported only=20 once
helper.c:218: for each function it appears in.)
make: *** = [scponly]=20 Error 1
 
Thanks much!
 
adam@ellwoodconsulting.com
------=_NextPart_000_0005_01C281AE.6E53BF30-- From joe at sublimation.org Sun Nov 3 21:21:01 2002 From: joe at sublimation.org (joe) Date: Sun, 3 Nov 2002 13:21:01 -0800 (PST) Subject: [scponly] rsync-compat configure bug In-Reply-To: <20021030092003.GA5195@prometheus.cynapsis.cy> Message-ID: wow, really? i cant reproduce this one. --enable-rsync-compat did set RSYNC_COMPAT and PROG_RSYNC for me. one thing of interest, is rsync installed on the box in question? joe ---- PGP KEY: http://www.sublimation.org/contact.html PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2 On Wed, 30 Oct 2002, Martin Werthmoeller wrote: > Hy, > > I think there's a bug in scponly when configure with > "--enable-rsync-compat": > > prometheus:scponly-3.3$ ./configure --enable-rsync-compat > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > ... > configure: creating ./config.status > config.status: creating Makefile > config.status: creating setup_chroot.sh > config.status: creating config.h > prometheus:scponly-3.3$ make > gcc -g -O2 -DHAVE_CONFIG_H > -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c > helper.c > scponly.c:50: PROG_RSYNC' undeclared here (not in a function) > scponly.c:50: initializer element is not constant > scponly.c:50: (near initialization for commands[14].name') > > > The configure scripts will not write the line: > > #define RSYNC_COMPAT 1 > > into config.h. > > It seems, it is a common problem. I've verified this on Linux and FreeBSD. > > Greetings, > Martin Werthmoeller > _______________________________________________ > scponly mailing list > scponly@lists.ccs.neu.edu > https://lists.ccs.neu.edu/bin/listinfo/scponly > From joe at sublimation.org Sun Nov 3 21:38:13 2002 From: joe at sublimation.org (joe) Date: Sun, 3 Nov 2002 13:38:13 -0800 (PST) Subject: [scponly] scponly-3.4 Message-ID: scponly-3.4 available at http://sublimation.org/scponly just some more configure.in fixes - though i believe there are still problems... please keep reporting annything you encounter. also - the host_os checks for "irix" and "solaris" in configure are pretty hacky, if anyone knows a smarter way to do this, please let me in on it. joe ---- PGP KEY: http://www.sublimation.org/contact.html PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2 From sven at telelev.net Mon Nov 4 07:42:54 2002 From: sven at telelev.net (Sven Hoexter) Date: Mon, 4 Nov 2002 08:42:54 +0100 Subject: [scponly] bug in helper.c? In-Reply-To: <20021030141616.GA699@voyager.telelev.de> References: <20021029084932.GB28778@voyager.telelev.de> <20021030141616.GA699@voyager.telelev.de> Message-ID: <20021104074254.GA10807@voyager.telelev.de> On Wed, Oct 30, 2002 at 03:16:16PM +0100, Sven Hoexter wrote: > On Tue, Oct 29, 2002 at 09:51:51PM -0800, joe wrote: Morning Joe, > > thanks for reporting this. could you tell me if #define SOLARIS_COMPAT is > > in your config.h? i'm guessing it isnt. > Jup, you're right :) The problem still exists in v3.4 Sven -- Apt-rpm packages for RedHat http://www.hoaxter.de/aptrpm/index.html Neues fuer Nerten - Stoff der der mettert http://www.bluephod.net From mw at werthmoeller.de Tue Nov 5 08:45:02 2002 From: mw at werthmoeller.de (Martin Werthmoeller) Date: Tue, 5 Nov 2002 09:45:02 +0100 Subject: [scponly] rsync-compat configure bug In-Reply-To: References: <20021030092003.GA5195@prometheus.cynapsis.cy> Message-ID: <20021105084502.GE1460@prometheus.cynapsis.cy> Am Sun, 03 Nov 2002 um 13:21 GMT -0800 schrieb joe: > > wow, really? i cant reproduce this one. --enable-rsync-compat did set > RSYNC_COMPAT and PROG_RSYNC for me. > > one thing of interest, is rsync installed on the box in question? > ARGH! On FreeBSD rsync will bei installed to /usr/local/bin/rsync, if you take the port/package of rsync. If I add /usr/local/bin to the pathlist for rsync in configure.in it will be run properly. Thx. martin! From adam at ellwoodconsulting.com Thu Nov 7 14:15:01 2002 From: adam at ellwoodconsulting.com (Adam Ellwood) Date: Thu, 7 Nov 2002 09:15:01 -0500 Subject: [scponly] scponly build Message-ID: <009801c28668$10405ed0$a6f7fea9@ellwoodconsulting.com> This is a multi-part message in MIME format. ------=_NextPart_000_0095_01C2863E.26915BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey Joe, Here is the results on Solaris 2.6, Gcc 3.2...some adds to the = configure.in needed for paths again, but the problem is still there in = the make: bash-2.02# make gcc -g -O2 -DHAVE_CONFIG_H = -DDEBUGFILE=3D'"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c = helper.c scponly.c: In function `main': scponly.c:76: `LOG_PERROR' undeclared (first use in this function) scponly.c:76: (Each undeclared identifier is reported only once scponly.c:76: for each function it appears in.) scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this function) helper.c: In function `build_arg_vector': helper.c:187: warning: assignment makes pointer from integer without a = cast helper.c: In function `expand_wildcards': helper.c:218: `GLOB_TILDE' undeclared (first use in this function) helper.c:218: (Each undeclared identifier is reported only once helper.c:218: for each function it appears in.) make: *** [scponly] Error 1 bash-2.02# =20 Thanks for your help! Adam ------=_NextPart_000_0095_01C2863E.26915BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey Joe,
 
Here is the results on Solaris 2.6, Gcc = 3.2...some=20 adds to the configure.in needed for paths again, but the problem is = still there=20 in the make:
 
bash-2.02# make
gcc -g -O2 = -DHAVE_CONFIG_H=20 -DDEBUGFILE=3D'"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c = helper.c
scponly.c: In function `main':
scponly.c:76: `LOG_PERROR' = undeclared (first use in this function)
scponly.c:76: (Each = undeclared=20 identifier is reported only once
scponly.c:76: for each function it = appears=20 in.)
scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this=20 function)
helper.c: In function `build_arg_vector':
helper.c:187: = warning:=20 assignment makes pointer from integer without a cast
helper.c: In = function=20 `expand_wildcards':
helper.c:218: `GLOB_TILDE' undeclared (first use = in this=20 function)
helper.c:218: (Each undeclared identifier is reported only=20 once
helper.c:218: for each function it appears in.)
make: *** = [scponly]=20 Error = 1
bash-2.02#         =20
 
Thanks for your help!
 
Adam
------=_NextPart_000_0095_01C2863E.26915BF0-- From sven at telelev.net Fri Nov 15 08:54:02 2002 From: sven at telelev.net (Sven Hoexter) Date: Fri, 15 Nov 2002 09:54:02 +0100 Subject: [scponly] patch to get scponly 3.4 working on Solaris 8 Message-ID: <20021115085402.GA13034@voyager.telelev.de> --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Joe, hi *, now I found the time to get scponly compiling on solaris so I hope that it's ok that I attached my patch against scponly-3.4. The only problem where two typos and a few path problems with the sunfreeware OpenSSH packages. The first typo was/is in the configure script in the os detection hack where $host_os gets a little cut down to compare it. First $host_os is cut and then safed in $temp_os but the comparison still use $host_os. The second type is in scponly.c line 82, change #elseif to #elif. (I've read this in a book - I'm very, very, very new to C and coding in general) Joe: I haven't recieved any feedback from you after the first patch so I now post it here. Maybe my mail got lost somewhere? How to use the patch Most of you should be familar with the patch programm for the rest in short copy the patch into the scponly-3.4 directory and use the following command patch -p1 < scponly-solaris.patch Now make clean && ./configure && make The patch should be attached and it's only for downloads from here: http://hoaxter.telelev.net/patches/scponly-solaris.patch So now I'm waiting for feedback if it's working, no time for further test ATM. HTH Sven -- Apt-rpm packages for RedHat http://www.hoaxter.de/aptrpm/index.html Neues fuer Nerten - Stoff der der mettert http://www.bluephod.net --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="scponly-solaris.patch" Only in scponly-3.4-sven/: Makefile Only in scponly-3.4-sven/: config.h Only in scponly-3.4-sven/: config.log Only in scponly-3.4-sven/: config.status diff -ru scponly-3.4/configure scponly-3.4-sven/configure --- scponly-3.4/configure 2002-11-03 22:13:26.000000000 +0100 +++ scponly-3.4-sven/configure 2002-11-15 09:32:41.826414000 +0100 @@ -7,6 +7,8 @@ # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. +PATH="$PATH:/usr/local/bin" + if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else @@ -1297,12 +1299,14 @@ # this temp_os is a brutal hack until i look into the proper way to do this. ie- rtfm +#echo $host_os temp_os=`echo $host_os | cut -c-7` -if test "$host_os" = solaris; then +#echo "TEMP_OS is $temp_os" +if test "$temp_os" = solaris; then cat >>confdefs.h <<\_ACEOF #define SOLARIS_COMPAT 1 _ACEOF - +#echo "Found solaris, tempos is $temp_os" fi temp_os=`echo $host_os | cut -c-4` if test "$temp_os" = irix; then @@ -2566,7 +2570,7 @@ ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh" | sed -e 's/:/ /'` +for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh:/usr/local/libexec" | sed -e 's/:/ /'` do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. diff -ru scponly-3.4/scponly.c scponly-3.4-sven/scponly.c --- scponly-3.4/scponly.c 2002-10-28 18:58:22.000000000 +0100 +++ scponly-3.4-sven/scponly.c 2002-11-15 09:29:52.496409000 +0100 @@ -78,7 +78,7 @@ #ifdef SOLARIS_COMPAT openlog(PACKAGE_NAME, logopts, LOG_AUTH); -#elseif IRIX_COMPAT +#elif IRIX_COMPAT openlog(PACKAGE_NAME, logopts, LOG_AUTH); #else if (debuglevel > 1) // debuglevel 1 will still log to syslog Only in scponly-3.4-sven/: setup_chroot.sh Only in scponly-3.4-sven/: sven-changes --0F1p//8PRICkK4MW-- From qmail at orion.8304.ch Tue Nov 19 22:48:07 2002 From: qmail at orion.8304.ch (Olivier M.) Date: Tue, 19 Nov 2002 23:48:07 +0100 Subject: [scponly] small bugs under suse linux (make jail) Message-ID: <20021119234807.K1961@orion.8304.ch> Hello, just "discovered" scponly, and it looks great :-) small things with make jail: - option "-C" make the script fails (option not existing) - sftp-server is not installed in the chroot : is that wanted? rest seems to work fine so far... thanks! Regards, Olivier -- _________________________________________________________________ Olivier Mueller - om@8304.ch - PGPkeyID: 0E84D2EA - Switzerland qmail projects: http://omail.omnis.ch - http://webmail.omnis.ch From sven at telelev.net Wed Nov 20 14:41:05 2002 From: sven at telelev.net (Sven Hoexter) Date: Wed, 20 Nov 2002 15:41:05 +0100 Subject: [scponly] rsync problems Message-ID: <20021120144105.GA7856@sven.home.hoaxter.de> Hi, I tried to compile with rsync support and what I found is the following error ./configure --enable-rsync-compat && make scponly.c:50: `PROG_RSYNC' undeclared here (not in a function) scponly.c:50: initializer element is not constant scponly.c:50: (near initialization for `commands[14].name') Ok it is opensource so I looked at source and found this after a look into scponly.c line 50 in config.h generated by the configure script: /* Rsync compatability mode */ #ifdef RSYNC_COMPAT #define PROG_RSYNC "/usr/bin/rsync" #endif Well generally this looks ok. Now I tried to look up where #define for RSYNC_COMPAT is but I could not find it. My dirty fix is to remove the #ifdef around the #define PROG_RSYNC. Any ideas how to fix this in a better way? Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html From sven at telelev.net Wed Nov 20 15:09:49 2002 From: sven at telelev.net (Sven Hoexter) Date: Wed, 20 Nov 2002 16:09:49 +0100 Subject: [scponly] small bugs under suse linux (make jail) In-Reply-To: <20021119234807.K1961@orion.8304.ch> References: <20021119234807.K1961@orion.8304.ch> Message-ID: <20021120150949.GB7856@sven.home.hoaxter.de> On Tue, Nov 19, 2002 at 11:48:07PM +0100, Olivier M. wrote: Hi, > just "discovered" scponly, and it looks great :-) > > small things with make jail: > - option "-C" make the script fails (option not existing) Hehe nice, I can not find any implementation of install that uses a -C option. All newer gnu versions don't know -c at all. The install from solaris supports -c and it's described as the following in the manpage: -c dira Install file in the directory specified by dira, if file does not yet exist. If it is found, install issues a message saying that the file already exists, and exits without overwriting it. > - sftp-server is not installed in the chroot : is that > wanted? I think that this script is just a basic setup for a chroot enviroment wich can be modified on needs. Maybe I'm too stupid but I think that there are other strange things in for example this lonely lines: if [ x = x ]; then echo "this script requires the program useradd to add your" fail "chrooted scponly user." fi What about cleaning it up and post a patch? Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html From sven at telelev.net Wed Nov 20 15:36:12 2002 From: sven at telelev.net (Sven Hoexter) Date: Wed, 20 Nov 2002 16:36:12 +0100 Subject: [scponly] small bugs under suse linux (make jail) In-Reply-To: <20021120150949.GB7856@sven.home.hoaxter.de> References: <20021119234807.K1961@orion.8304.ch> <20021120150949.GB7856@sven.home.hoaxter.de> Message-ID: <20021120153612.GA12281@sven.home.hoaxter.de> On Wed, Nov 20, 2002 at 04:09:49PM +0100, Sven Hoexter wrote: > On Tue, Nov 19, 2002 at 11:48:07PM +0100, Olivier M. wrote: > > Hi, > > > just "discovered" scponly, and it looks great :-) > > > > small things with make jail: > > - option "-C" make the script fails (option not existing) > Hehe nice, I can not find any implementation of install that > uses a -C option. All newer gnu versions don't know -c at all. > The install from solaris supports -c and it's described as the > following in the manpage: > > -c dira > Install file in the directory specified by dira, if > file does not yet exist. If it is found, install > issues a message saying that the file already exists, > and exits without overwriting it. -C seems to be valid on FreeBSD maybe other http://www.freebsd.org/cgi/man.cgi?query=install&sektion=1&manpath=FreeBSD+4.7-RELEASE&format=html Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html From adam.ellwood at verizon.net Fri Nov 1 13:56:09 2002 From: adam.ellwood at verizon.net (Adam Ellwood) Date: Thu Jan 23 13:59:44 2003 Subject: [scponly] solaris 2.6, gcc 3.2, scponly 3.3 make issues Message-ID: <000801c281d8$57e8d170$a6f7fea9@ellwoodconsulting.com> folks, i can get the configure to run fine, now here are these issues; bash-2.02# make gcc -g -O2 -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c helper.c scponly.c: In function `main': scponly.c:76: `LOG_PERROR' undeclared (first use in this function) scponly.c:76: (Each undeclared identifier is reported only once scponly.c:76: for each function it appears in.) scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this function) helper.c: In function `build_arg_vector': helper.c:187: warning: assignment makes pointer from integer without a cast helper.c: In function `expand_wildcards': helper.c:218: `GLOB_TILDE' undeclared (first use in this function) helper.c:218: (Each undeclared identifier is reported only once helper.c:218: for each function it appears in.) make: *** [scponly] Error 1 Thanks much! adam@ellwoodconsulting.com-------------- next part -------------- HTML attachment scrubbed and removed From joe at sublimation.org Sun Nov 3 13:21:01 2002 From: joe at sublimation.org (joe) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] rsync-compat configure bug In-Reply-To: <20021030092003.GA5195@prometheus.cynapsis.cy> Message-ID: wow, really? i cant reproduce this one. --enable-rsync-compat did set RSYNC_COMPAT and PROG_RSYNC for me. one thing of interest, is rsync installed on the box in question? joe ---- PGP KEY: http://www.sublimation.org/contact.html PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2 On Wed, 30 Oct 2002, Martin Werthmoeller wrote: > Hy, > > I think there's a bug in scponly when configure with > "--enable-rsync-compat": > > prometheus:scponly-3.3$ ./configure --enable-rsync-compat > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > ... > configure: creating ./config.status > config.status: creating Makefile > config.status: creating setup_chroot.sh > config.status: creating config.h > prometheus:scponly-3.3$ make > gcc -g -O2 -DHAVE_CONFIG_H > -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c > helper.c > scponly.c:50: PROG_RSYNC' undeclared here (not in a function) > scponly.c:50: initializer element is not constant > scponly.c:50: (near initialization for commands[14].name') > > > The configure scripts will not write the line: > > #define RSYNC_COMPAT 1 > > into config.h. > > It seems, it is a common problem. I've verified this on Linux and FreeBSD. > > Greetings, > Martin Werthmoeller > _______________________________________________ > scponly mailing list > scponly@lists.ccs.neu.edu > https://lists.ccs.neu.edu/bin/listinfo/scponly > From joe at sublimation.org Sun Nov 3 13:38:13 2002 From: joe at sublimation.org (joe) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] scponly-3.4 Message-ID: scponly-3.4 available at http://sublimation.org/scponly just some more configure.in fixes - though i believe there are still problems... please keep reporting annything you encounter. also - the host_os checks for "irix" and "solaris" in configure are pretty hacky, if anyone knows a smarter way to do this, please let me in on it. joe ---- PGP KEY: http://www.sublimation.org/contact.html PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2 From sven at telelev.net Mon Nov 4 08:42:54 2002 From: sven at telelev.net (Sven Hoexter) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] bug in helper.c? In-Reply-To: <20021030141616.GA699@voyager.telelev.de> References: <20021029084932.GB28778@voyager.telelev.de> <20021030141616.GA699@voyager.telelev.de> Message-ID: <20021104074254.GA10807@voyager.telelev.de> On Wed, Oct 30, 2002 at 03:16:16PM +0100, Sven Hoexter wrote: > On Tue, Oct 29, 2002 at 09:51:51PM -0800, joe wrote: Morning Joe, > > thanks for reporting this. could you tell me if #define SOLARIS_COMPAT is > > in your config.h? i'm guessing it isnt. > Jup, you're right :) The problem still exists in v3.4 Sven -- Apt-rpm packages for RedHat http://www.hoaxter.de/aptrpm/index.html Neues fuer Nerten - Stoff der der mettert http://www.bluephod.net From mw at werthmoeller.de Tue Nov 5 09:45:02 2002 From: mw at werthmoeller.de (Martin Werthmoeller) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] rsync-compat configure bug In-Reply-To: References: <20021030092003.GA5195@prometheus.cynapsis.cy> Message-ID: <20021105084502.GE1460@prometheus.cynapsis.cy> Am Sun, 03 Nov 2002 um 13:21 GMT -0800 schrieb joe: > > wow, really? i cant reproduce this one. --enable-rsync-compat did set > RSYNC_COMPAT and PROG_RSYNC for me. > > one thing of interest, is rsync installed on the box in question? > ARGH! On FreeBSD rsync will bei installed to /usr/local/bin/rsync, if you take the port/package of rsync. If I add /usr/local/bin to the pathlist for rsync in configure.in it will be run properly. Thx. martin! From adam at ellwoodconsulting.com Thu Nov 7 09:15:01 2002 From: adam at ellwoodconsulting.com (Adam Ellwood) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] scponly build Message-ID: <009801c28668$10405ed0$a6f7fea9@ellwoodconsulting.com> Hey Joe, Here is the results on Solaris 2.6, Gcc 3.2...some adds to the configure.in needed for paths again, but the problem is still there in the make: bash-2.02# make gcc -g -O2 -DHAVE_CONFIG_H -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.c helper.c scponly.c: In function `main': scponly.c:76: `LOG_PERROR' undeclared (first use in this function) scponly.c:76: (Each undeclared identifier is reported only once scponly.c:76: for each function it appears in.) scponly.c:86: `LOG_AUTHPRIV' undeclared (first use in this function) helper.c: In function `build_arg_vector': helper.c:187: warning: assignment makes pointer from integer without a cast helper.c: In function `expand_wildcards': helper.c:218: `GLOB_TILDE' undeclared (first use in this function) helper.c:218: (Each undeclared identifier is reported only once helper.c:218: for each function it appears in.) make: *** [scponly] Error 1 bash-2.02# Thanks for your help! Adam-------------- next part -------------- HTML attachment scrubbed and removed From sven at telelev.net Fri Nov 15 09:54:02 2002 From: sven at telelev.net (Sven Hoexter) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] patch to get scponly 3.4 working on Solaris 8 Message-ID: <20021115085402.GA13034@voyager.telelev.de> Hi Joe, hi *, now I found the time to get scponly compiling on solaris so I hope that it's ok that I attached my patch against scponly-3.4. The only problem where two typos and a few path problems with the sunfreeware OpenSSH packages. The first typo was/is in the configure script in the os detection hack where $host_os gets a little cut down to compare it. First $host_os is cut and then safed in $temp_os but the comparison still use $host_os. The second type is in scponly.c line 82, change #elseif to #elif. (I've read this in a book - I'm very, very, very new to C and coding in general) Joe: I haven't recieved any feedback from you after the first patch so I now post it here. Maybe my mail got lost somewhere? How to use the patch Most of you should be familar with the patch programm for the rest in short copy the patch into the scponly-3.4 directory and use the following command patch -p1 < scponly-solaris.patch Now make clean && ./configure && make The patch should be attached and it's only for downloads from here: http://hoaxter.telelev.net/patches/scponly-solaris.patch So now I'm waiting for feedback if it's working, no time for further test ATM. HTH Sven -- Apt-rpm packages for RedHat http://www.hoaxter.de/aptrpm/index.html Neues fuer Nerten - Stoff der der mettert http://www.bluephod.net-------------- next part -------------- Only in scponly-3.4-sven/: Makefile Only in scponly-3.4-sven/: config.h Only in scponly-3.4-sven/: config.log Only in scponly-3.4-sven/: config.status diff -ru scponly-3.4/configure scponly-3.4-sven/configure --- scponly-3.4/configure 2002-11-03 22:13:26.000000000 +0100 +++ scponly-3.4-sven/configure 2002-11-15 09:32:41.826414000 +0100 @@ -7,6 +7,8 @@ # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. +PATH="$PATH:/usr/local/bin" + if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else @@ -1297,12 +1299,14 @@ # this temp_os is a brutal hack until i look into the proper way to do this. ie- rtfm +#echo $host_os temp_os=`echo $host_os | cut -c-7` -if test "$host_os" = solaris; then +#echo "TEMP_OS is $temp_os" +if test "$temp_os" = solaris; then cat >>confdefs.h <<\_ACEOF #define SOLARIS_COMPAT 1 _ACEOF - +#echo "Found solaris, tempos is $temp_os" fi temp_os=`echo $host_os | cut -c-4` if test "$temp_os" = irix; then @@ -2566,7 +2570,7 @@ ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh" | sed -e 's/:/ /'` +for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh:/usr/local/libexec" | sed -e 's/:/ /'` do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. diff -ru scponly-3.4/scponly.c scponly-3.4-sven/scponly.c --- scponly-3.4/scponly.c 2002-10-28 18:58:22.000000000 +0100 +++ scponly-3.4-sven/scponly.c 2002-11-15 09:29:52.496409000 +0100 @@ -78,7 +78,7 @@ #ifdef SOLARIS_COMPAT openlog(PACKAGE_NAME, logopts, LOG_AUTH); -#elseif IRIX_COMPAT +#elif IRIX_COMPAT openlog(PACKAGE_NAME, logopts, LOG_AUTH); #else if (debuglevel > 1) // debuglevel 1 will still log to syslog Only in scponly-3.4-sven/: setup_chroot.sh Only in scponly-3.4-sven/: sven-changes From qmail at orion.8304.ch Tue Nov 19 23:48:07 2002 From: qmail at orion.8304.ch (Olivier M.) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] small bugs under suse linux (make jail) Message-ID: <20021119234807.K1961@orion.8304.ch> Hello, just "discovered" scponly, and it looks great :-) small things with make jail: - option "-C" make the script fails (option not existing) - sftp-server is not installed in the chroot : is that wanted? rest seems to work fine so far... thanks! Regards, Olivier -- _________________________________________________________________ Olivier Mueller - om@8304.ch - PGPkeyID: 0E84D2EA - Switzerland qmail projects: http://omail.omnis.ch - http://webmail.omnis.ch From sven at telelev.net Wed Nov 20 15:41:05 2002 From: sven at telelev.net (Sven Hoexter) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] rsync problems Message-ID: <20021120144105.GA7856@sven.home.hoaxter.de> Hi, I tried to compile with rsync support and what I found is the following error ./configure --enable-rsync-compat && make scponly.c:50: `PROG_RSYNC' undeclared here (not in a function) scponly.c:50: initializer element is not constant scponly.c:50: (near initialization for `commands[14].name') Ok it is opensource so I looked at source and found this after a look into scponly.c line 50 in config.h generated by the configure script: /* Rsync compatability mode */ #ifdef RSYNC_COMPAT #define PROG_RSYNC "/usr/bin/rsync" #endif Well generally this looks ok. Now I tried to look up where #define for RSYNC_COMPAT is but I could not find it. My dirty fix is to remove the #ifdef around the #define PROG_RSYNC. Any ideas how to fix this in a better way? Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html From sven at telelev.net Wed Nov 20 16:09:49 2002 From: sven at telelev.net (Sven Hoexter) Date: Thu Jan 23 13:59:45 2003 Subject: [scponly] small bugs under suse linux (make jail) In-Reply-To: <20021119234807.K1961@orion.8304.ch> References: <20021119234807.K1961@orion.8304.ch> Message-ID: <20021120150949.GB7856@sven.home.hoaxter.de> On Tue, Nov 19, 2002 at 11:48:07PM +0100, Olivier M. wrote: Hi, > just "discovered" scponly, and it looks great :-) > > small things with make jail: > - option "-C" make the script fails (option not existing) Hehe nice, I can not find any implementation of install that uses a -C option. All newer gnu versions don't know -c at all. The install from solaris supports -c and it's described as the following in the manpage: -c dira Install file in the directory specified by dira, if file does not yet exist. If it is found, install issues a message saying that the file already exists, and exits without overwriting it. > - sftp-server is not installed in the chroot : is that > wanted? I think that this script is just a basic setup for a chroot enviroment wich can be modified on needs. Maybe I'm too stupid but I think that there are other strange things in for example this lonely lines: if [ x = x ]; then echo "this script requires the program useradd to add your" fail "chrooted scponly user." fi What about cleaning it up and post a patch? Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html From sven at telelev.net Wed Nov 20 16:36:12 2002 From: sven at telelev.net (Sven Hoexter) Date: Thu Jan 23 13:59:46 2003 Subject: [scponly] small bugs under suse linux (make jail) In-Reply-To: <20021120150949.GB7856@sven.home.hoaxter.de> References: <20021119234807.K1961@orion.8304.ch> <20021120150949.GB7856@sven.home.hoaxter.de> Message-ID: <20021120153612.GA12281@sven.home.hoaxter.de> On Wed, Nov 20, 2002 at 04:09:49PM +0100, Sven Hoexter wrote: > On Tue, Nov 19, 2002 at 11:48:07PM +0100, Olivier M. wrote: > > Hi, > > > just "discovered" scponly, and it looks great :-) > > > > small things with make jail: > > - option "-C" make the script fails (option not existing) > Hehe nice, I can not find any implementation of install that > uses a -C option. All newer gnu versions don't know -c at all. > The install from solaris supports -c and it's described as the > following in the manpage: > > -c dira > Install file in the directory specified by dira, if > file does not yet exist. If it is found, install > issues a message saying that the file already exists, > and exits without overwriting it. -C seems to be valid on FreeBSD maybe other http://www.freebsd.org/cgi/man.cgi?query=install&sektion=1&manpath=FreeBSD+4.7-RELEASE&format=html Sven -- sig wurde betriebsbedingt gekuendigt Apt-rpm packages for RedHat: http://www.hoaxter.de/aptrpm/index.html