I don't think you need to build the unittest for it to work--by the
time it gets to the unittest, it's already built the library that
procfs needs.

As for why the pcrecpp unittest isn't building, based on the error you
reported, looks like the compiler flags used for that particular file
are missing the "-arch ppc -arch i386" portion.

Amit

On Jun 7, 1:07 pm, Rick <[EMAIL PROTECTED]> wrote:
> Hi. I tried to follow the instructions given here for building pcre as
> a step toward building procfs:
>
> http://osxbook.com/book/bonus/chapter11/procfs/
>
> But, if I try to build pcre that way, I get the following:
>
> /bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2  -arch i386 -
> arch ppc -o pcrecpp_unittest pcrecpp_unittest.o libpcrecpp.la
> g++ -g -O2 -arch i386 -arch ppc -o .libs/pcrecpp_unittest
> pcrecpp_unittest.o -Wl,-bind_at_load  ./.libs/libpcrecpp.dylib /Users/
> rmann/Desktop/Downloads/pcre-7.1/.libs/libpcre.dylib
> /usr/bin/ld: for architecture ppc
> /usr/bin/ld: warning pcrecpp_unittest.o cputype (7, architecture i386)
> does not match cputype (18) for specified -arch flag: ppc (file not
> loaded)
> /usr/bin/ld: Undefined symbols:
> _main
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccUaeV76.out (No such file or
> directory)
>
> If I build pcre only for intel, then procfs complains that it can't
> find a universal pcre.
>
> Any suggestions?
>
> Thanks much!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to