[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problems compiling 4.0.3 for IRIX 6.5.x



On Tue, Mar 12, 2002 at 10:25:00AM -0600, John Dickerson wrote:
> Hi,
> 
> Has anyone successfully built RPM 4.0.3 for IRIX 6.5.x?
> 
> I'm getting unresolved symbols errors after progressing through most of
> the build ok...
> --------------
> gmake[2]: Entering directory `/usr/local/src/rpm-4.0.3'
> /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I./build -I./lib
> -I./rpmdb -I./rpmio -I./popt -I./misc -I./intl  -I/usr/local/include 
> -I/usr/local/include  -I/usr/local/include -D_GNU_SOURCE -D_REENTRANT
> -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
> -Wno-char-subscripts -c rpm2cpio.c
> /bin/sh ./libtool --mode=link /usr/local/bin/gcc  -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes
> -Wmissing-prototypes -Wno-char-subscripts -L/usr/local/lib -rpath
> /usr/local/lib -o rpm2cpio  rpm2cpio.o ./build/librpmbuild.la
> ./lib/librpm.la ./rpmdb/librpmdb.la ./rpmio/librpmio.la
> ./popt/libpopt.la ./intl/libintl.a  ./misc/libmisc.a ./misc/libmisc.a 
> mkdir .libs
> /usr/local/bin/gcc -I/usr/local/include -D_GNU_SOURCE -D_REENTRANT -Wall
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
> -Wno-char-subscripts -o rpm rpm.o  -L/usr/local/lib
> ./build/.libs/librpmbuild.a ./lib/.libs/librpm.a
> ./rpmdb/.libs/librpmdb.a ./rpmio/.libs/librpmio.a -lz -lbz2
> ./popt/.libs/libpopt.a ./intl/libintl.a ./misc/libmisc.a -Wl,-rpath
> -Wl,/usr/local/lib
> ld32: WARNING 84 : ./misc/libmisc.a is not used for resolving any
> symbol.
> ld32: ERROR   33 : Unresolved text symbol "pthread_mutexattr_init" --
> 1st referenced by ./rpmdb/.libs/librpmdb.a(mut_pthread.o).
>         Use linker option -v to see when and which objects, archives and
> dsos are loaded.  
> ld32: ERROR   33 : Unresolved text symbol "pthread_mutexattr_setpshared"
> -- 1st referenced by ./rpmdb/.libs/librpmdb.a(mut_pthread.o).
>         Use linker option -v to see when and which objects, archives and
> dsos are loaded.  
> [additional errors snipped] 
> ----------------
> 
> Here's the configure command I'm using:
> 
> CC="/usr/local/bin/gcc" CFLAGS="-I/usr/local/include"
> LDFLAGS="-L/usr/local/lib -rpath /usr/local/lib"
> CPPFLAGS="-I/usr/local/include" ./configure --prefix=/usr/local
> --with-included-gettext
> 
> Also using gcc 2.95.3, but using the IRIX ld.
> 
> Should I be concerned about the "./misc/libmisc.a is not used for
> resolving any symbol." messages?

You'll know when you need libmisc.a.

FWIW, the two symbols are from POSIX pthreads, but are unfortunately
optional, and so not widely available.

You need to find a pthread library on IRIX with the symbols, and will need
to add that to your linkage. Alternatively use the internal asm locks
within Berkeley DB (if available), and avoid the issue entirely.
Yes you need locking. No you don't need threads, but thread
locks from a POSIX pthread library can be used for (non-thread) locking.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []