On Jun 7, 2007, at 1:34 PM, Amit Singh wrote:
> 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.
There doesn't seem to be a configure option for disabling the tests,
and I can't run "make install" without it attempting to build them. I
suppose I can just hand-copy the libraries to /usr/local/lib, but I'm
never sure what to do in terms of symbolic links, etc.
I'm curious as to why it works for you, Amit, and not me.
$ CFLAGS="-O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/
MacOSX10.4u.sdk" LDFLAGS="-arch i386 -arch ppc" ../configure --
prefix=/usr/local
.
.
.
pcre-7.1 configuration summary:
Install prefix ......... : /usr/local
C preprocessor ......... : gcc -E
C compiler ............. : gcc
C++ preprocessor ....... : g++ -E
C++ compiler ........... : g++
Linker ................. : /usr/bin/ld
C preprocessor flags ... :
C compiler flags ....... : -O -g -arch i386 -arch ppc -isysroot /
Developer/SDKs/MacOSX10.4u.sdk
C++ compiler flags ..... : -g -O2
Linker flags ........... : -arch i386 -arch ppc
Extra libraries ........ :
Build C++ library ...... : yes
Enable UTF-8 support ... : no
Unicode properties ..... : no
Newline char/sequence .. : lf
EBCDIC coding .......... : no
Rebuild char tables .... : no
Use stack recursion .... : yes
POSIX mem threshold .... : 10
Internal link size ..... : 2
Match limit ............ : 10000000
Match limit recursion .. : MATCH_LIMIT
Build shared libs ...... : yes
Build static libs ...... : yes
Sure enough, when it calls g++, there are no architecture flags
specified:
creating pcregrep
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -c -o pcrecpp_unittest.o ../
pcrecpp_unittest.cc
But if I add CPPFLAGS="-arch i386 -arch ppc", configure fails:
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Again, sorry for what's really pcre-specific...
TIA,
Rick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---