This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

arago / DM365

I've been trying to build php on arago, and I keep getting problems:

| Building with SSL
| ln -s ssl_unix.c osdepssl.c
| echo -I/home/brettb/oe/arago-tmp/sysroots/armv5te-none-linux-gnueabi/usr/include/openssl -I/home/brettb/oe/arago-tmp/sysroots/armv5te-none-linux-gnueabi/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/certs\" >> OSCFLAGS
| echo "  ssl_onceonlyinit ();" >> linkage.c
| echo -L/home/brettb/oe/arago-tmp/sysroots/armv5te-none-linux-gnueabi/usr/lib -lssl -lcrypto  >> LDFLAGS
| Building with SSL and plaintext passwords disabled unless SSL/TLS
| echo "  mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c
| cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
| Building OS-dependent module
| If you get No such file error messages for files x509.h, ssl.h,
| pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
| is not installed on your system. Either install OpenSSL first
| or build with command: make slx SSLTYPE=none
| `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
| osdep.c:89:31: error: security/pam_appl.h: No such file or directory
| osdep.c:106: warning: 'struct pam_response' declared inside parameter list
| osdep.c:106: warning: its scope is only this definition or declaration, which is probably not what you want
| osdep.c:106: warning: 'struct pam_message' declared inside parameter list
| osdep.c: In function 'checkpw_conv':
| osdep.c:110: error: invalid application of 'sizeof' to incomplete type 'struct pam_response'
| osdep.c:111: error: dereferencing pointer to incomplete type
| osdep.c:112: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)
| osdep.c:112: error: (Each undeclared identifier is reported only once
| osdep.c:112: error: for each function it appears in.)

...

| osdep.c:1057: error: expected '{' at end of input
| make[3]: *** [osdep.o] Error 1
| make[3]: Leaving directory `/home/brettb/oe/arago-tmp/work/armv5te-none-linux-gnueabi/libc-client-2007b-r0/imap-2007b/c-client'
| make[2]: *** [lnp] Error 2
| make[2]: Leaving directory `/home/brettb/oe/arago-tmp/work/armv5te-none-linux-gnueabi/libc-client-2007b-r0/imap-2007b/c-client'
| make[1]: *** [OSTYPE] Error 2
| make[1]: Leaving directory `/home/brettb/oe/arago-tmp/work/armv5te-none-linux-gnueabi/libc-client-2007b-r0/imap-2007b'
| make: *** [lnp] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /home/brettb/oe/arago-tmp/work/armv5te-none-linux-gnueabi/libc-client-2007b-r0/temp/log.do_compile.25448
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/brettb/oe/arago-oe-dev/recipes/libc-client/libc-client_2007b.bb do_compile failed
ERROR: Task 272 (/home/brettb/oe/arago-oe-dev/recipes/libc-client/libc-client_2007b.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 361 tasks of which 361 didn't need to be rerun and 1 failed.
ERROR: '/home/brettb/oe/arago-oe-dev/recipes/libc-client/libc-client_2007b.bb' failed
brettb@bigeye:~/oe$

 

 

I've been able to buld ssl and pam ( at least libpam-base-files anyway).

Does anybody have a way to get this to work?  What is the linuxtag build recipe -- anybody got that working?

 

Brett

  • Brett,

    | osdep.c:89:31: error: security/pam_appl.h: No such file or directory


    Looks like some pam-specific headers are missing... Seems like pam package is supposed to stage that file.

    I personally haven't tried building php, so never had this issue. Once I have time, I'll try to reproduce your issue...

    And I'd suggest posting Arago specific questions to the Arago mailing list - https://gforge.ti.com/gf/project/arago/mailman/

  • Hi Brett,

    I solved the same issue modifyng the recipe libc-client_2007b.bb in openebedded

    diff --git a/recipes/libc-client/libc-client_2007b.bb b/recipes/libc-client/libc-client_2007b.bb
    index ffe9561..dbcda08 100644
    --- a/recipes/libc-client/libc-client_2007b.bb
    +++ b/recipes/libc-client/libc-client_2007b.bb
    @@ -14,7 +14,7 @@ EXTRA_OEMAKE = "CC='${CC}'"
     HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h"
     
     do_compile() {
    -       echo "SSLINCLUDE=${STAGING_INCDIR}/openssl SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS
    +       echo "SSLINCLUDE=${STAGING_INCDIR} SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS
            oe_runmake lnp
     }

    Regards

    Pierluigi

  • Pierluigi,

    Thanks for the fix! I pushed it to upstream OpenEmbedded.

    Denys