Operating System - HP-UX
1752553 Members
4367 Online
108788 Solutions
New Discussion юеВ

Re: Need to script FTP with SSL/TLS usage

 
Dennis Handly
Acclaimed Contributor

Re: Need to script FTP with SSL/TLS usage

>/usr/include/sys/types.h:62: syntax error before `;'
...
>/usr/include/sys/types.h:272: syntax error before `;'

What's on these lines?
KW Miller
Occasional Advisor

Re: Need to script FTP with SSL/TLS usage

types.h
--------------------
lines 59-66

# ifndef _FPOS_T
# define _FPOS_T
# ifdef _FILE64
typedef int64_t fpos_t; /* 64bit position inside a file */
# else
typedef int32_t fpos_t; /* 32bit position inside a file */
# endif
# endif /* _FPOS_T */


lines 269-276

# ifndef _RLIM_T
# define _RLIM_T
# ifdef _FILE64
typedef uint64_t rlim_t;
# else
typedef uint32_t rlim_t;
# endif
# endif /* _RLIM_T */

Steven Schweda
Honored Contributor

Re: Need to script FTP with SSL/TLS usage

> Have a hp-ux ver10 machine [...]

> [...] -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',

Does HP-UX 10.x have 64-bit file offsets?

I know nothing, but I'd've guessed not.

> /usr/include/sys/types.h:62: syntax error before `;'

> typedef int64_t fpos_t; /* 64bit position inside a file */

> /usr/include/sys/types.h:272: syntax error before `;'

> typedef uint64_t rlim_t;

Sure looks to me as if int64_t and uint64_t
are mystifying the compiler, which also
suggests to me that some of those C compiler
flags don't agree with this environment.
KW Miller
Occasional Advisor

Re: Need to script FTP with SSL/TLS usage

OK. That makes sense. So what is a guy to do?
Dennis Handly
Acclaimed Contributor

Re: Need to script FTP with SSL/TLS usage

>So what is a guy to do?

You need long long support. Look in your headers and see why the compiler doesn't go through the #if that defines int64_t and uint64_t.
mvpel
Trusted Contributor

Re: Need to script FTP with SSL/TLS usage

Seems like it would be easier to change the transfer mechanism to use SSH, rather than FTP with TLS.