delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/18/17:36:02

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=hxWDHGcXMq+FHuEfspu6RRrhCabi
MIUFBsYZg/GI0+qm7pK+RbjAB1Tn3uosGlPKtwNAR59b/Y6+j5Alw1KWG3l2AwVF
1hRhnPEFXE0/JCiXOTRi1SrPuyKNt3knqEBC2JuBfowZoyv6Cc1cuIULSOb74eLH
yw5AyDPEm6krLmw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=Amo0GTdLT5sSF1sTla/JpFDOqKk=; b=Af
KlAlaEKF5+FsOA3iw5+cOnKHmktayqTzua3hJaIHzoY29I2fMhvec7cPQt6Pg6w9
02RgRZfyRgt32MlKFLVGdzoatJ39sP9PyWeEJz4eg32JfjAPDKnuzmioqG9hyBxN
Vpu7ci2NQtDSlY7NhUBFHw68Y1X26ivegW+lo2YWw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pa0-f42.google.com
X-Received: by 10.68.211.1 with SMTP id my1mr37326194pbc.55.1387406141905; Wed, 18 Dec 2013 14:35:41 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
Subject: Re: Need a 64-bit version of unrtf
From: Tom Robinson <barefootguru AT gmail DOT com>
In-Reply-To: <20131218205224.GG30010@calimero.vinschen.de>
Date: Thu, 19 Dec 2013 11:35:38 +1300
Message-Id: <5F7C08A3-F3EA-449A-9449-61B5AD6F0A4E@gmail.com>
References: <48B7C7BA-0C2E-43F9-A151-7F8E6B718697 AT gmail DOT com> <20131218205224 DOT GG30010 AT calimero DOT vinschen DOT de>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rBIMZwfY023999

That got me further on thanks Corinna, but getting a different error now:

[2407 CBGSAS04:/cygdrive/e/Programs]$ ls -l /usr/include/ic*
-rw-r--r-- 1 cbg.tom Domain Users   13 Dec  9 23:54 /usr/include/icmp.h
-rw-r--r-- 1 cbg.tom Domain Users 9365 Mar  7  2013 /usr/include/iconv.h
[2408 CBGSAS04:/cygdrive/e/Programs]$ cd //cbgnas01/source/unrtf-0.21.5/
[2409 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for strchr... yes
checking for strstr... yes
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating outputs/Makefile
config.status: creating patches/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[2410 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ make
make  all-recursive
make[1]: Entering directory '//cbgnas01/source/unrtf-0.21.5'
Making all in src
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT attr.o -MD -MP -MF .deps/attr.Tpo -c -o attr.o at   tr.c
mv -f .deps/attr.Tpo .deps/attr.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT convert.o -MD -MP -MF .deps/convert.Tpo -c -o con   vert.o convert.c
mv -f .deps/convert.Tpo .deps/convert.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o    error.c
mv -f .deps/error.Tpo .deps/error.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o ha   sh.c
mv -f .deps/hash.Tpo .deps/hash.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT my_iconv.o -MD -MP -MF .deps/my_iconv.Tpo -c -o m   y_iconv.o my_iconv.c
my_iconv.c: In function ‘get_code_str’:
my_iconv.c:56:2: warning: passing argument 2 of ‘libiconv’ from incompatible pointer type [enabled by default]
 if (iconv(desc, &icp, &ibytes, &ocp, &obytes) == -1) {
 ^
In file included from my_iconv.h:39:0,
                from my_iconv.c:20:
/usr/include/iconv.h:83:15: note: expected ‘char **’ but argument is of type ‘unsigned char **’
extern size_t iconv (iconv_t cd,  char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
              ^
my_iconv.c:56:2: warning: passing argument 4 of ‘libiconv’ from incompatible pointer type [enabled by default]
 if (iconv(desc, &icp, &ibytes, &ocp, &obytes) == -1) {
 ^
In file included from my_iconv.h:39:0,
                from my_iconv.c:20:
/usr/include/iconv.h:83:15: note: expected ‘char **’ but argument is of type ‘unsigned char **’
extern size_t iconv (iconv_t cd,  char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
              ^
my_iconv.c: In function ‘my_iconv_open’:
my_iconv.c:76:6: warning: passing argument 1 of ‘search_in_path’ discards ‘const’ qualifier from pointer target type [enabled by def   ault]
     char *path = search_in_path(fromcode, "charmap");
     ^
In file included from my_iconv.c:23:0:
path.h:17:14: note: expected ‘char *’ but argument is of type ‘const char *’
extern char *search_in_path(char *name, char *suffix);
             ^
mv -f .deps/my_iconv.Tpo .deps/my_iconv.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o ma   in.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT malloc.o -MD -MP -MF .deps/malloc.Tpo -c -o mallo   c.o malloc.c
mv -f .deps/malloc.Tpo .deps/malloc.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT output.o -MD -MP -MF .deps/output.Tpo -c -o outpu   t.o output.c
mv -f .deps/output.Tpo .deps/output.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT parse.o -MD -MP -MF .deps/parse.Tpo -c -o parse.o    parse.c
mv -f .deps/parse.Tpo .deps/parse.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT path.o -MD -MP -MF .deps/path.Tpo -c -o path.o pa   th.c
mv -f .deps/path.Tpo .deps/path.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT unicode.o -MD -MP -MF .deps/unicode.Tpo -c -o uni   code.o unicode.c
mv -f .deps/unicode.Tpo .deps/unicode.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT user.o -MD -MP -MF .deps/user.Tpo -c -o user.o us   er.c
mv -f .deps/user.Tpo .deps/user.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o ut   il.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/usr/local/share/unrtf\"   -g -O2 -MT word.o -MD -MP -MF .deps/word.Tpo -c -o word.o wo   rd.c
mv -f .deps/word.Tpo .deps/word.Po
gcc  -g -O2   -o unrtf.exe attr.o convert.o error.o hash.o my_iconv.o main.o malloc.o output.o parse.o path.o unicode.o user.o util.   o word.o  -liconv
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/src'
Making all in tests
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5/tests'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/tests'
Making all in doc
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/doc'
Making all in patches
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5/patches'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/patches'
Making all in outputs
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5/outputs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/outputs'
make[2]: Entering directory '//cbgnas01/source/unrtf-0.21.5'
make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5'
make[1]: Leaving directory '//cbgnas01/source/unrtf-0.21.5'
[2411 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ unrtf --version
-bash: unrtf: command not found
[2412 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ where unrtf
INFO: Could not find files for the given pattern(s).
[2413 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$


On 2013-12-19, at 09:52, Corinna Vinschen wrote:

> On Dec 19 09:34, Tom Robinson wrote:
>> my_iconv.h:39:19: fatal error: iconv.h: No such file or directory
>> #include <iconv.h>
>>                  ^
>> compilation terminated.
>> Makefile:376: recipe for target 'attr.o' failed
>> make[2]: *** [attr.o] Error 1
>> make[2]: Leaving directory '//cbgnas01/source/unrtf-0.21.5/src'
>> Makefile:365: recipe for target 'all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory '//cbgnas01/source/unrtf-0.21.5'
>> Makefile:305: recipe for target 'all' failed
>> make: *** [all] Error 2
>> 
>> 
>> Ran cygwin setup and installed libiconv (including source), which is meant to include iconv.h (?), but still receiving the same error (and still no iconv.h in /usr/include).
> 
> Install libiconv-devel.
> 
> 
> Corinna


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019