Compiling PHP with SOAP/Iconv/OpenSSL support

Hi,
I'm not sure if this is the best place for this but the other topics seem even less related.
I'm trying to compile PHP with SOAP and SSL on a Mac for use with Salesforce.com (it works without any issues on Gentoo and RedHat). Anytime I try to connect I get an invalid SOAP header error. It seems to be happening because the Salesforce SOAP server requires SSL connections and I don't have SSL enabled, but it's hard to backtrace. Regardless, I can't get SSL or iconv support working.
I've installed OpenSSL both from Macports and from source using the default ./config options, neither method worked. It may be related to some issues I'm having getting iconv working as well (which I also can't seem to get right, it's installed via Macports).
Here's my PHP configure, if anyone can let me in on what I'm doing wrong that would be great!!! Thanks in advance!
root# MACOSXDEPLOYMENTTARGET=10.5 \
CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" \
CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" \
LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bindatload"
root# ./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--enable-cli \
--with-curl=/opt/local \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-sockets \
--with-ldap=/usr \
--with-kerberos=/usr \
--with-mime-magic=/etc/apache2/magic \
--with-zlib-dir=/usr \
--with-xmlrpc \
--with-xsl=/usr \
--with-iconv=shared,/opt/local \
--with-openssl=shared,/opt/local \
--with-gd \
--with-png-dir=/usr/X11R6 \
--with-xpm-dir=/usr/X11R6 \
--with-jpeg-dir=/opt/local \
--enable-exif \
--with-freetype-dir=/opt/local \
--with-t1lib=/opt/local \
--enable-pdo \
--with-pdo-mysql \
--with-mysql-sock=/var/mysql \
--with-mysqli=/usr/bin/mysql_config \
--with-mysql=/usr/local/mysql \
--with-iodbc=/usr \
--with-curl \
--with-config-file-path=/etc \
--sysconfdir=/private/etc \
--enable-soap
Message was edited by: mkenney - bad grammar

