make error after compile 1.4.6

paul young paul.young at wiltshire.gov.uk
Thu Mar 10 08:05:12 PST 2011


Could you recommend another version fro me to try, i notice some people are saying they are reverting back to 1.4.4. Coming from 1.2.7 would this be more viable do you think?

Regards

Paul




> paul young wrote:
>
> >
> > i have edite out the defines within config.h but then had another error
> > for linking cupsd.
> >
> > I searched the archives and found a link stating that it maybe possible to
> > remove the "-lnsl" entry from the Makefile.
> >
> > This has solved the Linking of cupsd but now gives me:
> >
> > Linking websearch...
> > Undefined                       first referenced
> >  symbol                             in file
> > gethostbyname                       ../cups/libcups.a(http-addr.o)
> > (symbol belongs to implicit dependency /usr/local/lib/libnsl.so.1) ld:
> > fatal: Symbol referencing errors. No output written to websearch collect2:
> > ld returned 1 exit status.
> >
> >
> > Would I be better off getting the sledge hammer out of the car :), it
> > seems that after fixing one issue I roll into another :(
> >
> >
> >
> > Regards
> >
> > Paul
> >
> >
> >
> >> Edit config.h and comment out the HAVE_STATFS define.
> >>
> >> (this is fixed in the forthcoming 1.4.7 release)
> >>
> >> On Mar 10, 2011, at 3:13 AM, paul young wrote:
> >>
> >> >=20
> >> > Getting closer. I now have the following output when running the =
> >> "make" command.
> >> >=20
> >> > At this point I'm installing onto a test server that has cups 1.2.7 =
> >> installed but no printers:
> >> >=20
> >> > printers.c: In function `cupsdCreateCommonData':
> >> > printers.c:493: error: too few arguments to function `statfs'
> >> > printers.c: In function `add_printer_filter':
> >> > printers.c:3691: warning: unsigned int format, mode_t arg (arg 6)
> >> > printers.c:3718: warning: unsigned int format, mode_t arg (arg 6)
> >> > *** Error code 1
> >> > The following command caused the error:
> >> > gcc  -Wall -Wno-format-y2k -fPIC -Os -g -I.. -D_CUPS_SOURCE  =
> >> -DOPENSSL_DISABLE_OLD_DES_SUPPORT  -D_LARGEFILE_SOURCE =
> >> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_THREAD_SAFE =
> >> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  -c -o printers.o printers.c
> >> > make: Fatal error: Command failed for target `printers.o'
> >> > Current working directory /opt/csw/cups-1.4.6/scheduler
> >> > *** Error code 1
> >> > The following command caused the error:
> >> > for dir in cups filter backend berkeley cgi-bin driver locale man =
> >> monitor  notifier ppdc scheduler systemv test    conf data doc examples =
> >> fonts templates; do\
> >> >        echo Making all in $dir... ;\
> >> >        (cd $dir ; make  all ) || exit 1;\
> >> > done
> >> > make: Fatal error: Command failed for target `all'
> >> >=20
> >> >=20
> >> > Is this due to another flag being required during the configure stage?
> >> >=20
> >> > regards
> >> >=20
> >> > Paul
> >> >=20
> >> >=20
> >> >=20
> >> >=20
> >> >> Thank you for your quick reply, I will give it a try now.
> >> >>=20
> >> >> Interesting bit for me is that the site I'm currently working at =
> >> stated they were running Solaris 10, is this an old version?
> >> >>=20
> >> >>=20
> >> >>=20
> >> >>=20
> >> >>> You are using an old version of Solaris - add the "--disable-gssapi"
> >> >>> =
> >> =3D
> >> >>> configure option to make the problem go away or install a newer =
> >> version =3D
> >> >>> of Solaris that has working GSSAPI headers.
> >> >>>=20
> >> >>> On Mar 9, 2011, at 8:44 AM, paul young wrote:
> >> >>>=20
> >> >>>> Hi,
> >> >>>> =3D20
> >> >>>> I'm quite new to all of the NIX environmet, coming from a Windows
> >> >>>> =3D=
> >>
> >> >>> support back ground.
> >> >>>> =3D20
> >> >>>> I have managed to run the ./compile for cups 1.4.6. This took a =
> >> while =3D
> >> >>> for me while debugging missing /libs etc but got there in the end.
> >> >>>> =3D20
> >> >>>> Once this completed I almost jumped for joy and jumped straight to =
> >> the =3D
> >> >>> next step of "make".
> >> >>>> =3D20
> >> >>>> This has failed with the following ppdc error:
> >> >>>> =3D20
> >> >>>> Compiling ppdc-array.cxx...
> >> >>>> In file included from ../cups/http-private.h:60,
> >> >>>>                from ../cups/globals.h:26,
> >> >>>>                from ppdc-private.h:24,
> >> >>>>                from ppdc-array.cxx:29:
> >> >>>> /usr/include/kerberosv5/krb5.h:11: warning: ignoring #pragma ident
> >> >>>> In file included from ../cups/http-private.h:60,
> >> >>>>                from ../cups/globals.h:26,
> >> >>>>                from ppdc-private.h:24,
> >> >>>>                from ppdc-array.cxx:29:
> >> >>>> /usr/include/kerberosv5/krb5.h:3122: error: expected declaration =3D
> >> >>> before '}' token
> >> >>>> In file included from ../cups/http-private.h:60,
> >> >>>>                from ../cups/globals.h:26,
> >> >>>>                from ppdc-private.h:24,
> >> >>>>                from ppdc-array.cxx:29:
> >> >>>> /usr/include/kerberosv5/krb5.h:3121:1: unterminated #ifdef
> >> >>>> /usr/include/kerberosv5/krb5.h:8:1: unterminated #ifndef
> >> >>>> In file included from ../cups/globals.h:26,
> >> >>>>                from ppdc-private.h:24,
> >> >>>>                from ppdc-array.cxx:29:
> >> >>>> ./cups/http-private.h:59:1: unterminated #ifdef
> >> >>>> ./cups/http-private.h:43:1: unterminated #ifdef
> >> >>>> ./cups/http-private.h:18:1: unterminated #ifndef
> >> >>>> In file included from ppdc-private.h:24,
> >> >>>>                from ppdc-array.cxx:29:
> >> >>>> ./cups/globals.h:18:1: unterminated #ifndef
> >> >>>> In file included from ppdc-array.cxx:29:
> >> >>>> ppdc-private.h:15:1: unterminated #ifndef
> >> >>>> *** Error code 1
> >> >>>> The following command caused the error:
> >> >>>> g++  -Wall -Wno-format-y2k -fPIC -Os -g -I.. -D_CUPS_SOURCE =3D
> >> >>> -I/usr/include/kerberosv5 -DOPENSSL_DISABLE_OLD_DES_SUPPORT  =3D
> >> >>> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D3D64
> >> >>> =
> >> =3D
> >> >>> -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  -c -o =3D
> >> >>> ppdc-array.o ppdc-array.cxx
> >> >>>> make: Fatal error: Command failed for target `ppdc-array.o'
> >> >>>> Current working directory /opt/csw/cups-1.4.6/ppdc
> >> >>>> *** Error code 1
> >> >>>> The following command caused the error:
> >> >>>> for dir in cups filter backend berkeley cgi-bin driver locale man
> >> >>>> =3D=
> >>
> >> >>> monitor  notifier ppdc scheduler systemv test    conf data doc =
> >> examples =3D
> >> >>> fonts templates; do\
> >> >>>>       echo Making libraries in $dir... ;\
> >> >>>>       (cd $dir ; make  libs) || exit 1;\
> >> >>>> done
> >> >>>> make: Fatal error: Command failed for target `libs'
> >> >>>> =3D20
> >> >>>> =3D20
> >> >>>> I then tried to uncomment the line "#include "ppdc-private.h"
> >> >>>> =3D20
> >> >>>> which then gives me a string of other errors which I can post if =3D
> >> >>> needed.
> >> >>>> =3D20
> >> >>>> Can anyone point out what i'm doing wrong please, my time scale to =
> >> =3D
> >> >>> update cups from 1.2.7 to 1.4.6 is running out fast.
> >> >>>> =3D20
> >> >>>> Kind Regards
> >> >>>> =3D20
> >> >>>> Paul
> >> >>>> =3D20
> >> >>>> =3D20
> >> >>>> _______________________________________________
> >> >>>> cups-bugs mailing list
> >> >>>> cups-bugs at easysw.com
> >> >>>> http://lists.easysw.com/mailman/listinfo/cups-bugs
> >> >>>=20
> >> >>> =
> >> ________________________________________________________________________
> >> >>> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >> >>>=20
> >> >>=20
> >> >=20
> >> > _______________________________________________
> >> > cups-bugs mailing list
> >> > cups-bugs at easysw.com
> >> > http://lists.easysw.com/mailman/listinfo/cups-bugs
> >>
> >> ________________________________________________________________________
> >> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >>
>
> It is now some time ago since I had a Solaris 10 system at hand (having now
> openSolaris), but I remember I had to apply a long list of patches to the
> Solaris 10 system to get CUPS (then 1.3.5) compiled, though without ldap and
> kerberos.
>
> Helge
>





More information about the cups-devel mailing list