Alexander Skwar | 7 Dec 13:43

environ undeclared in helper

Hello.

helper.c: In function 'hlp__match_path_envs':
helper.c:1423: error: 'environ' undeclared (first use in this function)
helper.c:1423: error: (Each undeclared identifier is reported only once
helper.c:1423: error: for each function it appears in.)
helper.c: In function 'hlp__format_path':
helper.c:1580: error: 'environ' undeclared (first use in this function)

Patch attached, but doesn't work completely. After applying
the patch, I still cannot compile:

revert.c: In function 'rev__do_changed':
revert.c:597: warning: format '%o' expects type 'unsigned int', but argument 7 has type 'mode_t'
     CC status.c
status.c: In function 'st__print_status':
status.c:194: error: too few arguments to function 'hlp__format_path'
status.c: In function 'st__print_entry_info':
status.c:617: warning: format '%4o' expects type 'unsigned int', but argument 2 has type 'mode_t'
status.c:620: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'uid_t'
status.c:620: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'gid_t'
gmake[1]: *** [status.o] Error 1
gmake: *** [default-target] Error 2

Alexander
Index: configure.in
===================================================================
--- configure.in	(revision 1255)
(Continue reading)

Philipp Marek | 7 Dec 13:58

Re: environ undeclared in helper

On Friday 07 December 2007 Alexander Skwar wrote:
> helper.c: In function 'hlp__match_path_envs':
> helper.c:1423: error: 'environ' undeclared (first use in this function)
> helper.c:1423: error: (Each undeclared identifier is reported only once
> helper.c:1423: error: for each function it appears in.)
> helper.c: In function 'hlp__format_path':
> helper.c:1580: error: 'environ' undeclared (first use in this function)
Is there some header file that declares environ?

--

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
Alexander Skwar | 7 Dec 14:02

Re: environ undeclared in helper

Philipp Marek schrieb:
> On Friday 07 December 2007 Alexander Skwar wrote:
>> helper.c: In function 'hlp__match_path_envs':
>> helper.c:1423: error: 'environ' undeclared (first use in this function)
>> helper.c:1423: error: (Each undeclared identifier is reported only once
>> helper.c:1423: error: for each function it appears in.)
>> helper.c: In function 'hlp__format_path':
>> helper.c:1580: error: 'environ' undeclared (first use in this function)
> Is there some header file that declares environ?

Doesn't look like. Attached, you can find the output
of

	grep -r environ /usr/include

Alexander
--($:~/Source/fsvs)-- grep -r environ /usr/include/
/usr/include/st.h: * A default constructor for a type environment object.
/usr/include/st.h: *                            type environment object is stored here
/usr/include/st.h: * A copy constructor for a type environment object.
/usr/include/st.h: * @param oEnv                on return a pointer to the new type environment
/usr/include/st.h: * @param iOldEnv             original type environment
/usr/include/st.h: * A type environment object destructor.
/usr/include/st.h: * @param iEnv                type environment object
/usr/include/st.h: * @param iEnv                type environment object
/usr/include/st.h: * @param iEnv                type environment object
/usr/include/st.h: * Enumerates all font scalers available to this type environment.
/usr/include/st.h: * @param iEnv                type environment object
(Continue reading)

Philipp Marek | 8 Dec 14:38

Re: environ undeclared in helper

On Friday 07 December 2007 Alexander Skwar wrote:
> Philipp Marek schrieb:
> > On Friday 07 December 2007 Alexander Skwar wrote:
> >> helper.c: In function 'hlp__match_path_envs':
> >> helper.c:1423: error: 'environ' undeclared (first use in this function)
> >> helper.c:1423: error: (Each undeclared identifier is reported only once
> >> helper.c:1423: error: for each function it appears in.)
> >> helper.c: In function 'hlp__format_path':
> >> helper.c:1580: error: 'environ' undeclared (first use in this function)
> >
> > Is there some header file that declares environ?
>
> Doesn't look like. Attached, you can find the output
> of
>
> 	grep -r environ /usr/include
Thank you ... environ is in SUS ... don't know why that doesn't work.

I'd like to take a look at that ... maybe there is some function to get that 
pointers.

How about that? 

Index: fsvs.c
===================================================================
--- fsvs.c      (Revision 1255)
+++ fsvs.c      (Arbeitskopie)
@@ -310,6 +310,9 @@ apr_pool_t *global_pool;

 struct url_t *current_url;
(Continue reading)

Alexander Skwar | 8 Dec 21:42

Re: environ undeclared in helper

Hello!

On Dec 8, 2007 2:38 PM, Philipp Marek <philipp <at> marek.priv.at> wrote:
>
>
>
> On Friday 07 December 2007 Alexander Skwar wrote:
> > Philipp Marek schrieb:
> > > On Friday 07 December 2007 Alexander Skwar wrote:
> > >> helper.c: In function 'hlp__match_path_envs':
> > >> helper.c:1423: error: 'environ' undeclared (first use in this function)
> > >> helper.c:1423: error: (Each undeclared identifier is reported only once
> > >> helper.c:1423: error: for each function it appears in.)
> > >> helper.c: In function 'hlp__format_path':
> > >> helper.c:1580: error: 'environ' undeclared (first use in this function)
> > >
> > > Is there some header file that declares environ?
> >
> > Doesn't look like. Attached, you can find the output
> > of
> >
> >       grep -r environ /usr/include
> Thank you ... environ is in SUS ... don't know why that doesn't work.
>

No clue :)

>
> I'd like to take a look at that ...

(Continue reading)


Gmane