mkenney wrote:
Hi,
I'm not sure if this is the best place for this but the other topics seem even less related.
Welcome to Apple Discussions:
Use our Unix forum here:
http://discussions.apple.com/forum.jspa?forumID=735
(yes, it's a tad hidden )
Message was edited by: nerowolfe

Similar Messages

  • Can not compile php with "-with-oracle=/usr/local/oracle"

    I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
    so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
    checking Oracle version... configure: error: Oracle needed libraries not found
    I think, maybe i have a problem because configure not found my "64 bit libraries"...
    Can someone help me? I am realy helpless...
    thx

    Did you really want the obsolete "oracle" driver - why not use --with-oci8?
    The user comments in http://www.php.net/oci8 have some good info on 64bit configuration.

  • Compiling PHP with MySQL

    Hello all,
    I am having trouble compiling php 5.2 (also tried 5.3). This is my configure line:
    =======
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=/opt/mysql/mysql
    =======
    When I run "make", I get the following error:
    =======
    Undefined first referenced
    symbol in file
    mysql_set_character_set ext/mysql/php_mysql.o
    ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `sapi/cli/php'
    =======
    Here are my machine details:
    =======
    @[machine-name]-/usr/local/php5.2 # uname -a
    SunOS [machine-name] 5.10 Generic_138889-03 i86pc i386 i86pc Solaris
    @[machine-name]-/usr/local/php5.2 # isainfo -kv
    64-bit amd64 kernel modules
    =======
    PHP compiles fine when I do it without MySQL. Any assistance is greatly appreciated.
    Please let me know if you need additional information.
    Thank you.
    -Ryan

    Hi,
    first of all please mind that PHP 5.2 is out of support by the PHP developers on php.net. To receive bug fixes petc. you should use PHP 5.3.
    Secondly it is worth noticing that there are three function libraries (extensions) which allow accessing the MySQL database. One is the classic "mysql" extension, one is called mysqli, with "i" as in improved, and a driver for the PDO database abstraction - PDO_mysql. You are only activating one of these, in most situations you want all three of them gor maximum application compatibility.
    Now with PHP 5.3 PHP bundles an implementation complete of the MySQL Client functionality. So linking against a local installation is not needed. This implementation is called mysqlnd - MySQL native driver.
    To build w/ mysqlnd and all three function libraries use a configure line like this:
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=mysqlnd with-mysqli=mysqlnd with-pdo-mysql=mysqlnd
    If you have a strong reason for 5.2 or using libmysql I'd need more information, like which version of mysql was installed. Was it self-compiled or binaries from mysql.com etc. But I hope the above is fine.
    johannes

  • Compiling PHP with IMAP enabled

    I am trying to run software that requires the IMAP module of PHP enabled. I don't see a module in Server Admin that I can simply turn on. What options do I have for enabling the IMAP module of PHP on Mac OS 10.5 server?
    Thanks in advance!

    Hi,
    first of all please mind that PHP 5.2 is out of support by the PHP developers on php.net. To receive bug fixes petc. you should use PHP 5.3.
    Secondly it is worth noticing that there are three function libraries (extensions) which allow accessing the MySQL database. One is the classic "mysql" extension, one is called mysqli, with "i" as in improved, and a driver for the PDO database abstraction - PDO_mysql. You are only activating one of these, in most situations you want all three of them gor maximum application compatibility.
    Now with PHP 5.3 PHP bundles an implementation complete of the MySQL Client functionality. So linking against a local installation is not needed. This implementation is called mysqlnd - MySQL native driver.
    To build w/ mysqlnd and all three function libraries use a configure line like this:
    ./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=mysqlnd with-mysqli=mysqlnd with-pdo-mysql=mysqlnd
    If you have a strong reason for 5.2 or using libmysql I'd need more information, like which version of mysql was installed. Was it self-compiled or binaries from mysql.com etc. But I hope the above is fine.
    johannes

  • Compile PHP with GD and IMAP

    Hello,
    I want to use GD and IMAP functions in PHP.
    PHP Version 5.3.3
    But Apple doesn't compile those functions in the default setup.
    Who can help me to install the functions, or can tell me where i can find a manual?
    Tnkx!

    I've got imap installed.
    1. Grab this file from my dropbox: http://dl.dropbox.com/u/8756757/imap.so
    2. Now move it to the following directory: /usr/lib/php/extensions/no-debug-non-zts-20090626/
    3. Then just edit /etc/php.ini and under the extension commands towards the bottom add this line:
    extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/imap.so
    For the GD, here is a link to a pdf tutorial which will tell you all the steps to do for it:
    http://docs.google.com/viewer?a=v&q=cache:jh1vwDhHBBIJ:downloads.topicdesk.com/d ocs/AddingGD2_to_PHP_on_OS_X_Server_10_5_Leopard.pdfadding+gd2+to+php+os+xserver&hl=en&gl=us&pid=bl&srcid=ADGEESj-au1neHxRQ_y6WXStCnuXZHPDayNb5z3W9o3JuMA9 4gEB9Ppp3946o5jed1IfA5Tsy5lR9xWKdakYVxa7zG7L7fy-uSZrvrdHJwh1KPk3g1QkfDkIMKO0Mj7s 4W8OJxUWw0zz&sig=AHIEtbTxKgQtrOR52onsNE6j1JVb2CabQ

  • Unable to compile PHP on pSeries AIX 5.1

    Hello, I have Oracle 9.2 installed and running ok.
    When I try to compile PHP with oci8 support, this is what I get:
    nd/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lintl -lgdbm -lm -ldl -lm -lodm -lbsd_r -lld -lperfstat -lclntsh -o sapi/cli/php
    ar: 0707-101 . is not a valid flag.
    make: *** [libphp4.la] Error 1
    make: *** Waiting for unfinished jobs....
    ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIInitialize
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree
    ld: 0711-317 ERROR: Undefined symbol: .OCITransRollback
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorFree
    ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerVersion
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtPrepare
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtExecute
    ld: 0711-317 ERROR: Undefined symbol: .OCIParamGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIDefineByPos
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtFetch
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtSetPieceInfo
    ld: 0711-317 ERROR: Undefined symbol: .OCILobGetLength
    ld: 0711-317 ERROR: Undefined symbol: .OCILobRead
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileClose
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileOpen
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionBegin
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerAttach
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindObject
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindDynamic
    ld: 0711-317 ERROR: Undefined symbol: .OCILobWrite
    ld: 0711-317 ERROR: Undefined symbol: .OCITransCommit
    ld: 0711-317 ERROR: Undefined symbol: .OCIPasswordChange
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectFree
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAppend
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberFromReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateFromText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringAssignText
    ld: 0711-317 ERROR: Undefined symbol: .OCICollGetElem
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberToReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateToText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringPtr
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssign
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssignElem
    ld: 0711-317 ERROR: Undefined symbol: .OCICollSize
    ld: 0711-317 ERROR: Undefined symbol: .OCICollMax
    ld: 0711-317 ERROR: Undefined symbol: .OCICollTrim
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescribeAny
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByRef
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectNew
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1
    I am using gcc 3.3.3.
    ./configure output:
    checking for Oracle-OCI8 support... yes
    checking Oracle Install-Dir... /oracle/product/920
    checking Oracle version... 8.1
    checking for OCILobIsTemporary in -lclntsh... (cached) no
    checking for OCILobIsTemporary in -locijdbc8... (cached) no
    I already type gencltsh as user oracle. Perhaps this is a problem with PHP trying to read 64 bit libs while running on 32 bit mode ? Anyone has been thru this ?
    Any hints ?
    Thanks,
    Álvaro

    Maybe my bug report http://bugs.php.net/bug.php?id=31345
    can help you, and also
    http://bugs.php.net/bug.php?id=31001
    because i remembre have same message when I was searching for my problems
    Regards

  • Php with xsl on Sun Java Web Server 7.0

    Hi anyone,
    i installed php as nsapi via phppack. Now i need xsl support in php. I've tryed to compile php with the following line (php 5.2.6):
    ./configure with-nsapi=/export/netscape_71 enable-force-cgi-redirect with-gettext with-zlib --with-xsl=/usr/lib64/php5/extensions
    magnus.conf, obj.conf and mime.types are assimilate to this article:
    http://developers.sun.com/webtier/reference/techart/php2.html
    After compiling, i copy the libphp5.so in the .plugins/php/ dir an restart the webserver.
    He stops with this message:
    failure: CORE2253: Error running Init function load-modules: dlopen of /export/netscape_71/plugins/php/libphp5.so failed (/export/netscape_71/plugins/php/libphp5.so: wrong ELF class: ELFCLASS64)
    failure: server initialization failed
    What's going wrong?
    How i get xsl Support on Sun Java Web Server?
    thanks!

    essential wrote:
    ./configure with-nsapi=/export/netscape_71 enable-force-cgi-redirect with-gettext with-zlib --with-xsl=/usr/lib64/php5/extensionsYou are pointing to 64-bit library path. Change it to 32-bit library path.
    failure: CORE2253: Error running Init function load-modules: dlopen of /export/netscape_71/plugins/php/libphp5.so failed (/export/netscape_71/plugins/php/libphp5.so: wrong ELF class: ELFCLASS64)
    failure: server initialization failedThis means that it expects a 32-bit library but it found a 64-bit one.

  • Errors trying to compile PHP for use with MySQL

    I have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
    ./configure --prefix=/usr/local/php5 \
    --with-config-file-scan-dir=/usr/local/php5/php.d \
    --with-apxs2=/var/apps/apache/bin/apxs \
    --with-ldap \
    --with-mysql=/var/apps/mysql \
    --with-mysqli=/var/apps/mysql/bin/mysql_config \
    --with-xsl=/usr/local/include/libxslt \
    --with-ncurses \
    --enable-xslt \
    --with-xslt-sablot \
    --with-bz2=/usr \
    --with-gd \
    --with-gdbm=/usr/local/lib \
    --with-openssl \
    --with-imap=/usr/local/imap-2006e \
    --with-imap-ssl \
    --with-freetype-dir=/usr/local/include/freetype2/freetype/freetype.h \
    --with-expat-dir \
    --with-tiff-dir \
    --with-zlib \
    --with-jpeg-dir=/usr/local/include/jpeglib.h \
    --with-png-dir=/usr/include/libpng12/png.h \
    --with-mcrypt \
    --with-curl \
    --with-curlwrappers \
    --with-gettext \
    --disable-short-tags \
    --disable-debug \
    --enable-calendar \
    --enable-ctype \
    --enable-discard-path \
    --enable-exif \
    --enable-ftp \
    --enable-memory-limit \
    --enable-sysvem \
    --enable-sysvshm \
    --enable-gd-native-ttf \
    --enable-soap \
    --enable-shmop \
    --enable-sockets \
    --enable-xslt \
    --enable-mbstring \
    --with-sqlite=shared \
    --with-pdo-sqlite=shared \
    --with-pdo-mysql=shared,/var/apps/mysql \
    --enable-pdo=shared \
    --enable-bcmath \
    --with-oci8=sharedI have ld, make, and various tools linked to /usr/local/bin/<toolname>. The configure string completes with no issue and the make runs for about 30 minutes before it stops with the following warnings/errors:
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    <snip>....
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:209: undefined reference to `mysql_sqlstate'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:200: undefined reference to `mysql_set_server_option'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:212: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_query':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:251: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_get_warnings':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:298: undefined reference to `mysql_warning_count'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_stmt_get_warnings'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_warning.c:195: undefined reference to `mysql_warning_count'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1:
    There are many, many more "undefined reference" messages all mysql related.
    Here is my environment and crle output:
    LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.2/lib:/var/apps/mysql/lib/mysql
    PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/opt/sfw/bin:/usr/local/ssl/bin:/usr/ucb:/usr/ccs/bin:/opt/VRTS/bin:/etc:/opt/EMCpower/bin:/opt/EMCpower/bin/sparcv9:/etc/emc/bin:/opt/VRTSagents/ha/bin:/usr/local/include:/usr/include:/usr/platform/`uname -i`/sbin:/var/apps/mysql/bin:/var/apps/mysql/include/mysql:/opt/RICHPse/bin:/usr/local/php5/bin:/opt/sfw/sbin
    crle output
    Configuration file [version 4]: /var/ld/ld.config
    Default Library Path (ELF): /lib:/usr/lib:/usr/local/lib
    Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
    Any ideas as to how I can get around the MySQL errors, etc. would be appreciated.

    Here are the requirments for 10.5.8:
    Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    512MB of memory
    DVD drive for installation
    9GB of available disk space
    You have to purchase the upgrade from Apple for $129. You ned to call and order ti since it is not listed in their on-line store. You can also try eBay or Craig's List. 

  • [solved] Error compiling wpa_supplicant with broadcom_wl support

    Hello friends.
    I'm using the broadcom_wl driver for my bcm4312 card in my Dell XPS m1530 laptop. Unsecured wifi is tested and works fine.
    I need to use wpa_supplicant to connect to my university's wifi. The core package for wpa_supplicant is not compiled with broadcom support. I tried using the generic wext option, but I get
    Trying to associate with 00:11:92:90:de:e1 (SSID='restricted.utexas.edu' freq=2462 MHz)
    ioctl[SIOCSIWAP]: Device or resource busy
    Association request to the driver failed
    It looks like the generic wext option doesn't work for the bcm4312.
    So I tried to compile wpa_supplicant with broadcom support using ABS with this package: http://aur.archlinux.org/packages.php?ID=18511 from AUR. I enabled broadcom support in the config file and pointed it toward my local copy of wlioctl.h.
    Unfortunately, build() dies with
    In file included from /var/abs/local/broadcom/src/src/include/proto/802.11.h:39,
    from /var/abs/local/broadcom/src/src/include/wlioctl.h:38,
    from ../src/drivers/driver_broadcom.c:34:
    /var/abs/local/broadcom/src/src/include/proto/wpa.h:109:1: warning: this is the location of the previous definition
    ../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_event_receive':
    ../src/drivers/driver_broadcom.c:229: error: 'wl_wpa_header_t' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:229: error: (Each undeclared identifier is reported only once
    ../src/drivers/driver_broadcom.c:229: error: for each function it appears in.)
    ../src/drivers/driver_broadcom.c:229: error: 'wwh' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:240: error: expected expression before ')' token
    ../src/drivers/driver_broadcom.c:242: error: 'WL_WPA_ETHER_TYPE' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:244: error: 'wl_wpa_snap_template' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:250: error: 'WLC_ASSOC_MSG' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:251: error: 'WL_WPA_HEADER_LEN' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:271: error: 'WLC_DISASSOC_MSG' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:275: error: 'WLC_PTK_MIC_MSG' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:280: error: 'WLC_GTK_MIC_MSG' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_get_scan_results':
    ../src/drivers/driver_broadcom.c:465: error: 'wl_bss_info_t' has no member named 'channel'
    ../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_associate':
    ../src/drivers/driver_broadcom.c:573: error: 'WLC_GET_WEP' undeclared (first use in this function)
    ../src/drivers/driver_broadcom.c:576: error: 'WLC_SET_WEP' undeclared (first use in this function)
    make: *** [../src/drivers/driver_broadcom.o] Error 1
    ==> ERROR: Build Failed.
    I don't know c. Can someone decipher this error for me?
    Thanks in advance.
    EDIT: There are multiple versions of wlioctl.h floating around. I eventually got this to work with the version included with the wrt54g tarball. BUT, wpa_supplicant still had driver problems when being run with the -D broadcom option.
    I eventually got this working with ndiswrapper and instructions found here: https://help.ubuntu.com/community/WifiD … y_No-Fluff
    Pay special attention to the instruction:
    "This Chipset/PCI ID is the correct/reliable way to identify the device: Any other labels can be misleading (e.g., notice that both the '14e4:4311 (rev 02)' and '14e4:4319 (rev 02)' call themselves a "BCM4311 (Rev 02)", even though they are different devices)."
    Download the driver that matches the output of
    lspci -n | grep '14e4:43'
    Anyway, wpa_supplicant still gave me driver troubles when using the -D ndiswrapper option. However, it works well with -D wext.
    Tldr;
    -Your bcm4312 may actually be a BCM4310 (rev 01).
    -Use ndiswrapper with this driver: http://myspamb8.googlepages.com/R174291-pruned.zip
    -use wpa_supplicant with the -D wext option.
    Last edited by BurtHawk101 (2008-11-05 06:28:04)

    falconindy wrote:
    mkinitcpio needs to refuse to run without /dev mounted to avoid errors like this.
    mount -t devtmpfs devtmpfs /dev
    Thanks falconindy, works great now.

  • How to compile mplayer with giflib support?

    Hey all,
    i am trying to compile mplayer (or mplayer2, i have tried several pkgbuilds from aur), as the package from extra doesn't have support for the the gif89a video_out driver. I have giflib package installed, so i have the /usr/lib/include/gif_lib.h in my filesystem. If i try to compile mplayer with the ./configure --enable-gif option, it fails with the following error message:
    libmpdemux/demux_gif.o: In function `demux_close_gif':
    demux_gif.c:(.text+0x39): undefined reference to `PrintGifError'
    libmpdemux/demux_gif.o: In function `demux_open_gif':
    demux_gif.c:(.text+0x293): undefined reference to `PrintGifError'
    libmpdemux/demux_gif.o: In function `demux_gif_fill_buffer':
    demux_gif.c:(.text+0x95b): undefined reference to `PrintGifError'
    demux_gif.c:(.text+0xb1a): undefined reference to `PrintGifError'
    ...among others, because some other libraries (cdio_paranoia, theora and caca) have undefined references too. If i check the source of giflib, i see the missing function 'PrintGifError' in 'lib/gif_err.c', but i don't have this file on my filesystem. My question is from where should i obtain these sources, and where i need to place them to compile mplayer successfully?
    Update: here is the whole list of errors, all of them are undefined references to various functions: http://pastebin.com/LttqXy5J
    Last edited by vizipok (2013-06-03 11:53:20)

    sl1pkn07 wrote:why this downgrade
    Because there's lotsa compilation fails caused by the giflib API changing.

  • Using ABS to compile OpenOffice with KDE3 support?

    Hallo,
    So I'm trying to use ABS to compile OpenOffice with KDE3 support so I can use the KDE file picker (the KDE4 support is really, really broken and too new to be used right now). I pulled Openoffice-base out of my ABS tree and modified the PKBUILD so that kde was enabled and I made kdelibs3 part of the dependencies.
    However, it always says "checking whether KDE is between 3.2 and 3.6... configure: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" before failing to compile. I know it's because I'm using KDE4. Is there a way I can trick it into thinking I'm using KDE3?
    It says the path to kdelibs is /usr/lib, perhaps if I changed it to the path to kdelibs3? Where would I do that in the PKBUILD?
    Thanks a lot!

    bstaletic wrote:The weird part, at least to me, is that I saw a lot more then 19 modules during compilation. Is this expected for some reason or have I messed something up?
    Your build method seems ok to me. Can't really say anything about the .config, but kernel modules can have dependencies too. For example, if you choose to build ext4 as a module, it selects at least jdb2 and crc16 modules to be built as well.

  • [SOLVED] Error when compiling conky with audacious support

    Edit: See post #8 for solution
    Hello.
    When trying to compile conky with the --enable-audacious option, I get the following error.
    checking for Audacious... configure: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
    No package 'audclient' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    Alternatively, you may set the environment variables Audacious_CFLAGS
    and Audacious_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGBUILD is the one in the repos, with the addition of an --enable-audacious line. See below:
    # $Id: PKGBUILD 205494 2014-02-06 05:24:01Z bisson $
    # Maintainer: Gaetan Bisson <[email protected]>
    # Contributor: Giovanni Scafora <[email protected]>
    # Contributor: James Rayner <[email protected]>
    # Contributor: Partha Chowdhury <[email protected]>
    pkgname=conky
    pkgver=1.9.0
    pkgrel=4
    pkgdesc='Lightweight system monitor for X'
    url='http://conky.sourceforge.net/'
    license=('BSD' 'GPL')
    arch=('i686' 'x86_64')
    makedepends=('docbook2x')
    depends=('glib2' 'curl' 'lua' 'wireless_tools' 'libxml2' 'libxft' 'libxdamage' 'imlib2')
    source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
    sha1sums=('a8d26d002370c9b877ae77ad3a3bbd2566b38e5d')
    backup=('etc/conky/'conky{,_no_x11}.conf)
    options=('!emptydirs')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-ibm \
    --enable-curl \
    --enable-rss \
    --enable-weather-xoap \
    --enable-imlib2 \
    --enable-wlan \
    --enable-audacious \
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conkyrc.vim
    install -Dm644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conkyrc.vim
    Note: While similar, I don't think this problem is the same as this one.
    Last edited by Sudowoodo (2014-06-29 10:07:02)

    drcouzelis wrote:Remove the "\" from the end of "--enable-audacious". Does it work now?
    No, it's exactly the same.
    drcouzelis wrote:EDIT: Also, there's already a package for conky-audacious in the AUR.
    I tried it, that doesn't compile either, and its orphan & outdated.
    For the record, its PKGBUILD is
    Edit: Remove unnecessary text. See post #8 for solution.
    and the error is the same:
    Edit: Remove unnecessary text. See post #8 for solution.
    Have you been able to reproduce the problem? I'm using an amd64 processor and trying to build with "makepkg -s". Thank you for replying.
    Last edited by Sudowoodo (2014-06-28 12:13:28)

  • Php with mysqli, mbstring and xsl extensions

    I don't understand why php isn't build with mysqli and mbstring extensions since mysql4 is installed and there are a lot of languages that need multibytes strings. Here is a PKGBUILD that enable them. I also added xsl extension to use xsl files with php.
    # $Id: PKGBUILD,v 1.51 2004/12/16 22:03:19 judd Exp $
    # Maintainer: dorphell <[email protected]>
    # Contributor: Benoit Chesneau <[email protected]>
    pkgname=php
    pkgver=5.0.3
    pkgrel=2
    pkgdesc="A high-level scripting language"
    url="http://www.php.net"
    backup=(etc/php.ini)
    depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam'
    'gdbm' 'libxml2' 'openldap' 'ncurses' 'curl' 'libxslt')
    makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'smtp-server'
    'gd' 'fam' 'sqlite3' 'unixodbc')
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini)
    md5sums=('bf89557056ce34d502e20e24071616c7' 'd5b9b37fbb746f0967d795763106735a')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc
    --with-layout=PHP
    --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc
    --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared
    --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared
    --enable-session --enable-shared --enable-shmop=shared --with-imap
    --with-imap-ssl --with-ncurses --with-readline --with-sqlite=shared
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars
    --enable-trans-sid --enable-safe-mode --enable-sockets=shared
    --enable-xml --with-bz2=shared --with-curl --with-mime-magic
    --with-unixODBC=shared
    --enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile
    --with-gdbm --with-freetype-dir=/usr --with-gd=shared --enable-exif
    --with-jpeg-dir=/usr --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config
    --with-ldap=shared
    --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt
    --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock
    --with-png-dir=/usr --with-regex=php --with-zlib --with-fam=shared
    --with-xsl
    --enable-mbstring=all --enable-mbregex
    # fixes a build error in sqlite support
    ln -s main/php_config.h ./config.h
    make || return 1
    mkdir -p $startdir/pkg/usr/lib/apache
    # cp config_vars.mk config_vars.old
    # sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
    sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
    make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
    cp ../php.ini $startdir/pkg/etc

    i suggest filing a feature request through the bug tracker.
    As for why such features may not be compiled in is that whoever maintains the package may have never had the need to have such features in php or experienced any issue because of it. You will experience this with many distros so I suggest not getting accusatory and simply request the feature through the proper channels.
    Each persons needs and experience are different and that is why developers write their code to encompass as many features as their users request.  How robust a package needs to be in arch is up to people like you giving the crucial feedback.
    (btw i don't see why your request would not be granted. I suggest the feature request though because i know the maintainer of the PHP package is not a frequent visitor to this forum but he will get your request if you make to the bug tracker)

  • OAS 10.1.2.0.2 - How configure PHP with database access

    I Installed OAS 10.1.2.0.2 on SuSe 9.3.
    I put in $ORACLE_HOME/Apache/Apache/htdocs a php pages for test if this OAS versión supported php.
    The test is ok, this versión support PHP, but not are configured to PHP with database access.
    My question is: How I configure this OAS 10.1.2.0.2 to use PHP with database access?
    I need install all PHP although my php pages is running (without database access) ??? or I only need configure database access?

    How I compile my PHP with --with-oci8??                                                                                                                                                                                                                           

  • Update PHP with IMAP (installing SugarCRM on 10.5.4)

    I have seen parts of this covered before for 10.4.x but i am now trying to include c-client on 10.5.4.
    see http://discussions.apple.com/thread.jspa?messageID=4598819&#4598819
    I get sugar installed fine but on OSX when i try and set up mail it gives me this error:-
    Inbound Email cannot function without the IMAP c-client libraries enabled/compiled with the PHP module. Please contact your administrator to resolve this issue.
    *so far i have done the following.*
    sudo mkdir -p /SourceCache
    cd /SourceCache
    sudo curl -O ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
    sudo tar xzf c-client.tar.Z
    cd imap-200XX (folder will represent the latest version)
    sudo make oxp
    mkdir /usr/local/imap/include
    mkdir /usr/local/imap/lib
    cd c-client/
    cp *.h /usr/local/imap/include
    cp *.c /usr/local/imap/lib
    cp c-client.a /usr/local/imap/lib
    cd /usr/local/imap/lib
    ln c-client.a libc-client.a
    # i hate renaming when it might be needed in its real name.
    i need to make mysql headers available too as trying to build php now brings up errors...
    see here.
    http://docs.info.apple.com/article.html?artnum=306782
    I think the mysql headers (or client libs) must be installed to make php with the same configure command that it was installed with
    I have downloaded the same version of mysql that 10.5 uses mysql-5.0.45.tar.gz and have expanded that into the /SourceCache - it configures and makes without erros but i am unable to build php with the mysql statements included - see below
    cd /SourceCache
    get php-5.2.6.tar.gz from your local mirror
    cd cd /SourceCache/php-5.2.6
    sudo ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-openssl --with-xmlrpc --with-xsl=/usr --with-pear --with-imap=/usr/local/imap --with-mysql-sock=/var/mysql --with-mysqli=/usr/bin/mysql_config --with-mysql=/SourceCache/mysql/mysql-5.0.45
    I added my --with-imap=/usr/local/imap statement to include the libc-client c-client kit..
    BUT i can only get it to build without the mysql statements.. do i really need mysql built in... it was in the original php configure script so i want to keep as much like the original as possible so i do not break things.
    The build (with out mysql statmens) also throws up these few errors.. which is strange as these were in the build line from a info.php script i ran against the server...
    Notice: Following unknown configure options were used:
    --disable-dependency-tracking
    --enable-trans-sid
    --with-xml
    --enable-dbx
    Referances
    my main source of info was from here...
    http://discussions.apple.com/thread.jspa?messageID=4598819&#4598819
    looks like apple have come up against this before but is for an earlier version of MySQL so i would not install it.
    http://docs.info.apple.com/article.html?artnum=306782
    http://discussions.apple.com/thread.jspa?messageID=7828379

    It sounds like you need to download the MySQL headers. Yes you do need MySQL.
    Here's how I solved this problem. I used this thread as my basis:
    http://discussions.apple.com/message.jspa?messageID=6112771
    My updated instructions are located below with sources. I had to complete these steps again today. You had better get good at this, because Leopard updates may force you to repeat these steps. I completed this stuff back in Dec and here I am again. I did not have to re-download, but that means that I am using older versions of these programs/modules. BTW - the older stuff still works for SugarCRM. You may be using more updated files if you are downloading/have downloaded newer stuff, make sure to adjust these instructions for the newer updated files and folders.
    BTW - I just realized that you may be on a workstation, you may need to change the "/usr/lib" and "/usr/include" to "/usr/local/lib" and "/usr/local/include" respectively.
    Good luck!
    It took me a while to get this going, but I was able to install SugarCRM on Mac OS X using the following threads as my guideline. My major problem was missing MySQL Headers preventing PHP 5 from being compiled.
    MySQL headers were missing from the Mac OS X Server distribution and I needed to get these before starting (see thread: http://lists.apple.com/archives/macos-x-server/2007/Nov/msg00277.html). Then, I followed the steps to download and compile PHP 5 with IMAP. Followed the steps to compile PHP5 and then once I recompiled PHP, Apache did not work, so I recompiled Apache.
    If you can not compile PHP and it stops at searching for the MySQL headers, you can download them here (see thread: http://lists.apple.com/archives/macos-x-server/2007/Nov/msg00277.html).
    As per the thread, you can download the headers from here:
    (Follow instructions in ReadMe)
    download and unpack from:
    http://www.opensource.apple.com/darwinsource/other/MySQL-43.binaries.tar.gz
    sudo tar -xzvf MySQL-43.root.tar.gz -C /
    Follow steps for recompiling php and IMAP in THIS thread from David Shauger1 (Thanks David)
    To install the IMAP extensions do this (as root):
    sudo mkdir -p /SourceCache
    cd /SourceCache
    You may not need to download new c-client - look in /SourceCache for prior downloads (this note is for me)
    sudo curl -O ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
    sudo tar xzf c-client.tar.Z
    sudo mv imap-2006k imap-2006h
    cd imap-2006h
    sudo make oxp
    cd c-client
    sudo cp *.h /usr/include
    sudo cp *.c /usr/lib
    sudo cp c-client.a /usr/lib/libc-client.a
    Then, download recompile the latest version of PHP 5 following these instructions:
    http://downloads.topicdesk.com/docs/UpdatingPHP_on_OS_XServer.pdf
    You may not need to download a new PHP - look in /SourceCache for a previous download (this note is for me)
    mkdir -p /SourceCache
    cd /SourceCache
    curl -O http://us3.php.net/distributions/
    php-5.2.6.tar.gz
    tar xzpf php-5.2.6.tar.gz
    cd /SourceCache/php-5.2.6
    sh
    CFLAGS=-DBIND8COMPAT
    export CFLAGS
    php configuration command:
    sudo ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql-sock=/var/mysql --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr --with-openssl --with-xmlrpc --with-xsl=/usr --without-pear --with-imap --with-imap-ssl
    make
    make install
    exit
    Finally, follow steps for recompiling apache
    Read entire thread (http://discussions.apple.com/thread.jspa?messageID=5676677&tstart=0)
    1. Download the Apache2 source from http://httpd.apache.org/download.cgi (latest version is 2.2.9) and extract it.
    2. Open Terminal and go to that directory. If you extract sources into your Downloads folder, type "cd ~/Downloads/httpd-2.2.9" and hit return
    3. Type "./configure --enable-layout=Darwin --enable-mods-shared=all" and hit return
    4. Wait for the process to complete and then type "make" and return
    5. Wait for the process to complete and then type "sudo make install" and return

Maybe you are looking for

  • Windows 7 Pro randomly loses connection to some network drives/shares.

    This is a strange one.  I can see where others are having the same issue but I have not found an answer yet so hence this post.  This issue is happening on a Win 7 Pro system.  As far as I know we are not having this issue on any XP systems.  Problem

  • Flex 2 - Multiple Questions (1) Touchpad and (2) USB 3.0

    Hi lenovo friends, I recently bought a Flex 2 14 (not sure if D) (59423165). Firstly, can anyone link me to the correct drivers page for W8.1x64? Thank you! Here are my questions: 1) Is there middle-click functionality for the touchpad? I cannot seem

  • How to convert "classic" report to "interactive" report?

    Hi, How do I convert classic report to interactive and vice versa? Thanks

  • Layers panel grayed out

    Ok...I'm using InDesign CS4. My layers panel is completely empty, grayed out, with no option to add a layer or do anything within the panel. Any clue why this is happening? It's driving me nuts! Thanks in advance for the help. Katie

  • Formula for minutes per month

    Post Author: olesco CA Forum: Formula How do I get the total number of minutes per month? RcvdDt                                Month  CalendarDays  #OfDays(excl Hol, Sat,&Sun)  MinPerDay  TotalMin/Mo 8/13/2007   8:40:25AM            8/07      31