Professional Web Applications Themes

compiling xpdf - SCO

I am getting errors compiling xpdf on 7.1.2 and could use some help. # make cd goo; make CC -g -DHAVE_CONFIG_H -I.. -I. -c GHash.cc "/usr/include/stdio.h", line 392: catastrophic error: could not open source file "cstdio" #include <cstdio> /* for namespace std */ ^ *** Error code 1 (bu21) UX:make: ERROR: fatal error. *** Error code 1 (bu21) UX:make: ERROR: fatal error. cstdio is a gcc file at /usr/local/include/g++/cstdio which should not be referenced unless the configure finds g++ and it shouldn't be (and the configuration indicates it has not..... If I set CC to gcc and change PATH and ...

  1. #1

    Default compiling xpdf


    I am getting errors compiling xpdf on 7.1.2 and could use some help.

    # make
    cd goo; make
    CC -g -DHAVE_CONFIG_H -I.. -I. -c GHash.cc
    "/usr/include/stdio.h", line 392: catastrophic error: could not open
    source file "cstdio"
    #include <cstdio> /* for namespace std */
    ^

    *** Error code 1 (bu21)
    UX:make: ERROR: fatal error.
    *** Error code 1 (bu21)
    UX:make: ERROR: fatal error.

    cstdio is a gcc file at /usr/local/include/g++/cstdio which should not
    be referenced unless the configure finds g++ and it shouldn't be (and
    the configuration indicates it has not.....

    If I set CC to gcc and change PATH and LD_LIBRARY_PATH to include
    /usr/local where the gcc stuff lives, I get other errors

    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    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 ANSI C... none needed
    checking for library containing strerror... none required
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for a BSD-compatible install... /usr/local/bin/install -c
    checking for ranlib... :
    checking for OS/2 (with EMX)... no
    checking for DOS (with DJGPP)... no
    checking how to run the C preprocessor... gcc -E
    checking for X... libraries /usr/X11R5/lib, headers
    checking for dnet_ntoa in -ldnet... no
    checking for dnet_ntoa in -ldnet_stub... no
    checking for gethostbyname... no
    checking for gethostbyname in -lnsl... no
    checking for gethostbyname in -lbsd... no
    checking for connect... no
    checking for connect in -lsocket... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for gethostbyname... (cached) no
    checking for gethostbyname in -lbsd... (cached) no

    this is the only questionable response from autoconf:
    checking select() and fd_set in sys/select.h and sys/bsdtypes.h...
    problem

    but then I get this

    # make
    cd goo; make
    make[1]: Entering directory `/home/marc/tmp/xpdf-2.02pl1/goo'
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I. -c GHash.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I. -c GList.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I. -c GString.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I. -c gmempp.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I. -c gfile.cc
    In file included from gfile.h:28,
    from gfile.cc:37:
    /usr/include/unistd.h:183: `intptr_t' was not declared in this scope
    /usr/include/unistd.h:183: warning: `sbrk' initialized and declared
    `extern'
    /usr/local/lib/gcc-lib/i486-pc-sysv5/egcs-2.91.60/include/stdlib.h:102:
    previous declaration of `void exit(int)' with C linkage
    /usr/include/unistd.h:261: conflicts with new declaration with C++
    linkage
    make[1]: *** [gfile.o] Error 1
    make[1]: Leaving directory `/home/marc/tmp/xpdf-2.02pl1/goo'
    make: *** [all] Error 2

    Apparently I have my environments mixed..... anyone have any
    suggestions?

    Marc Guest

  2. #2

    Default Re: compiling xpdf

    Marc Grober <com> wrote in message news:<com>... 

    The <cstdio> header is part of the C++ language and library standard
    and is present in all C++ implementations, not just g++.

    For the OUDK C++ compiler, which you are using, <cstdio> should be at
    /usr/include/CC/cstdio. If it is not there, you may have a botched
    installation of the ucplus package. Reinstall it from the OUDK CD-ROM
    in the media kit.

    Jonathan Schilling
    J. Guest

  3. #3

    Default Re: compiling xpdf

    When Unixware was branded Caldera OpenUnix I did a new install and was then told to
    install the old Unixware UDK which as a package, appeared to install correctly.....

    My listing of /usr/include/CC is below. How does that compare to yours?

    I installed gcc so as to avoid these issues and was disturbed that xpdf would not compile
    under the gcc install either.



    $ pwd
    /usr/include/CC
    $ ls -al
    total 140
    drwxr-xr-x 4 bin bin 1024 Jul 4 2001 .
    drwxrwxr-x 21 root bin 5120 Sep 2 10:33 ..
    -r--r--r-- 1 bin bin 1985 Sep 28 1999 common.h
    -r--r--r-- 1 bin bin 5263 Sep 28 1999 complex.h
    -r--r--r-- 1 bin bin 314 Sep 28 1999 cstdlib
    -r--r--r-- 1 bin bin 1046 Sep 28 1999 exception
    -r--r--r-- 1 bin bin 3817 Sep 28 1999 fstream.h
    -r--r--r-- 1 bin bin 2590 Sep 28 1999 generic.h
    -r--r--r-- 1 bin bin 4260 Sep 28 1999 iomanip.h
    -r--r--r-- 1 bin bin 16589 Sep 28 1999 iostream.h
    -r--r--r-- 1 bin bin 2631 Sep 28 1999 new
    -r--r--r-- 1 bin bin 1541 Sep 28 1999 new.h
    drwxr-xr-x 2 bin bin 1024 Jul 4 2001 rpc
    drwxr-xr-x 2 bin bin 96 Jul 4 2001 rpcsvc
    -r--r--r-- 1 bin bin 1117 Sep 28 1999 stdexcept
    -r--r--r-- 1 bin bin 1991 Sep 28 1999 stdiostream.h
    -r--r--r-- 1 bin bin 2590 Sep 28 1999 stream.h
    -r--r--r-- 1 bin bin 413 Sep 28 1999 string
    -r--r--r-- 1 bin bin 2998 Sep 28 1999 strstream.h
    -r--r--r-- 1 bin bin 2043 Sep 28 1999 typeinfo
    -r--r--r-- 1 bin bin 4513 Sep 28 1999 vector.h

    "J. L. Schilling" wrote:
     
    >
    > The <cstdio> header is part of the C++ language and library standard
    > and is present in all C++ implementations, not just g++.
    >
    > For the OUDK C++ compiler, which you are using, <cstdio> should be at
    > /usr/include/CC/cstdio. If it is not there, you may have a botched
    > installation of the ucplus package. Reinstall it from the OUDK CD-ROM
    > in the media kit.
    >
    > Jonathan Schilling[/ref]

    Marc Guest

  4. #4

    Default Re: compiling xpdf

    Marc Grober <com> wrote in message news:<com>... 

    I don't know why someone told you to do that ... it effectively back-rev's
    the UDK C++ compiler and puts its header files out of synch with the UDK
    C compiler's header files, thus the missing <cstdio>.

    Re-install the OUDK from the Open UNIX 8 media kit, or upgrade to the
    newer UDK 7.1.3 from UnixWare 7.1.3.

    Jonathan Schilling
    J. Guest

Similar Threads

  1. About compiling MXML to SWF
    By Digital Hand in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: February 8th, 09:30 PM
  2. To run without compiling
    By Eddy Soeparmin in forum ASP.NET General
    Replies: 2
    Last Post: July 30th, 05:33 PM
  3. Need help compiling Glib + Gtk
    By Dave Uhring in forum Sun Solaris
    Replies: 10
    Last Post: July 14th, 05:02 PM
  4. 2.4.21 not compiling
    By SYNeR in forum Debian
    Replies: 2
    Last Post: July 7th, 02:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139