DG/UX does not impliment the regcomp, regexec functions. They suggest using regex and regcmp. The only place that I see that regexec and regcomp are used is in compat.c. Can someone help me out with the difference between regex and regexec and the differences between regcmp and regex. This should also help any other OS that does not have regexec. -- Dave Dulek
On Wed, 31 Jan 2001, David Dulek wrote:> DG/UX does not impliment the regcomp, regexec functions. They suggest using > regex and regcmp. The only place that I see that regexec and regcomp are > used is in compat.c. Can someone help me out with the difference between > regex and regexec and the differences between regcmp and regex. This should > also help any other OS that does not have regexec. > >regexec/regcomp is the POSIX form of regex/regcmp. Take from INSTALL from OpenSSH portable: [..] pcre (POSIX Regular Expression library): ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/ Most platforms do not required this. However older 4.3 BSD do not have a posix regex library. [..] I added supported for pcre (GNU rx works with a tweak or two) after the change to compat.c was done to allow NeXT to compile. - Ben
Slight problem on DG/UX though. The OS has a regexec and regcomp. From what I understand and from what I am seeing, the DG/UX version of regcomp always returns -1. This kind of makes it useless in compat.c. I am kind of braindead today so please be patient. How do I get OpenSSH to use the prce regexec and regcomp instead of the OS ones? On Wednesday 31 January 2001 14:17, mouring at etoh.eviladmin.org wrote:>On Wed, 31 Jan 2001, David Dulek wrote: >> DG/UX does not impliment the regcomp, regexec functions. They suggest >> using regex and regcmp. The only place that I see that regexec and >> regcomp are used is in compat.c. Can someone help me out with the >> difference between regex and regexec and the differences between regcmp >> and regex. This should also help any other OS that does not have regexec. > >regexec/regcomp is the POSIX form of regex/regcmp. > >Take from INSTALL from OpenSSH portable: >[..] >pcre (POSIX Regular Expression library): >ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/ > >Most platforms do not required this. However older 4.3 BSD do not >have a posix regex library. >[..] > > >I added supported for pcre (GNU rx works with a tweak or two) after the >change to compat.c was done to allow NeXT to compile. > > >- Ben-- Dave Dulek System Administration Fastenal Company E-mail: ddulek at fastenal.com Phone: (507) 453-8149 Fax: (507) 453-8333 ========================================================"...Microsoft follows standards. In much the same manner that fish follow migrating caribou." "Now I have this image in my mind of a fish embracing and extending a caribou." --- Paul Tomblin and Christian Bauernfeind in a.s.r
On Wed, 31 Jan 2001, David Dulek wrote:> Slight problem on DG/UX though. The OS has a regexec and regcomp. From what > I understand and from what I am seeing, the DG/UX version of regcomp always > returns -1. This kind of makes it useless in compat.c. I am kind of > braindead today so please be patient. How do I get OpenSSH to use the prce > regexec and regcomp instead of the OS ones? >Hmm.. Very good question. There currently is no --with-pcre flag. And the choice was to prefer the native regcomp/regexec over pcre. So until such a thing is written there is no way to use the pcre libraries correctly. - Ben
A small tweak to the pcre libraries and a small tweak of the config.h and the Makefile and I believe I have a working version of OpenSSH 2.3.0p1 for DG/UX. Now that I have it compiled I need to take it over to the test box to actually run the daemon. The client seems to work great though. On Wednesday 31 January 2001 17:35, you wrote:>On Wed, 31 Jan 2001, David Dulek wrote: >> Slight problem on DG/UX though. The OS has a regexec and regcomp. From >> what I understand and from what I am seeing, the DG/UX version of regcomp >> always returns -1. This kind of makes it useless in compat.c. I am kind >> of braindead today so please be patient. How do I get OpenSSH to use the >> prce regexec and regcomp instead of the OS ones? > >Hmm.. Very good question. There currently is no --with-pcre flag. And >the choice was to prefer the native regcomp/regexec over pcre. > >So until such a thing is written there is no way to use the pcre libraries >correctly. > >- Ben-- Dave Dulek