Compile errors in hpux

Anonymous anonymous at easysw.com
Mon Nov 8 13:34:16 PST 2004


Thanks Helge. I do have gcc v3.4.2.
Appreciate ur help.


> Well, now it seems to be an HPUX configuration issue - where
> to find the desired libraries and which include files to use.
>
> What compiler do you use - gcc or the native c compiler?
> On a variety of systems (SunOS 4.1.4, SINIX 5.4x, UnixWare 7.1.0, ...)
> I found that it is worth wile to use gcc or even (if there is no gcc
> or it is too old) build a working gcc first. The gcc setup usually
> fixes the header files.
>
> Helge
>
> Anonymous wrote:
> >
> > Thanks Helge. After I commented the "getspnam" entry in /usr/include/prot.h, I got the following error.
> >
> > ------------------------------
> >
> > Making all in cups...
> > Linking libcups.sl.2...
> > ld: Can't find library: "ssl"
> > *** Error exit code 1
> >
> > Stop.
> > *** Error exit code 1
> >
> > Stop.
> > -------------------------------
> >
> > Then I edited Makedefs and made "SSLFLAGS" and "SSLLIBS" null. Then tried compiling, but it still fails with the following error:
> > -------------------------------
> > Compiling file.c...
> > file.c: In function `cupsFileSeek':
> > file.c:554: error: structure has no member named `eof'
> > file.c: In function `cups_fill':
> > file.c:641: warning: unused variable `ptr'
> > file.c:642: warning: unused variable `end'
> > *** Error exit code 1
> >
> > Stop.
> > *** Error exit code 1
> >
> > Stop.
> > -------------------------------
> >
> > I do have openssl also installed. I appreciate your help.
> >
> > > Anonymous wrote:
> > > >
> > > > I try to compile (make) in HP-UX 11.11 and it fails with the following messages
> > > >
> > > > ------------
> > > > Compiling auth.c...
> > > > In file included from auth.c:61:
> > > > /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> > > > /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> > > > /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> > > > /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> > > > auth.c: In function `IsAuthorized':
> > > > auth.c:1017: warning: assignment from incompatible pointer type
> > > > *** Error exit code 1
> > > >
> > > > Stop.
> > > > *** Error exit code 1
> > > >
> > > > Stop.
> > > > -------------
> > > >
> > > > I have the gcc 3.4.2 with all dependencies installed - bison, flex, gettext, libiconv, m4.
> > > >
> > > > I appreciate anyone's help to resolve this issue.
> > > >
> > >
> > > Obviously HPUX provides different and conflicting definitions of the
> > > getspnam
> > > function. I've no HPUX at hand, but I suspect the definition in gstspnam
> > > is the
> > > "official" one, perhaps you may comment the one in prot.h out?
> > >
> > > Helge
> > >
> > >
>
>
> --
> Helge Blischke
> Softwareentwicklung
> SRZ Berlin | Firmengruppe besscom
> http://www.srz.de
> tel: +49 30 75301-360





More information about the cups mailing list