2 messages in com.perforce.p4ruby[p4ruby] P4Ruby build issues on Mac O...
FromSent OnAttachments
Bree Van Oss16 Aug 2006 13:46 
Tony Smith17 Aug 2006 06:46 
Subject:[p4ruby] P4Ruby build issues on Mac OS 10.4.7
From:Tony Smith (to@smee.org)
Date:08/17/2006 06:46:37 AM
List:com.perforce.p4ruby

Hello Bree,

I'm not sure why this is not making it to the mailing list, so I figured I'd forward my question/issue from work.

It seems to have arrived safely.

I'm having problems trying to build P4Ruby on Mac OS 10.4.7 and I was hoping you could help.

I'm using the latest stable build of P4Ruby (1.4841) and p4api r2006.1. I'm including my session below. Please let me know if you need additional info. I've not tried the "nasty Darwin hack" because I was under the impression that it is a runtime fix and I'm having issues with the compilation step (though this may be a bad assumption on my part)

That's a safe assumption.

Your help is very much appreciated,

Bree

macfrito:/usr/local/perforce/build/p4api_06.1 perforce$ tar xf p4api_06.1.tar macfrito:/usr/local/perforce/build/p4api_06.1 perforce$ cd ../p4ruby/P4Ruby-1.4841 macfrito:/usr/local/perforce/build/p4ruby/P4Ruby-1.4841 perforce$ ruby p4conf.rb --apidir=../../p4api_06.1 --gccver=3

Starting to configure P4/Ruby for building

Enter the version of the Perforce API: 2006.1

P4/Ruby Configuration Summary

-----------------------------

Using Perforce API Version: 2006.1 API headers and libs from : /usr/local/perforce/build/p4api_06.1 Using OS name : DARWIN CFLAGS : -g -O2 -fno-common -pipe -fno-common -I/usr/local/perforce/build/p4api_06.1 -DOS_DARWIN -DCASE_INSENSITIVE LIBPATH : $(libdir):/usr/local/perforce/build/p4api_06.1 libs : -lclient -lrpc -lsupp

Creating extconf.h creating Makefile macfrito:/usr/local/perforce/build/p4ruby/P4Ruby-1.4841 perforce$ make cc -dynamic -bundle -L"/sw/lib" -L"/usr/local/perforce/build/p4api_06.1" -o P4.bundle clientuserruby.o p4.o p4clientapi.o p4result.o specmgr.o -lruby -lclient -lrpc -lsupp -ldl -lobjc ld: table of contents for archive: /usr/local/perforce/build/p4api_06.1/libclient.a is out of date; rerun ranlib(1) (can't load from it) ld: table of contents for archive: /usr/local/perforce/build/p4api_06.1/librpc.a is out of date; rerun ranlib(1) (can't load from it) ld: table of contents for archive: /usr/local/perforce/build/p4api_06.1/libsupp.a is out of date; rerun ranlib(1) (can't load from it) make: *** [P4.bundle] Error 1 macfrito:/usr/local/perforce/build/p4ruby/P4Ruby-1.4841 perforce$ ranlib ../../p4api_06.1/*.a macfrito:/usr/local/perforce/build/p4ruby/P4Ruby-1.4841 perforce$ make cc -dynamic -bundle -L"/sw/lib" -L"/usr/local/perforce/build/p4api_06.1" -o P4.bundle clientuserruby.o p4.o p4clientapi.o p4result.o specmgr.o -lruby -lclient -lrpc -lsupp -ldl -lobjc

It should link with c++ rather than cc - could you try that (manually, or by hacking the makefile) and let me know. Also, looks like you need to run 'ranlib lib*.a' in the API directory.

Thanks,

Tony