Menu

#41 Can't compile on Mac OS X Server 10

open
nobody
None
5
2002-02-19
2002-02-19
Anonymous
No

ar -r libgetopt.a getopt.o getopt1.o
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -
I/usr/include -arch ppc -c snprintf.c
ar -r libsnprintf.a snprintf.o
cc -L. -L/usr/lib -o check_disk check_disk.o utils.o
popen.o -lkvm -lgetopt -lsnprintf
/usr/bin/ld: table of contents for
archive: ./libgetopt.a is out of date; rerun ranlib(1)
(can't load from it)
/usr/bin/ld: table of contents for
archive: ./libsnprintf.a is out of date; rerun ranlib
(1) (can't load from it)
make[1]: *** [check_disk] Error 1
make: *** [all-recursive] Error 1

Discussion

  • Scott Nelson

    Scott Nelson - 2002-03-16

    Logged In: YES
    user_id=487432

    What version are you trying to compile? I was having
    quite a few problems with 1.2.9-4 but 1.2.8-4 compiled
    and installed very easily. This is on Mac OS X 10.1.3 -
    non server version.

     
  • Scott Nelson

    Scott Nelson - 2002-03-16

    Logged In: YES
    user_id=487432

    Btw - I've found that on OS X if you get errors about
    ranlib out of date - just run -

    ranlib *.a in the directory where the lib files are
    (example ranlib /usr/local/lib/*.a)

     
  • Ricardo Saito

    Ricardo Saito - 2002-03-18

    Logged In: YES
    user_id=489758

    Hi,

    The version is netsaint-plugins-1.2.9-4.

    Ranlib doesn't help. I ran it libsnprintf.a and then I get
    another error. I found out that I have to replace the -
    lkvm -lgetopt -lsnprintf with the actual .o files to make
    it compile.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.