<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error compiling lftp 3.0.3 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854545#M395502</link>
    <description>Bill,&lt;BR /&gt; &lt;BR /&gt;This might work but is almost certainly not the right way do do it!&lt;BR /&gt; &lt;BR /&gt;Try "#include &lt;STRING.H&gt;" near the top of FileSet.cc&lt;BR /&gt; &lt;BR /&gt;It's worth a try.&lt;/STRING.H&gt;</description>
    <pubDate>Tue, 18 May 2004 10:03:56 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-05-18T10:03:56Z</dc:date>
    <item>
      <title>error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854544#M395501</link>
      <description>&lt;BR /&gt;FileSet.cc: In static member function `static FileInfo*&lt;BR /&gt;   FileInfo::parse_ls_line(const char*, const char*)':&lt;BR /&gt;FileSet.cc:734: error: `strtok_r' undeclared (first use this function)&lt;BR /&gt;FileSet.cc:734: error: (Each undeclared identifier is reported only once for&lt;BR /&gt;   each function it appears in.)&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;installed is &lt;BR /&gt;&lt;BR /&gt;  autoconf                              2.57           autoconf&lt;BR /&gt;  automake                              1.4.2001-06-12 GNU automake&lt;BR /&gt;  bison                                 1.875          bison&lt;BR /&gt;  ddd                                   3.3.2001-06-12 A graphical front-end for gdb&lt;BR /&gt;  flex                                  2.5.4a         flex&lt;BR /&gt;  gawk                                  3.1.3          gawk&lt;BR /&gt;  gcc                                   3.3.2          gcc&lt;BR /&gt;  gettext                               0.14.1         gettext&lt;BR /&gt;  gmake                                 3.79.1.2001-06-12 GNU make&lt;BR /&gt;  libiconv                              1.9.2          libiconv&lt;BR /&gt;  libpng                                1.2.0          libpng&lt;BR /&gt;  m4                                    1.4            m4&lt;BR /&gt;  make                                  3.80           make&lt;BR /&gt;  patch                                 2.5.4.2001-06-12 GNU patch&lt;BR /&gt;  perl                                  5.8.3          perl&lt;BR /&gt;  texinfo                               4.5            texinfo&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 18 May 2004 09:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854544#M395501</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2004-05-18T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854545#M395502</link>
      <description>Bill,&lt;BR /&gt; &lt;BR /&gt;This might work but is almost certainly not the right way do do it!&lt;BR /&gt; &lt;BR /&gt;Try "#include &lt;STRING.H&gt;" near the top of FileSet.cc&lt;BR /&gt; &lt;BR /&gt;It's worth a try.&lt;/STRING.H&gt;</description>
      <pubDate>Tue, 18 May 2004 10:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854545#M395502</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854546#M395503</link>
      <description>Sorry to double post! No points for this particular effort please.&lt;BR /&gt;  &lt;BR /&gt;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.</description>
      <pubDate>Tue, 18 May 2004 10:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854546#M395503</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854547#M395504</link>
      <description>same thing with suggested modification..</description>
      <pubDate>Tue, 18 May 2004 10:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854547#M395504</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2004-05-18T10:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854548#M395505</link>
      <description>Can I make you happy with a precompiled 2.6.10 release ?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.thewrittenword.com/packages/by-architecture/hppa1.1-hp-hpux11.11/lftp-2.6.10/" target="_blank"&gt;ftp://ftp.thewrittenword.com/packages/by-architecture/hppa1.1-hp-hpux11.11/lftp-2.6.10/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 18 May 2004 10:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854548#M395505</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2004-05-18T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854549#M395506</link>
      <description>Does HPUX even have strtok_r?  It might be worth changing line 734 to "strtok" instead.  strtok_r() is the re-entrant version of strtok.  Actually, my google search for the HPUX man page would suggest that HPUX does NOT have strtok which would explain why my earlier suggestion doesn't work.  &lt;BR /&gt; &lt;BR /&gt;Interestingly, the Linux man page for strtok has this to say &lt;BR /&gt; &lt;BR /&gt;"BUGS&lt;BR /&gt;       Never use these functions." &lt;BR /&gt; &lt;BR /&gt;Cool!&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 10:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854549#M395506</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854550#M395507</link>
      <description>when changing to strtok: get more errors..&lt;BR /&gt;I'm not a coder so don't want to delve too deply into this ;)&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt; &lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:735: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:765: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:771: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:777: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:780: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:790: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:809: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:817: error: at this point in file&lt;BR /&gt;/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include/string.h:81: error: too&lt;BR /&gt;   many arguments to function `char* strtok(char*, const char*)'&lt;BR /&gt;FileSet.cc:843: error: at this point in file&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.</description>
      <pubDate>Tue, 18 May 2004 10:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854550#M395507</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2004-05-18T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854551#M395508</link>
      <description>Ok Bill, I think this could get nasty if we continue down that road.&lt;BR /&gt; &lt;BR /&gt;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  &lt;STRINGS.H&gt;" instead of "&lt;STRING.H&gt;" though normally one just includes the other.&lt;BR /&gt; &lt;BR /&gt;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.&lt;/STRING.H&gt;&lt;/STRINGS.H&gt;</description>
      <pubDate>Tue, 18 May 2004 10:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854551#M395508</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854552#M395509</link>
      <description>Also, if you don't mind butchering this code, you could actually keep the strtok_r as strtok and just remove the third parameter each time it is called.  As far as I know, if the re-entrant facilities of strtok_r are not required then that third paramter will do nothing useful.  It is just an area of RAM that strtok_r uses to do it's stuff that strtok handles internally.</description>
      <pubDate>Tue, 18 May 2004 10:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854552#M395509</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854553#M395510</link>
      <description>&lt;BR /&gt;here's the strtok_r() occurances see attached:&lt;BR /&gt;&lt;BR /&gt;#define FIRST_TOKEN strtok_r(line," \t",&amp;amp;next)&lt;BR /&gt;#define NEXT_TOKEN  strtok_r(NULL," \t",&amp;amp;next)&lt;BR /&gt;&lt;BR /&gt;   char *name=strtok_r(NULL,"",&amp;amp;next);&lt;BR /&gt;   if(!name)&lt;BR /&gt;      ERR;</description>
      <pubDate>Tue, 18 May 2004 10:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854553#M395510</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2004-05-18T10:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854554#M395511</link>
      <description>Bill,&lt;BR /&gt; &lt;BR /&gt;For real code butchering remove the ",&amp;amp;next" occurances and change the strtok_r() to strtok().&lt;BR /&gt; &lt;BR /&gt;This should at least compile but i wouldn't guarantee it will actually work. Should do though.</description>
      <pubDate>Tue, 18 May 2004 10:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854554#M395511</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-18T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854555#M395512</link>
      <description>a5:/u/usr/merijn 104 &amp;gt; grep -r strtok_r /usr/include /usr/local/pa20_32/include&lt;BR /&gt;/usr/include/string.h:        extern char *strtok_r(char *, const char *, char **);&lt;BR /&gt;/usr/include/string.h:       extern char *strtok_r();&lt;BR /&gt;Binary file /usr/local/pa20_32/include/c++/3.4.0/hppa2.0w-hp-hpux11.00/bits/stdc++.h.gch/O0g matches&lt;BR /&gt;Binary file /usr/local/pa20_32/include/c++/3.4.0/hppa2.0w-hp-hpux11.00/bits/stdc++.h.gch/O2g matches&lt;BR /&gt;a5:/u/usr/merijn 105 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;in string.h&lt;BR /&gt;&lt;BR /&gt;     extern char *strtok(char *, const char *);&lt;BR /&gt;     extern char *strerror(int);&lt;BR /&gt;_NAMESPACE_STD_END&lt;BR /&gt;#    ifdef _REENTRANT&lt;BR /&gt;        extern char *strtok_r(char *, const char *, char **);&lt;BR /&gt;#    ifdef _PTHREADS_DRAFT4&lt;BR /&gt;        extern int strerror_r(int, char *, int);&lt;BR /&gt;#    endif /* _PTHREADS_DRAFT4 */&lt;BR /&gt;#    endif&lt;BR /&gt;#  else /* __STDC__ || __cplusplus */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hey, see that? you need to define _REENTRANT&lt;BR /&gt;&lt;BR /&gt;try to add that to your CFLAGS or CCFLAGS in your Makefile. for gcc -D_REENTRANT, for cc -Ae -D_REENTRANT. &lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Tue, 18 May 2004 11:02:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854555#M395512</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-05-18T11:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854556#M395513</link>
      <description>got different errors compiling after changing the make file to -D_IFORGET.. but in either case it &lt;SURPRISE&gt;seems&lt;/SURPRISE&gt; to work with the earlier strtok suggestions... I tried a simple test and all was fine.. I'll leave it to the others to test if they've got all the functionality they want with this hack!  Thanks all, that would have kept me up for hours!</description>
      <pubDate>Tue, 18 May 2004 11:24:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854556#M395513</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2004-05-18T11:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: error compiling lftp 3.0.3</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854557#M395514</link>
      <description>above code change</description>
      <pubDate>Thu, 14 Jun 2007 03:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-lftp-3-0-3/m-p/4854557#M395514</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2007-06-14T03:55:54Z</dc:date>
    </item>
  </channel>
</rss>

