[OpenAFS-devel] still build issues on solaris 2.6 (patch i
ncluded)
Neulinger, Nathan R.
nneul@umr.edu
Fri, 22 Dec 2000 08:35:34 -0600
It looks like both /usr/ucblib/libcurses.* and /usr/xpg4/lib/libcurses.*
only define initscr, they do not define initscr32.
But /usr/ccs/lib/libcurses.a does appear to have it.
Here's a quick patch to cause it to build properly on my machine:
Index: config/Makefile.sun4x_56
===================================================================
RCS file: /cvs/openafs/src/config/Makefile.sun4x_56,v
retrieving revision 1.2
diff -u -r1.2 Makefile.sun4x_56
--- config/Makefile.sun4x_56 2000/11/04 10:04:20 1.2
+++ config/Makefile.sun4x_56 2000/12/22 14:34:22
@@ -22,7 +22,7 @@
#
# libraries
XLIBS=-lsocket -lnsl -lintl -ldl
-TXLIBS=-lcurses
+TXLIBS=-L/usr/ccs/lib -lcurses
MTLIBS=-lpthread -lsocket
XLIBELFA=-lelf
XLIBKVM=-lkvm
That shouldn't interfere or cause problems with anything else, but should
correct the build for anyone who has a sun4x_56 install like we do, with
ucblib present.
-- Nathan
> -----Original Message-----
> From: ajf@lehman.com [mailto:ajf@lehman.com]
> Sent: Thursday, December 21, 2000 2:47 PM
> To: nneul@umr.edu
> Cc: openafs-devel@openafs.org; warlord@MIT.EDU
> Subject: Re: [OpenAFS-devel] still build issues on solaris 2.6
>
>
>
> Try /usr/xpg4/lib .
>
> --art
>
> > > > > Subject: Re: [OpenAFS-devel] still build issues on solaris 2.6
> > > > >
> > > > >
> > > > > Right, curses is busted on older versions of
> Solaris.. Try using
> > > > > ncurses? Or make sure you're getting curses from
> /usr/lib, not
> > > > > /usr/ucblib?
> > > > >
> > > > > -derek
> > > > >
> > > > > "Neulinger, Nathan R." <nneul@umr.edu> writes:
> > > > >
> > > > > > I still get the following building on sun4x_56:
> > > > > >
> > > > > > /umr/bin/cc -I.
> > > > > -I/afs/.umr.edu/software/openafs/sun4x_56/dest/include
> > > > > > -I/afs/.umr.edu/software/openafs/sun4x_56/dest/include/afs
> > > > > -dy -Bdynamic -c
> > > > > > gtxtest.c
> > > > > > /umr/bin/cc -o gtxtest gtxtest.o libgtx.a
> > > > > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/librx.a
> > > > > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/liblwp.a
> > > > > >
> /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libsys.a
> > > > > >
> /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libcmd.a
> > > > > >
> /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libkauth.a
> > > > > >
> /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libauth.a
> > > > > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/librxkad.a
> > > > > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/libdes.a
> > > > > >
> > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libcom_err.a
> > > > > >
> > >
> /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/util.a -lcurses
> > > > > >
> > > > > /afs/.umr.edu/software/openafs/sun4x_56/dest/lib/afs/libtermli
> > > > > b.a -lsocket
> > > > > > -lnsl -lintl -ldl
> > > > > > Undefined first referenced
> > > > > > symbol in file
> > > > > > initscr32
> libgtx.a(curseswindows.o)
> > > > > > box32
> libgtx.a(curseswindows.o)
> > > > > > raw
> libgtx.a(curseswindows.o)
> > > > > > tgoto
> > > > > /usr/ucblib/libcurses.a(cr_put.o)
> > > > > > tputs
> > > > > /usr/ucblib/libcurses.a(endwin.o)
> > > > > > w32addch
> libgtx.a(curseswindows.o)
> > > > > > noraw
> libgtx.a(curseswindows.o)
> > > > > > ld: fatal: Symbol referencing errors. No output written
> > > to gtxtest
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `gtxtest'
> > > > > > Current working directory
> > > > > /afs/.umr.edu/software/openafs/sun4x_56/obj/gtx
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `gtx'
> > > > > > Current working directory /afs/.umr.edu/software/openafs
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `install'
> > > > > > Current working directory /afs/.umr.edu/software/openafs
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `all'
> > > > > >
> > > > > >
> > > > > >
> > > > > > This doesn't occur on sun4x_57.
> > > > > >
> > > > > > -- Nathan
> > > > > >
>