<?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: Compile not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907521#M702633</link>
    <description>Thanks so much for the help!!  YOu have got me much closer.  It actually compiled but is not working correctly.  I wonder if the makedependencies was an issue.  I did what you told me and my makedependencies.sh looked like the following:&lt;BR /&gt;&lt;BR /&gt;gcc -MM -Dunix *.cpp *.c &amp;gt; dependencies&lt;BR /&gt;gcc -MM -xc++ -Dunix *.rc | sed -e "s/\.rc\.o/.ro/" &amp;gt;&amp;gt; dependencies&lt;BR /&gt;gcc -MM -xc++ -Dunix *.idl | sed -e "s/\.idl\.o/.tlb/" &amp;gt;&amp;gt; dependencies&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the output after I ran it:&lt;BR /&gt; sh makedependencies.sh&lt;BR /&gt;dllmain.cpp:24:21: error: windows.h: No such file or directory&lt;BR /&gt;dllmain.cpp:25:20: error: wtypes.h: No such file or directory&lt;BR /&gt;dllmain.cpp:26:22: error: basetyps.h: No such file or directory&lt;BR /&gt;In file included from ntxshp.cpp:31:&lt;BR /&gt;statusdlg.h:27:21: error: windows.h: No such file or directory&lt;BR /&gt;statusdlg.cpp:24:21: error: windows.h: No such file or directory&lt;BR /&gt;statusdlg.cpp:25:22: error: commctrl.h: No such file or directory&lt;BR /&gt;avexec.c:25:21: error: windows.h: No such file or directory&lt;BR /&gt;avntxshp.rc:25:21: error: windows.h: No such file or directory&lt;BR /&gt;avntxshp.rc:26:20: error: winver.h: No such file or directory&lt;BR /&gt;ntxshape.rc:23:21: error: windows.h: No such file or directory&lt;BR /&gt;ntxshape.rc:24:20: error: winver.h: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Jun 2005 16:10:01 GMT</pubDate>
    <dc:creator>Coolmar</dc:creator>
    <dc:date>2005-06-16T16:10:01Z</dc:date>
    <item>
      <title>Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907518#M702630</link>
      <description>I am trying to compile a package called NTX Shape on our HP-UX 11.11 system.  I downloaded and installed gcc, gmake, and binutils.  No documentation came with this "package", so it has been quite the pain thus far.&lt;BR /&gt;&lt;BR /&gt;g++ -c -O3 -funroll-loops -ffast-math   intxfile.cpp -o intxfile.o&lt;BR /&gt;intxfile.h: In destructor 'iNTXfile::~iNTXfile()':&lt;BR /&gt;intxfile.h:135: error: 'close' was not declared in this scope&lt;BR /&gt;intxfile.cpp: In constructor 'iNTXfile::iNTXfile(const char*)':&lt;BR /&gt;intxfile.cpp:80: error: 'read' was not declared in this scope&lt;BR /&gt;intxfile.cpp:95: error: 'close' was not declared in this scope&lt;BR /&gt;intxfile.cpp:100: error: 'lseek' was not declared in this scope&lt;BR /&gt;intxfile.cpp: In member function 'int iNTXfile::LoadRecord(long int)':&lt;BR /&gt;intxfile.cpp:132: error: 'lseek' was not declared in this scope&lt;BR /&gt;intxfile.cpp:137: error: 'read' was not declared in this scope&lt;BR /&gt;gmake: *** [intxfile.o] Error 1&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Wed, 15 Jun 2005 14:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907518#M702630</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-15T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907519#M702631</link>
      <description>OK, here's how to compile this beast.&lt;BR /&gt;&lt;BR /&gt;First make sure files don't have DOS style line endings (^M). Either unzip with -a or use dos2ux afterwards to convert the files.&lt;BR /&gt;&lt;BR /&gt;Make the following mods to the source files.&lt;BR /&gt;&lt;BR /&gt;Add -Dunix to each gcc line in makedependencies.sh&lt;BR /&gt;Copy Makefile.sparc to Makefile.hpux&lt;BR /&gt;Add -fpermissive to CFLAGS in Makefile.hpux&lt;BR /&gt;Add -Dunix -DMAX_PATH=256 to CPPFLAGS In Makefile.hpux&lt;BR /&gt;&lt;BR /&gt;# sh makedependencies.sh&lt;BR /&gt;# gmake -f Makefile.hpux&lt;BR /&gt;&lt;BR /&gt;Hope that works for you.</description>
      <pubDate>Wed, 15 Jun 2005 18:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907519#M702631</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-15T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907520#M702632</link>
      <description>I see many system calls: close,read,lseek, not DCLared., and Constructors/Destructors missing system calls.&lt;BR /&gt;&lt;BR /&gt;are you positive you have the proper compile options ?  what about Binutils ?  do you need a Library reference to the g++ -c lines in your make ?</description>
      <pubDate>Wed, 15 Jun 2005 21:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907520#M702632</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-15T21:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907521#M702633</link>
      <description>Thanks so much for the help!!  YOu have got me much closer.  It actually compiled but is not working correctly.  I wonder if the makedependencies was an issue.  I did what you told me and my makedependencies.sh looked like the following:&lt;BR /&gt;&lt;BR /&gt;gcc -MM -Dunix *.cpp *.c &amp;gt; dependencies&lt;BR /&gt;gcc -MM -xc++ -Dunix *.rc | sed -e "s/\.rc\.o/.ro/" &amp;gt;&amp;gt; dependencies&lt;BR /&gt;gcc -MM -xc++ -Dunix *.idl | sed -e "s/\.idl\.o/.tlb/" &amp;gt;&amp;gt; dependencies&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the output after I ran it:&lt;BR /&gt; sh makedependencies.sh&lt;BR /&gt;dllmain.cpp:24:21: error: windows.h: No such file or directory&lt;BR /&gt;dllmain.cpp:25:20: error: wtypes.h: No such file or directory&lt;BR /&gt;dllmain.cpp:26:22: error: basetyps.h: No such file or directory&lt;BR /&gt;In file included from ntxshp.cpp:31:&lt;BR /&gt;statusdlg.h:27:21: error: windows.h: No such file or directory&lt;BR /&gt;statusdlg.cpp:24:21: error: windows.h: No such file or directory&lt;BR /&gt;statusdlg.cpp:25:22: error: commctrl.h: No such file or directory&lt;BR /&gt;avexec.c:25:21: error: windows.h: No such file or directory&lt;BR /&gt;avntxshp.rc:25:21: error: windows.h: No such file or directory&lt;BR /&gt;avntxshp.rc:26:20: error: winver.h: No such file or directory&lt;BR /&gt;ntxshape.rc:23:21: error: windows.h: No such file or directory&lt;BR /&gt;ntxshape.rc:24:20: error: winver.h: No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907521#M702633</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-16T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907522#M702634</link>
      <description>I think that some of these source files are supposed to be compiled on Windows platform only, and as you can see they are using include files windows.h etc.&lt;BR /&gt;&lt;BR /&gt;When you say that program is not working correctly; are there any errors reported?</description>
      <pubDate>Thu, 16 Jun 2005 18:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907522#M702634</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-16T18:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907523#M702635</link>
      <description>Yes, it just says:&lt;BR /&gt;&lt;BR /&gt;ERROR: Could not open NTX file "nb0208.ntx"&lt;BR /&gt;&lt;BR /&gt;The file is there and when I copied the file into my windows directory and used my windows version of ntxshape, it worked....but I need it to work on unix.&lt;BR /&gt;&lt;BR /&gt;Thanks again for all your help!&lt;BR /&gt;Sally</description>
      <pubDate>Fri, 17 Jun 2005 09:26:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907523#M702635</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-17T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907524#M702636</link>
      <description>This error traces back to the following section in convert.cpp.&lt;BR /&gt;&lt;BR /&gt;if (!ntx.IsValid()) {&lt;BR /&gt;        if (access(ntxfname,(F_OK))==-1) {&lt;BR /&gt;            (void)fprintf(stderr,"ERROR: NTX file \"%s\" does not exist.\n",ntxf&lt;BR /&gt;name);&lt;BR /&gt;        } else {&lt;BR /&gt;            (void)fprintf(stderr,"ERROR: Could not open NTX file \"%s\"\n",ntxfn&lt;BR /&gt;ame);&lt;BR /&gt;        }&lt;BR /&gt;        return 2;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;So it looks like ntxshape found your ntx file to be invalid, which is strange since windows version of ntxshape found the file to be ok.&lt;BR /&gt;&lt;BR /&gt;Are ntx files binary or ascii format? If it's binary make sure it's been transferred correctly from the windows system (e.g. use binary transfer mode in ftp). If file is ascii, make sure it has UNIX style line endings (e.g. no ^M).&lt;BR /&gt;&lt;BR /&gt;Otherwise maybe it's worth trying another ntx file or you may want to post your question to ntxshape forum at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sourceforge.net/forum/?group_id=52747." target="_blank"&gt;http://sourceforge.net/forum/?group_id=52747.&lt;/A&gt;</description>
      <pubDate>Fri, 17 Jun 2005 19:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907524#M702636</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-17T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907525#M702637</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I posted to the NTX forum before I posted here and still have no responses.  I also tried other .ntx files and nothing works.  I really can't figure out whether it is the ntxshape binary or the .ntx files that are the problem.  I tried ftp'ing the .ntx file in ascii and binary mode and neither worked.  &lt;BR /&gt;&lt;BR /&gt;I am very close to giving up, as I am not sure where to go from here.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the help!&lt;BR /&gt;Sally</description>
      <pubDate>Tue, 21 Jun 2005 17:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907525#M702637</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-21T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907526#M702638</link>
      <description>I've just realised from your previous thread that you compiled ntxshape this with 64-bit gcc. I suggest that you try it with 32-bit gcc.&lt;BR /&gt;&lt;BR /&gt;You can get gcc from &lt;A href="http://www.hp.com/go/gcc." target="_blank"&gt;http://www.hp.com/go/gcc.&lt;/A&gt; Get binutils and gcc for 11i v1. 32-bit gcc will be installed in /usr/local/bin/gcc. Make sure that one is first in your PATH. Also make sure you uninstall your previous gcc before installing the new one.</description>
      <pubDate>Tue, 21 Jun 2005 19:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907526#M702638</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-21T19:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907527#M702639</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Well I am trying to compile with the 32 bit and now get the following (I will delete and un-zip again to start fresh):&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file intxfile.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntx.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxrecs.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxshape.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxdesc.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxline.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file descattr.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file dbfout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file dbfopen.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file shpopen.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file shpout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file lineout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file pntout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file nameout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file patmatch.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxbuild.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file ntxsearch.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;ar: warning: the file polyout.o is from an incompatible architecture&lt;BR /&gt;&lt;BR /&gt;gcc -Wall -fpermissive -O3 -funroll-loops -ffast-math -fpermissive -D_BIGENDIAN_MACHINE -Dunix -DMAX_PATH=256  -c -o stripext.o stripext.c&lt;BR /&gt;cc1: warning: command line option "-fpermissive" is valid for C++/ObjC++ but not for C&lt;BR /&gt;cc1: warning: command line option "-fpermissive" is valid for C++/ObjC++ but not for C&lt;BR /&gt;gcc -c -Wall -fpermissive -O3 -funroll-loops -ffast-math -fpermissive  -D_BIGENDIAN_MACHINE -Dunix -DMAX_PATH=256 convert.cpp -o convert.o&lt;BR /&gt;descattr.h:53: warning: attribute ignored in declaration of 'struct NTXDescriptor'&lt;BR /&gt;descattr.h:53: warning: attribute for 'struct NTXDescriptor' must follow the 'struct' keyword&lt;BR /&gt;ntxshape.h:47: warning: 'stdcall' attribute directive ignored&lt;BR /&gt;ntxshape.h:49: warning: 'stdcall' attribute directive ignored&lt;BR /&gt;ntxshape.h:50: warning: 'stdcall' attribute directive ignored&lt;BR /&gt;convert.cpp:88: warning: 'stdcall' attribute directive ignored&lt;BR /&gt;gcc   -o ntxshape stripext.o convert.o libntxshape.a -lstdc++ -lm&lt;BR /&gt;/usr/ccs/bin/ld: libntxshape.a: Missing library symbol table&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;gmake: *** [ntxshape] Error 1&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 15:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907527#M702639</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-22T15:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907528#M702640</link>
      <description>One cannot mix 32-bit and 64-bit objects. You should have done 'gmake -f Makefile.hpux clean' to delete all object files (.o) before recompiling. It's best to delete the whole directory, unzip with -a, make mods again and recompile.</description>
      <pubDate>Wed, 22 Jun 2005 16:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907528#M702640</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-22T16:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compile not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907529#M702641</link>
      <description>Thank you so much for all your help Ermin!  After deleting all the files in the ntxshape directory, re-unzipping them, and then compiling with 32bit GCC...success.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Sally</description>
      <pubDate>Wed, 22 Jun 2005 16:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-not-working/m-p/4907529#M702641</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-06-22T16:53:26Z</dc:date>
    </item>
  </channel>
</rss>

