List Info

Thread: P4Ruby build issues on Mac OS 10.4.7




P4Ruby build issues on Mac OS 10.4.7
user name
2006-08-16 20:47:05
Tony,
 
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.
 
Thanks again,
 
Bree
 
 
-----Original Message-----
From: Bree VanOss [mailto:vanossbmac.com]
Sent: Wednesday, August 16, 2006 7:37 AM
To: p4rubyperforce.com
Cc: tonysmee.org; Bree Van Oss
Subject: P4Ruby build issues on Mac OS 10.4.7

Tony,

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)

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 
ld: Undefined symbols:
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZdaPv
__ZdlPv
___gxx_personality_v0
__Znwm
_printf$LDBLStub
_fprintf$LDBLStub
__Znam
_sprintf$LDBLStub
___cxa_pure_virtual
_fscanf$LDBLStub
_CFBundleGetInfoDictionary
_CFDictionaryGetValue
_CFRelease
_CFStringCompare
_LSGetApplicationForInfo
_LSGetApplicationForItem
_SetFrontProcess
___CFStringMakeConstantString
__ZTVN10__cxxabiv121__vmi_class_type_infoE
_AECoerceDesc
_AECreateAppleEvent
_AECreateDesc
_AECreateList
_AEDisposeDesc
_AEGetDescData
_AEGetDescDataSize
_AEGetParamPtr
_AEPutDesc
_AEPutParamDesc
_AESend
_CFBundleCopyExecutableURL
_CFBundleCreate
_CFStringAppendCharacters
_CFStringCreateMutable
_CFStringGetCString
_CFStringGetLength
_CFURLCreateFromFSRef
_CFURLGetFSRef
_CreateTextEncoding
_DisposeHandle
_DisposePtr
_EqualString
_FSResolveAliasFile
_Gestalt
_GetNextProcess
_GetProcessInformation
_GetScriptManagerVariable
_GetTextEncodingBase
_GetTextEncodingFormat
_LSFindApplicationForInfo
_LSOpenFromRefSpec
_LaunchApplication
_NewPtrClear
_TECConvertText
_TECCreateConverter
_TECDisposeConverter
_TECFlushText
_UpgradeScriptInfoToTextEncoding
_WaitNextEvent
_kCFAllocatorDefault
_CFStringReplaceAll
_CFURLCopyFileSystemPath
_CFURLCreateWithFileSystemPath
_FSCloseFork
_FSCreateDirectoryUnicode
_FSCreateFileUnicode
_FSDeleteFork
_FSDeleteObject
_FSGetCatalogInfo
_FSGetDataForkName
_FSGetForkPosition
_FSGetResourceForkName
_FSMakeFSRefUnicode
_FSOpenFork
_FSPathMakeRef
_FSReadFork
_FSRefMakePath
_FSSetCatalogInfo
_FSSetForkPosition
_FSSetForkSize
_FSWriteFork
_ICLaunchURL
_ICMapFilename
_ICStart
_ICStop
_NewHandle
make: *** [P4.bundle] Error 1
macfrito:/usr/local/perforce/build/p4ruby/P4Ruby-1.4841 perforce$ gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1809)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.





P4Ruby build issues on Mac OS 10.4.7
user name
2006-08-17 13:47:00
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
_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )