[ECOS] ecosconfig problems under HPUX

John Dallaway jld@redhat.com
Mon Apr 17 06:47:00 GMT 2000


Hi Hans,

Thank you for reporting this issue. I have modified cdl_exec::cmd_tree()
to avoid non-standard use of getcwd(). The changes should appear in the
anonymous CVS repository when it is next updated.

John Dallaway

> -----Original Message-----
> From: ecos-discuss-owner@sourceware.cygnus.com
> [ mailto:ecos-discuss-owner@sourceware.cygnus.com]On Behalf Of Jepsen
> Hans Peter
> Sent: 17 April 2000 12:40
> To: 'bartv@redhat.com'; ecos-discuss@sourceware.cygnus.com
> Subject: [ECOS] ecosconfig problems under HPUX
>
> 2. A small part of the ecosconfig code does not work when
> build under HPUX.
>
> After successfully building ecosconfig, I had problems
> running the command
> "ecosconfig tree".
> I tracked the problem down to, that the line:
>          char * cwd = getcwd (NULL, 0);
> in src/tools/configtool/standalone/common/cdl_exec.cxx did not work.
>
> When I replaced the line with
>         char * cwd = getcwd (NULL, 1000);
>         if (cwd == NULL)
>         {
>            perror("pwd");
>            exit(1);
>         }
> the tree command works fine.



More information about the Ecos-discuss mailing list