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

Re: Problem with gettext 0.12.1 and popt on HP-UX 11.00



In regard to: Problem with gettext 0.12.1 and popt on HP-UX 11.00, Dano...:

>I am attempting to build rpm 4.1 on an HP-UX 11.00 box. I have gettext
>0.12.1 installed in /usr/local, but I get the following error when I get
>to popt:
>
>creating libpopt.la
>(cd .libs && rm -f libpopt.la && ln -s ../libpopt.la libpopt.la)
>/bin/sh ./libtool --mode=link /usr/local/bin/gcc  -g -O2  -L/usr/local/lib
>-o test1 -all-static test1.o libpopt.la /usr/local/bin/gcc -g -O2 -o test1
>-static test1.o  -L/usr/local/lib ./.libs/libpopt.a
>/usr/ccs/bin/ld: Unsatisfied symbols:
>    libintl_dgettext (first referenced in ./.libs/libpopt.a(popt.o)) (code)
>collect2: ld returned 1 exit status
>make[2]: *** [test1] Error 1

Try re-executing the libtool command without the `-all-static' and see if
the problem goes away.

Also, HP-UX's linker requires (as most UNIX linker's do) that libraries
be listed *after* the objects that require them.  Since it's libpopt.a
that requires libintl_dgettext, the library that would satisfy that should
occur later on the link line, but there's no library listed after

	./.libs/libpopt.a

so it looks to me like your link line doesn't contain the necessary
libraries (probably -L/usr/local/lib -lintl, possibly as a result of
having a `libintl.la' on the initial libtool line).

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




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