search for: optreset

Displaying 20 results from an estimated 114 matches for "optreset".

2003 Aug 21
1
Smartcard: sectok compiler error
...After it compiled libsectok without the -Bforcearchive flag i tried to compile sectok: [root at box sectok-20020524]# make gcc -o sectok main.o cmds.o cyberflex.o ../libsectok/libsectok.a -lcrypto cmds.o: In function `reset': /home/mohnewald/sectok-20020524/cmds.c:158: undefined reference to `optreset' cmds.o: In function `apdu': /home/mohnewald/sectok-20020524/cmds.c:233: undefined reference to `optreset' cmds.o: In function `selfid': /home/mohnewald/sectok-20020524/cmds.c:277: undefined reference to `optreset' cmds.o: In function `dread': /home/mohnewald/sectok-20020524...
2002 Jun 16
1
multiple definition of `optind'
Any ideas of the best way around this problem? Should I just hack the source code, or is there a magic switch somewhere I'm missing? I'm assuming I can't just dismiss that function as OpenSSH is probably based on the OpenBSD semantics. ============================================================================= gcc -g -O2 -Wall -Wno-uninitialized -I. -I.
2019 Jan 25
0
[klibc:update-dash] histedit: fix build with musl libc
...11c99ce4e5638df44ed87661945a241632 Author: Baruch Siach <baruch at tkos.co.il> AuthorDate: Fri, 2 Mar 2018 08:32:16 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] histedit: fix build with musl libc musl libc defines the optreset BSD extension only in getopt.h. This fixes the following build failure: histedit.c: In function 'histcmd': histedit.c:220:2: error: 'optreset' undeclared (first use in this function) optreset = 1; optind = 1; /* initialize getopt */ ^~~~~~~~ Signed-off-by: Baruch Siach <bar...
2020 Mar 28
0
[klibc:update-dash] dash: histedit: fix build with musl libc
...baruch at tkos.co.il> AuthorDate: Fri, 2 Mar 2018 08:32:16 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: histedit: fix build with musl libc [ dash commit 523d24878f5fb20c03210d10a919058a43fb5c31 ] musl libc defines the optreset BSD extension only in getopt.h. This fixes the following build failure: histedit.c: In function 'histcmd': histedit.c:220:2: error: 'optreset' undeclared (first use in this function) optreset = 1; optind = 1; /* initialize getopt */ ^~~~~~~~ Signed-off-by: Baruch Siach <bar...
2001 Dec 24
0
static compilation
...to build statically: 1. ./configure 2. edit openbsd-compat/getopt.c 45 //int opterr = 1, /* if error message should be printed */ 46 // optind = 1, /* index into parent argv vector */ 47 // optopt, /* character checked for validity */ 48 int optreset; /* reset getopt */ 3. edit openbsd-compat/Makefile Added '-I/usr/include' to the CFLAGS variable. 4. edit Makefile Added '-static' to the CC and LD variables 5. make -Tony >I'm currently running linux mandrake 8.0 and a redhat 7.1. I tried to >compiled...
2002 Feb 27
2
static link
hi, i have downloaded the linux-version of openssh-3.0.2p1. i wanted to compile it statically with the following configure-statement: ./configure --prefix=/usr/local/opt/openssh-3.0.2p1 --with-pam --with-md5-passwords --with-v4-default --with-ldflags=-static --with-ssl-dir=/usr/local/opt/openssl It worked for the older 2.9 version, but now i get the following error: gcc -o ssh ssh.o
2009 Aug 28
8
[Bug 1637] New: Change the context when starting internal-sftp
https://bugzilla.mindrot.org/show_bug.cgi?id=1637 Summary: Change the context when starting internal-sftp Product: Portable OpenSSH Version: 5.2p1 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sftp-server AssignedTo: unassigned-bugs at mindrot.org
2001 Nov 21
0
static compilation
Hi, I'm currently running linux mandrake 8.0 and a redhat 7.1. I tried to compiled openssh 3.0 static without any succes, an error seems to appear in ssh.c, optreset declaration. Openssh 2.9 compiled statically without any problems: LDFLAGS=-static, CFLAGS=-static worked fine. Currently im no more able to compile it statically, the main error seems due to openbsd-compat.. Of course if I dont use "-static" the compilation is okay. Does anyone have a...
2004 Apr 28
2
openssh continues to process dash arguements after hostname
Processing dash arguments after the hostname is inconsistant with getopt() usage. It is also inconsistant with other ssh/rsh implementations. It is also not documented. openssh accepts treats "ssh host -l user" as "ssh -l user host" when infact it should be attemption to execute "-l user" on "host" as the original user. It looks like someone wanted to
2004 Sep 08
0
[PATCH]Extending user@host syntax
...#39;%s'\n", cp); + exit(1); + } + } else if (strrchr(host, ',')) { + host_key_aliasp = strrchr(host, ','); + *host_key_aliasp++ = '\0'; + } + + if (host_key_aliasp) + options.host_key_alias = xstrdup(host_key_aliasp); + if (ac > 1) { optind = optreset = 1; goto again; -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBPybHwicyCTir8T4RAjo+AKCS/aowItuYao9OVIWtOx1KrEKdpgCfX7ev DpGUBfblAUpXfJSWsgSdwo0= =nnlY -----END PGP SIGNATURE-----
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
...le: /cvs/openssh_cvs/ssh.c,v retrieving revision 1.181 diff -p -u -r1.181 ssh.c --- ssh.c 2 Sep 2003 12:58:22 -0000 1.181 +++ ssh.c 10 Sep 2003 18:59:02 -0000 @@ -208,8 +208,10 @@ main(int ac, char **av) struct stat st; struct passwd *pw; int dummy; +#ifndef HAVE_GETOPT_H extern int optind, optreset; extern char *optarg; +#endif __progname = ssh_get_progname(av[0]); init_rng(); Index: sshd.c =================================================================== RCS file: /cvs/openssh_cvs/sshd.c,v retrieving revision 1.260 diff -p -u -r1.260 sshd.c --- sshd.c 2 Sep 2003 12:51:17 -0000 1.26...
2010 Jul 09
1
dash klibc DEBUG more compile trouble
...vent? undeclared (first use in this function) usr/dash/histedit.c:182: error: expected ?;? before ?he? usr/dash/histedit.c:191: error: ?MAXPATHLEN? undeclared (first use in this function) usr/dash/histedit.c:209: error: ?hist? undeclared (first use in this function) usr/dash/histedit.c:218: error: ?optreset? undeclared (first use in this function) usr/dash/histedit.c:332: error: ?H_PREV? undeclared (first use in this function) usr/dash/histedit.c:332: error: ?H_NEXT? undeclared (first use in this function) usr/dash/histedit.c:341: warning: implicit declaration of function ?mkstemp? usr/dash/histedit.c...
2007 Sep 17
2
No subject
...ad attribute specification, expecting identifier, found `)' openbsd-compat/vis.h:91: bad attribute specification, expecting identifier, found `)' readpass.c:40: warning: could not use precompiled header '/usr/ include/unistd-gcc3.p', because : readpass.c:40: warning: macro 'optreset' defined by defines.h conflicts with precomp misc.h:33: bad attribute specification, expecting identifier, found `)' misc.h:66: bad attribute specification, expecting identifier, found `)' misc.h:68: bad attribute specification, expecting identifier, found `)' misc.h:70: bad attri...
2001 Oct 26
2
problems building on solaris 2.6
...rage... no checking for __ss_family field in struct sockaddr_storage... no checking for pw_class field in struct passwd... no checking for pw_expire field in struct passwd... no checking for pw_change field in struct passwd... no checking if libc defines __progname... no checking whether getopt has optreset support... no checking if libc defines sys_errlist... yes checking if libc defines sys_nerr... yes checking for rsh... /usr/bin/rsh checking for xauth... /usr/openwin/bin/xauth checking for "/dev/ptmx"... yes checking for "/dev/ptc"... no checking for "/dev/urandom"......
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up a tunnel using ssh, e.g.: ssh -f -o Tunnel=ethernet <server_ip> true I was wondering if there's a way to subsequently acquire the names of the local and remote tun/tap interfaces (e.g., using the default "-w any:any") for subsequent automatic tunnel configuration, e.g.: ip link set $TapDev up ip link set
2006 Feb 06
1
Compile warning report of openssh 4.3p1 on Intel Macs
...ng for msg_control field in struct msghdr... yes checking if libc defines __progname... yes checking whether gcc implements __FUNCTION__... yes checking whether gcc implements __func__... yes checking whether va_copy exists... yes checking whether __va_copy exists... yes checking whether getopt has optreset support... yes checking if libc defines sys_errlist... yes checking if libc defines sys_nerr... yes checking for library containing getrrsetbyname... no checking for library containing res_query... none required checking for library containing dn_expand... none required checking if res_query will l...
2006 Apr 23
0
Configuration Warnings OpenSSH 4.3p2
...king for msg_control field in struct msghdr... yes checking if libc defines __progname... yes checking whether gcc implements __FUNCTION__... yes checking whether gcc implements __func__... yes checking whether va_copy exists... no checking whether __va_copy exists... no checking whether getopt has optreset support... no checking if libc defines sys_errlist... yes checking if libc defines sys_nerr... yes checking for library containing getrrsetbyname... no checking for library containing res_query... none required checking for library containing dn_expand... none required checking if res_query will li...
2003 Jan 09
0
Building openssh-3.5p1 with new DES functions
...oid function "hostjump" does not contain a return statement. (missingreturn) static int ^ [...] --------------------------------------------------------------- I tried to configure openssh without privsep, but then configure failed to detect kerberos!: [...] checking whether getopt has optreset support... no checking if libc defines sys_errlist... yes checking if libc defines sys_nerr... yes configure: WARNING: AFS requires Kerberos IV support, build may fail checking for "/dev/ptmx"... yes [...] OpenSSH has been configured with the following options: User...
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...slashes... yes checking whether unlink of a parent directory fails is it should... guessing yes checking whether getcwd (NULL, 0) allocates memory for result... yes checking whether getcwd is declared... yes checking for getopt.h... (cached) yes checking for getopt_long_only... yes checking whether optreset is declared... no checking whether getopt_clip is declared... no checking whether getopt is POSIX compatible... yes checking for working GNU getopt function... yes checking whether getenv is declared... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for lo...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...slashes... yes checking whether unlink of a parent directory fails is it should... guessing yes checking whether getcwd (NULL, 0) allocates memory for result... yes checking whether getcwd is declared... yes checking for getopt.h... (cached) yes checking for getopt_long_only... yes checking whether optreset is declared... no checking whether getopt_clip is declared... no checking whether getopt is POSIX compatible... yes checking for working GNU getopt function... yes checking whether getenv is declared... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for lo...