cross compile php

This is a discussion on cross compile php within the Linux Programming forums, part of the Platform Specific Boards category; Hi im trying to make a cross compile php im having some troubles because i have to compile first this ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 03:08 PM
  3. header file compile error
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 02-23-2002, 05:28 AM
  4. Replies: 4
    Last Post: 11-14-2001, 09: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, 01:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21