<?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: Errors when compiling on HP-UX 11.0 with cc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860781#M713855</link>
    <description>It looks like your source may contain&lt;BR /&gt;#define _INCLUDE_HPUX_SOURCE&lt;BR /&gt;instead of a proper&lt;BR /&gt;#define _HPUX_SOURCE&lt;BR /&gt;&lt;BR /&gt;The second form is the correct switch from "man stdsyms".  It causes the header files to define several macros via /usr/include/sys/stdsyms.h.&lt;BR /&gt;&lt;BR /&gt;The error that you got would occur if _INCLUDE_HPUX_SOURCE was defined without having _INCLUDE_XOPEN_SOURCE_EXTENDED defined.  That normally should not happen.&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Sep 2004 13:06:35 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2004-09-15T13:06:35Z</dc:date>
    <item>
      <title>Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860780#M713854</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I got the following messages when I tried to compile a static library on HP-UX 11.0 and cc 11.11.06:&lt;BR /&gt;&lt;BR /&gt;# make -f Makefile libs               &lt;BR /&gt;&lt;BR /&gt;**** Compilando o arquivo ct2.c ****&lt;BR /&gt;**** used rules -&amp;gt; .c.a           ****&lt;BR /&gt;&lt;BR /&gt;        /usr/bin/cc  -g    -Aa -g -Wl,+s                                                        -I../include    -I/usr/include                              -I/opt/sybase/include           -c ct2.c&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 551: error 1000: Unexpected symbol: "save_state_t".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 570: error 1000: Unexpected symbol: "ucontext_t".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 571: error 1000: Unexpected symbol: "sl_si".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 572: error 1000: Unexpected symbol: "}".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 595: error 1000: Unexpected symbol: "siginfo_t".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 627: error 1000: Unexpected symbol: "}".&lt;BR /&gt;cc: "/usr/include/math.h", line 32: error 1000: Unexpected symbol: "extern".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 571: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 595: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 589: error 1574: Unknown size for "sc".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 589: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 610: error 1574: Unknown size for "sx".&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 610: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 608: error 1618: Structure or union type has unknown size.&lt;BR /&gt;cc: "/usr/include/math.h", line 33: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/usr/include/sys/signal.h", line 624: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 490: error 1000: Unexpected symbol: "CS_VOIDDATA".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 515: error 1000: Unexpected symbol: "CS_INT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 516: error 1000: Unexpected symbol: "dttime".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 517: error 1000: Unexpected symbol: "}".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 521: error 1000: Unexpected symbol: "CS_USHORT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 522: error 1000: Unexpected symbol: "minutes".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 523: error 1000: Unexpected symbol: "}".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 530: error 1000: Unexpected symbol: "CS_INT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 531: error 1000: Unexpected symbol: "mnylow".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 532: error 1000: Unexpected symbol: "}".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 536: error 1000: Unexpected symbol: "CS_INT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 544: error 1000: Unexpected symbol: "CS_BYTE".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 545: error 1000: Unexpected symbol: "scale".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 546: error 1000: Unexpected symbol: "33".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 546: error 1000: Unexpected symbol: ";".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 490: error 1584: Inconsistent type declaration: "CS_INT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 516: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 516: error 1584: Inconsistent type declaration: "CS_INT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 522: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 522: error 1584: Inconsistent type declaration: "CS_USHORT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 531: warning 557: Missing declaration specifiers, "int" assumed.&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 531: error 1584: Inconsistent type declaration: "CS_UINT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 549: error 1000: Unexpected symbol: "CS_DECIMAL".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 557: error 1000: Unexpected symbol: "CS_SMALLINT".&lt;BR /&gt;cc: "/opt/sybase/include/cstypes.h", line 558: error 1000: Unexpected symbol: "str".&lt;BR /&gt;cc: panic 2017: Cannot recover from earlier errors, terminating.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop."&lt;BR /&gt;&lt;BR /&gt;Makefile:&lt;BR /&gt;&lt;BR /&gt;#------------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;#   Technical Support / Client Server&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;SERVICE = &lt;BR /&gt;&lt;BR /&gt;CC_LOCAL_INCLUDES = -I../include&lt;BR /&gt;CC_LOCAL_FLAGS    = -g&lt;BR /&gt;CC_LOCAL_DEFINES  = &lt;BR /&gt;&lt;BR /&gt;LIBRARIES       =  $(LIBCT2)&lt;BR /&gt;LIBCT2 = ../lib/libct2.a&lt;BR /&gt;LIB_OBJECTS     =  $(LIBCT2)(Version.o) \&lt;BR /&gt;                   $(LIBCT2)(ct2.o)&lt;BR /&gt;&lt;BR /&gt;IDLS = &lt;BR /&gt;&lt;BR /&gt;ESQLS = &lt;BR /&gt;&lt;BR /&gt;BINS            =  ""&lt;BR /&gt;BIN_LIBDIRS     =&lt;BR /&gt;BIN_LIBS        =&lt;BR /&gt;BIN_OBJECTS     = &lt;BR /&gt;&lt;BR /&gt;Target_default:&lt;BR /&gt;        @echo "ARQUITETURA DE DESENVOLVIMENTO"&lt;BR /&gt;        @echo "Target Default"&lt;BR /&gt;        @echo "Escolha um dos targets disponiveis"&lt;BR /&gt;        @echo "make [libs] [shlibs] [idls] [esql] [bins] [*.o] [*.a]"&lt;BR /&gt;&lt;BR /&gt;${BINS}: $(BIN_OBJECTS)&lt;BR /&gt;        @echo&lt;BR /&gt;        @echo "Gerando o executavel ${BINS}"&lt;BR /&gt;        @`export LDOPTS`&lt;BR /&gt;        $(CC) $(FLAGS) -o ../bin/$(BINS) $(BIN_OBJECTS) $(INCLUDES) $(DEFINES) $(BIN_LIBDIRS) $(LIBDIRS) $(BIN_LIBS) $(LIBS)&lt;BR /&gt;        $(RM) -f *.o&lt;BR /&gt;        $(RM) -f $(ESQLS)&lt;BR /&gt;        $(RM) -f Version*&lt;BR /&gt;&lt;BR /&gt;include $(ARQDES_HOME)/script/utilit/makesys/platform_hpux.sh&lt;BR /&gt;include $(ARQDES_HOME)/script/utilit/makesys/general.sh&lt;BR /&gt;include $(ARQDES_HOME)/script/utilit/makesys/sybase.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Seems to me that there is a problem with cc header files or is missing some files.&lt;BR /&gt;&lt;BR /&gt;Just to clarify the situation, I'm migrating our development environment from HP-UX 10.20 to HP-UX 11.0.&lt;BR /&gt;&lt;BR /&gt;thanks a lot,&lt;BR /&gt;&lt;BR /&gt;Vlad.</description>
      <pubDate>Tue, 14 Sep 2004 12:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860780#M713854</guid>
      <dc:creator>Vladimir L Marques</dc:creator>
      <dc:date>2004-09-14T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860781#M713855</link>
      <description>It looks like your source may contain&lt;BR /&gt;#define _INCLUDE_HPUX_SOURCE&lt;BR /&gt;instead of a proper&lt;BR /&gt;#define _HPUX_SOURCE&lt;BR /&gt;&lt;BR /&gt;The second form is the correct switch from "man stdsyms".  It causes the header files to define several macros via /usr/include/sys/stdsyms.h.&lt;BR /&gt;&lt;BR /&gt;The error that you got would occur if _INCLUDE_HPUX_SOURCE was defined without having _INCLUDE_XOPEN_SOURCE_EXTENDED defined.  That normally should not happen.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Sep 2004 13:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860781#M713855</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-09-15T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860782#M713856</link>
      <description>Thank you Mike. More one question: We used to put in our sources the following defines:&lt;BR /&gt;#define _INCLUDE_POSIX_SOURCE&lt;BR /&gt;#define _INCLUDE_XOPEN_SOURCE&lt;BR /&gt;#define _INCLUDE_HPUX_SOURCE&lt;BR /&gt;#define _INCLUDE_AES_SOURCE&lt;BR /&gt;&lt;BR /&gt;Why I can't use _INCLUDE_HPUX_SOURCE anymore? What had changed?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Vlad.</description>
      <pubDate>Wed, 15 Sep 2004 15:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860782#M713856</guid>
      <dc:creator>Vladimir L Marques</dc:creator>
      <dc:date>2004-09-15T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860783#M713857</link>
      <description>The hard question is not why it fails, but why it ever seemed to work.  Perhaps you were compiling in a way that __STDC__ did not get set and stdsyms.h therefore defined _INCLUDE_XOPEN_SOURCE_EXTENDED for you.&lt;BR /&gt;The reliable solution is to use the defines documented in "man stdsyms" and never define any of the _INCLUDE_* macros directly.</description>
      <pubDate>Thu, 16 Sep 2004 13:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860783#M713857</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-09-16T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860784#M713858</link>
      <description>Ok Mike...I'll study stdsyms better to understand the whole environment.&lt;BR /&gt;&lt;BR /&gt;thank you,&lt;BR /&gt;&lt;BR /&gt;Vlad.</description>
      <pubDate>Fri, 17 Sep 2004 07:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860784#M713858</guid>
      <dc:creator>Vladimir L Marques</dc:creator>
      <dc:date>2004-09-17T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when compiling on HP-UX 11.0 with cc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860785#M713859</link>
      <description>I have removed the defines from our sources solving the issue.</description>
      <pubDate>Tue, 21 Sep 2004 14:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/errors-when-compiling-on-hp-ux-11-0-with-cc/m-p/4860785#M713859</guid>
      <dc:creator>Vladimir L Marques</dc:creator>
      <dc:date>2004-09-21T14:51:49Z</dc:date>
    </item>
  </channel>
</rss>

