title: Problems with rpm and rpmbuild in cygwin
body: <p>I just installed cygwin for the first time today, so I'm very new.  During the installation, I included rpm and rpmbuild, as I need these to run my ant script.</p>
  
  <p>However, when I try to run either program from the command line, I get no response, regardless of what input I give it:</p>
  
  <pre><code>$ rpm -qa
  $
  $ rpmbuild
  $
  </code></pre>
  
  <p>When I try to run ant with a build.xml file calling rpm, I get something like this:</p>
  
  <pre><code>$ ant rpm
  Buildfile: [mypath]/build.xml
  
  rpm-prep:
  ...
  [standard prep output]
  ...
  rpm:
       [copy] Copying 4116 files to [mypath]\.rpm\SOURCES\DataTransformation_UI-1.4.0
       [copy] Copied 274 empty directories to 16 empty directories under [mypath]\.rpm\SOURCES\DataTransformation_UI-1.4.0
        [tar] Building tar: [mypath]\.rpm\SOURCES\DataTransformation_UI-1.4.0.tar.gz
       [copy] Copying 1 file to [mypath]\.rpm\SPECS
        [rpm] Building the RPM based on the DataTransformation_UI.spec file
    [rpm] '[cygwinpath]\cygwin\bin\rpmbuild.exe' failed with exit code -1073741819
  
  BUILD SUCCESSFUL
  Total time: 1 minute 30 seconds
  </code></pre>
  
  <p>Here, [mypath] is the local path where my build.xml file resides, and [cygwinpath] is where I have installed cygwin.</p>
  
  <p>In case you are interested, here is the build.xml file.  Looks pretty standard to me, although I don't use any much either:</p>
  
  <pre><code>&lt;project name="DataTransformation_UI" basedir="." default="main"&gt;
          &lt;property file="${basedir}/build.properties" /&gt;
  
    &lt;property name="VERSION"        value="3.0.0"/&gt;
    &lt;!-- ============================ RPM Prep Target ======================== --&gt;
    &lt;target name="rpm-prep" description="Set up the local RPM TopDir build environment"&gt;
      &lt;delete includeEmptyDirs="true" failonerror="false"&gt;
        &lt;fileset dir="${rpm.TopDir}/"/&gt;
      &lt;/delete&gt;
      &lt;mkdir dir="${rpm.TopDir}/"/&gt;
      &lt;mkdir dir="${rpm.TopDir}/BUILD"/&gt;
      &lt;mkdir dir="${rpm.TopDir}/RPMS"/&gt;
      &lt;mkdir dir="${rpm.TopDir}/SOURCES"/&gt;
      &lt;mkdir dir="${rpm.TopDir}/SPECS"/&gt;
      &lt;mkdir dir="${rpm.TopDir}/SRPMS"/&gt;
    &lt;/target&gt;
  
    &lt;!-- ========================= RPM Build Target ======================== --&gt;
    &lt;target name="rpm" depends="rpm-prep" description="Creates Tarball and Builds rpm."&gt;
      &lt;copy todir="${rpm.TopDir}/SOURCES/${rpm.Name}-${rpm.Version}"&gt;
        &lt;fileset dir="./" casesensitive="no"&gt;
          &lt;include name="*.*"/&gt;
          &lt;include name="**/*"/&gt;
        &lt;/fileset&gt;
      &lt;/copy&gt;
      &lt;tar destfile="${rpm.TopDir}/SOURCES/${rpm.Name}-${rpm.Version}.tar.gz"
                                      longfile="gnu" compression="gzip"&gt;
            &lt;tarfileset dir="${rpm.TopDir}/SOURCES/${rpm.Name}-${rpm.Version}" prefix="${rpm.Name}-${rpm.Version}"&gt;
          &lt;include name="**/**"/&gt;
          &lt;include name="*.*"/&gt;
        &lt;/tarfileset&gt;
      &lt;/tar&gt;
      &lt;delete includeEmptyDirs="true" failonerror="false"&gt;
          &lt;fileset dir="${rpm.TopDir}/SOURCES/${rpm.Name}-${rpm.Version}"/&gt;
      &lt;/delete&gt;
      &lt;copy file="${basedir}/${rpm.Name}.spec" todir="${rpm.TopDir}/SPECS" /&gt;
      &lt;rpm specFile="${rpm.Name}.spec" topDir="${rpm.TopDir}" command="-ba --define 'rpmversion ${rpm.Version}' --define 'rpmrelease ${rpm.Release}${rpm.AutoRelease}' 
        --define 'webwarname ${rpm.Web.Warname}' --define 'rpmname ${rpm.Name}'"/&gt;
    &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Any ideas on what I might be missing?</p>