https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124330

            Bug ID: 124330
           Summary: shared_memory.c:72:3: error: implicit declaration of
                    function 'SetEnvironmentVariable'
                    [-Wimplicit-function-declaration]
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

libtool: compile:  /home/dave/gnu/gcc/objdir64/./gcc/xgcc
-B/home/dave/gnu/gcc/o
bjdir64/./gcc/ -B/opt/gnu64/gcc/gcc-16/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc
/gcc-16/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gnu64/gcc/gcc-16/hppa64-hp-hpux11
.11/include -isystem /opt/gnu64/gcc/gcc-16/hppa64-hp-hpux11.11/sys-include
-fche
cking=1 -DHAVE_CONFIG_H -I. -I../../../gcc/libgfortran
-iquote../../../gcc/libgf
ortran/io -I../../../gcc/libgfortran/../gcc
-I../../../gcc/libgfortran/../gcc/co
nfig -I../../../gcc/libgfortran/../libquadmath -I../.././gcc
-I../../../gcc/libg
fortran/../libgcc -I../libgcc -I../../../gcc/libgfortran/../libbacktrace
-I../libbacktrace -I../libbacktrace -O2 -g -MT
caf/shmem/libcaf_shmem_la-shared_memory.lo -MD -MP -MF
caf/shmem/.deps/libcaf_shmem_la-shared_memory.Tpo -c
../../../gcc/libgfortran/caf/shmem/shared_memory.c  -DPIC -o
caf/shmem/.libs/libcaf_shmem_la-shared_memory.o
../../../gcc/libgfortran/caf/shmem/shared_memory.c: In function
'shared_memory_set_env':
../../../gcc/libgfortran/caf/shmem/shared_memory.c:72:3: error: implicit
declaration of function 'SetEnvironmentVariable'
[-Wimplicit-function-declaration]
   72 |   SetEnvironmentVariable (ENV_PPID, buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc/libgfortran/caf/shmem/shared_memory.c: At top level:
../../../gcc/libgfortran/caf/shmem/shared_memory.c:118:9: warning: 'NAME_MAX'
redefined
  118 | #define NAME_MAX 255
      |         ^~~~~~~~
In file included from /home/dave/gnu/gcc/objdir64/gcc/include/limits.h:210,
                 from /home/dave/gnu/gcc/objdir64/gcc/include/syslimits.h:9,
                 from /home/dave/gnu/gcc/objdir64/gcc/include/limits.h:34,
                 from
/home/dave/gnu/gcc/objdir64/gcc/include-fixed/sys/pthread.h:48,
                 from /usr/include/pthread.h:7,
                 from ../../../gcc/libgfortran/caf/shmem/thread_support.h:45,
                 from ../../../gcc/libgfortran/caf/shmem/shared_memory.h:28,
                 from ../../../gcc/libgfortran/caf/shmem/allocator.h:31,
                 from ../../../gcc/libgfortran/caf/shmem/shared_memory.c:30:
/usr/include/limits.h:290:15: note: this is the location of the previous
definition
  290 | #      define NAME_MAX   14     /* Max number of characters in a
filename
      |               ^~~~~~~~
make[3]: *** [Makefile:4682: caf/shmem/libcaf_shmem_la-shared_memory.lo] Error
1

Reply via email to