public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Need a 64-bit version of unrtf
@ 2013-12-18 20:34 Tom Robinson
  2013-12-18 20:52 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Robinson @ 2013-12-18 20:34 UTC (permalink / raw)
  To: cygwin

Hi guys, I need to run unrtf under a 64-bit install of CYGWIN_NT-6.3

Apparently it's MIA:  http://cygwin.com/ml/cygwin-apps/2013-08/msg00256.html (maintained by Jari Aalto).

Is a 64-bit version in the repository close, or can somebody help me compile it?

I tried downloading directly and compiling, per http://www.gnu.org/software/unrtf/unrtf.html, but am getting an error in make:


[2397 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 attr.c
In file included from output.h:41:0,
                 from main.h:48,
                 from attr.c:68:
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).

Thanks.


--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need a 64-bit version of unrtf
  2013-12-18 20:34 Need a 64-bit version of unrtf Tom Robinson
@ 2013-12-18 20:52 ` Corinna Vinschen
  2013-12-18 22:35   ` Tom Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2013-12-18 20:52 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need a 64-bit version of unrtf
  2013-12-18 20:52 ` Corinna Vinschen
@ 2013-12-18 22:35   ` Tom Robinson
  2013-12-18 23:31     ` David Stacey
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Robinson @ 2013-12-18 22:35 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need a 64-bit version of unrtf
  2013-12-18 22:35   ` Tom Robinson
@ 2013-12-18 23:31     ` David Stacey
  2013-12-19  1:44       ` Tom Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: David Stacey @ 2013-12-18 23:31 UTC (permalink / raw)
  To: cygwin

On 18/12/13 22:35, Tom Robinson wrote:
> [2411 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ unrtf --version
> -bash: unrtf: command not found

It looks like you missed out a 'make install'.

Dave.


--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need a 64-bit version of unrtf
  2013-12-18 23:31     ` David Stacey
@ 2013-12-19  1:44       ` Tom Robinson
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Robinson @ 2013-12-19  1:44 UTC (permalink / raw)
  To: cygwin

On 2013-12-19, at 12:31, David Stacey wrote:

> On 18/12/13 22:35, Tom Robinson wrote:
>> [2411 CBGSAS04://cbgnas01/source/unrtf-0.21.5]$ unrtf --version
>> -bash: unrtf: command not found
> 
> It looks like you missed out a 'make install'.
> 
> Dave.

Lol!

Thanks for your time Corinna and Dave, all working now.

Cheers


--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-19  1:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-18 20:34 Need a 64-bit version of unrtf Tom Robinson
2013-12-18 20:52 ` Corinna Vinschen
2013-12-18 22:35   ` Tom Robinson
2013-12-18 23:31     ` David Stacey
2013-12-19  1:44       ` Tom Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).