This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need a 64-bit version of unrtf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]