Re: getopt for non linux




On Sat, 19 Dec 1998, Dan Newcombe wrote:
> Trying to compile gnome-utils.0.99 on an HP system, which doesn't have the
> getopt stuff that is in the Linux libc.

That is in libgnomesupport.so, part of the gnome-libs package.  Configure
is supposed to check if you need it, and compile it into the library if
you do.  

Try typing the following (note: If you used a --prefix when making
gnome-libs, replace "/usr/local" with whatever you used):

   $ nm /usr/local/lib/libgnomesupport.so |grep getopt

If you get a line looking like
   000089ab T getopt

That is, an eight digit hexadecimal number, followed by a T, followed by
the function.  If you get that, then your library has the function, and
make sure that gnome-utils is linking with a -lgnomesupport option.  If
you get nothing, it didn't include the function, and you need to send a
bugreport about gnome-libs.

If the command's output looks nothing like I described, then you need to
figure out on your own whether nm is saying that getopt is in the library.

If you want to check out the files in question, they are:
  gnome-libs/support/getopt.h
  gnome-libs/support/getopt.c
  gnome-libs/support/getopt1.c

Best of Luck,
-Gleef



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