#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ryandesign@…): We already know that cairo will not work correctly when compiled with clang or llvm-gcc-4.2, which is why the port forces the use of gcc-4.2. However, on Xcode 4.2, there isn't supposed to be a gcc-4.2, so the port is supposed to use the apple-gcc42 port in that case. But since you've somehow restored gcc-4.2 onto your system, the port is using it. Try installing the apple-gcc42 port and using it compile cairo: {{{ sudo port install apple-gcc42 sudo port clean cairo sudo port install cairo configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2 }}} See ProblemHotlist#xcode42. Several other ports use the same programming to force the use of gcc-4.2; these might also fail because of your rogue gcc-4.2/gcc-4.0 compilers, so I recommend you remove them. If you need the Apple versions of gcc while using Xcode 4.2, consider using the compilers installed by the apple-gcc42 /apple-gcc40 ports. These should be slightly newer versions that should work on Lion. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS