Thread: cross compile php

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    18

    cross compile php

    Hi im trying to make a cross compile php im having some troubles because i have to compile first this library:

    libxml2-2.6.19
    but when i trying to make it throws me this mistake:

    Code:
    ./.libs/libxml2.so: undefined reference to `gzopen'
    ./.libs/libxml2.so: undefined reference to `gzclose'
    ./.libs/libxml2.so: undefined reference to `deflate'
    ./.libs/libxml2.so: undefined reference to `gzrewind'
    ./.libs/libxml2.so: undefined reference to `gzwrite'
    ./.libs/libxml2.so: undefined reference to `crc32'
    ./.libs/libxml2.so: undefined reference to `deflateEnd'
    ./.libs/libxml2.so: undefined reference to `gzdopen'
    ./.libs/libxml2.so: undefined reference to `deflateInit2_'
    ./.libs/libxml2.so: undefined reference to `gzread'
    collect2: ld returned 1 exit status
    make[2]: *** [xmllint] Error 1
    make[2]: se sale del directorio `/home/felipe/Escritorio/libxml2-2.6.19'
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio `/home/felipe/Escritorio/libxml2-2.6.19'
    make: *** [all] Error 2
    the code im using to compile it, its this:

    Code:
    export CROSS_COMPILE=arm-none-linux-gnueabi-
    export CC=${CROSS_COMPILE}"gcc"
    export CXX=${CROSS_COMPILE}"g++" 
    ./configure --host=arm-linux --target=arm --prefix=$PWD/install-arm
    i hope you can help me thanks!!

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Cross posted:

    cross compile php
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    LOL MK27

    And closed
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cross compiling with inline assembly
    By TheEngineer in forum C Programming
    Replies: 10
    Last Post: 04-02-2010, 02:21 PM
  2. Help with PHP extension compilation
    By SkinneyEd in forum C++ Programming
    Replies: 1
    Last Post: 01-10-2006, 04:08 PM
  3. header file compile error
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 02-23-2002, 06:28 AM
  4. Replies: 4
    Last Post: 11-14-2001, 10:28 AM
  5. how do i compile a program that deals w/classes?
    By Shy_girl_311 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2001, 02:32 AM