- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- error compiling lftp 3.0.3
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:58 AM
05-18-2004 02:58 AM
FileSet.cc: In static member function `static FileInfo*
FileInfo::parse_ls_line(const char*, const char*)':
FileSet.cc:734: error: `strtok_r' undeclared (first use this function)
FileSet.cc:734: error: (Each undeclared identifier is reported only once for
each function it appears in.)
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
---
installed is
autoconf 2.57 autoconf
automake 1.4.2001-06-12 GNU automake
bison 1.875 bison
ddd 3.3.2001-06-12 A graphical front-end for gdb
flex 2.5.4a flex
gawk 3.1.3 gawk
gcc 3.3.2 gcc
gettext 0.14.1 gettext
gmake 3.79.1.2001-06-12 GNU make
libiconv 1.9.2 libiconv
libpng 1.2.0 libpng
m4 1.4 m4
make 3.80 make
patch 2.5.4.2001-06-12 GNU patch
perl 5.8.3 perl
texinfo 4.5 texinfo
Thanks for any help.
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:03 AM
05-18-2004 03:03 AM
Re: error compiling lftp 3.0.3
This might work but is almost certainly not the right way do do it!
Try "#include
It's worth a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:05 AM
05-18-2004 03:05 AM
Re: error compiling lftp 3.0.3
I don't have lftp nor an HPUX box at the moment . A more detailed examination of the code would probably say exactly where strtok_r should be defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:07 AM
05-18-2004 03:07 AM
Re: error compiling lftp 3.0.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:10 AM
05-18-2004 03:10 AM
Re: error compiling lftp 3.0.3
ftp://ftp.thewrittenword.com/packages/by-architecture/hppa1.1-hp-hpux11.11/lftp-2.6.10/
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:13 AM
05-18-2004 03:13 AM
Re: error compiling lftp 3.0.3
Interestingly, the Linux man page for strtok has this to say
"BUGS
Never use these functions."
Cool!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:19 AM
05-18-2004 03:19 AM
Re: error compiling lftp 3.0.3
I'm not a coder so don't want to delve too deply into this ;)
I was specifically asked to compile the 3.0.3 so previous versions.. so I won't suggest previous versions until I've given up trying to compile 3.0.3
--
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:735: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:765: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:771: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:777: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:780: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:790: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:809: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:817: error: at this point in file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too
many arguments to function `char* strtok(char*, const char*)'
FileSet.cc:843: error: at this point in file
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:26 AM
05-18-2004 03:26 AM
Re: error compiling lftp 3.0.3
I think it boils down to the code is probably developed on one platform and there are compilation options for HPUX. Perhaps you can see some "#ifdefs" in there which make different things happen on different platforms. Things like "#ifdef HPUX". It MAY be possible to see that these are wrong. Have you tried a "man strtok_r" to see if it is on HPUX? perhaps we need to "#include
There is one other possibility, you could do your own "strtok_r" which calls "strtok" but if you are not too confident in coding then that may not be the approach you are after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:31 AM
05-18-2004 03:31 AM
Re: error compiling lftp 3.0.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:36 AM
05-18-2004 03:36 AM
Re: error compiling lftp 3.0.3
here's the strtok_r() occurances see attached:
#define FIRST_TOKEN strtok_r(line," \t",&next)
#define NEXT_TOKEN strtok_r(NULL," \t",&next)
char *name=strtok_r(NULL,"",&next);
if(!name)
ERR;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:48 AM
05-18-2004 03:48 AM
SolutionFor real code butchering remove the ",&next" occurances and change the strtok_r() to strtok().
This should at least compile but i wouldn't guarantee it will actually work. Should do though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 04:02 AM
05-18-2004 04:02 AM
Re: error compiling lftp 3.0.3
/usr/include/string.h: extern char *strtok_r(char *, const char *, char **);
/usr/include/string.h: extern char *strtok_r();
Binary file /usr/local/pa20_32/include/c++/3.4.0/hppa2.0w-hp-hpux11.00/bits/stdc++.h.gch/O0g matches
Binary file /usr/local/pa20_32/include/c++/3.4.0/hppa2.0w-hp-hpux11.00/bits/stdc++.h.gch/O2g matches
a5:/u/usr/merijn 105 >
in string.h
extern char *strtok(char *, const char *);
extern char *strerror(int);
_NAMESPACE_STD_END
# ifdef _REENTRANT
extern char *strtok_r(char *, const char *, char **);
# ifdef _PTHREADS_DRAFT4
extern int strerror_r(int, char *, int);
# endif /* _PTHREADS_DRAFT4 */
# endif
# else /* __STDC__ || __cplusplus */
Hey, see that? you need to define _REENTRANT
try to add that to your CFLAGS or CCFLAGS in your Makefile. for gcc -D_REENTRANT, for cc -Ae -D_REENTRANT.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 04:24 AM
05-18-2004 04:24 AM
Re: error compiling lftp 3.0.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 08:55 PM
06-13-2007 08:55 PM