Its been a while since I have tried to make a build.. but wanted to do a
new one so I started out like I always do. and I ended up with a failure..
so thought id post it here
Im really trying to get where I can test build packages *ON* the target
device and not be in a cross-compile situation.. namely PHP, there are
others who have compiled PHP against uclibc and have dlopen working however
they did not cross-compile. So my thought was to select the options for a
native toolchain on my target which I did.. however I have to get past the
errors first..
But how do I fix it permanently??
Here is the first error:
make[2]: Leaving directory
`/usr/src/astlinux/0.7/build_i586/ncurses-5.5/misc'
make[1]: Leaving directory `/usr/src/astlinux/0.7/build_i586/ncurses-5.5'
chmod a-x /usr/src/astlinux/0.7/build_i586/ncurses-5.5/lib/libncurses.so*
touch -c /usr/src/astlinux/0.7/build_i586/staging_dir/lib/libncurses.a
cp -dpf /usr/src/astlinux/0.7/build_i586/ncurses-5.5/lib/libncurses.so*
/usr/src/astlinux/0.7/build_i586/root/lib/
cp -dpf /usr/src/astlinux/0.7/build_i586/staging_dir/usr/lib/terminfo
/usr/src/astlinux/0.7/build_i586/root/usr/lib/
cp: cannot stat
`/usr/src/astlinux/0.7/build_i586/staging_dir/usr/lib/terminfo': No such
file or directory
make: *** [/usr/src/astlinux/0.7/build_i586/root/lib/libncurses.so.5.5]
Error 1
Script done, file is build.log_
real 13m13.766s
user 15m46.053s
sys 3m56.794s
[cadillac...@localhost 0.7]$
And here is what I did to fix that error.
[cadillac...@localhost 0.7]$ mkdir build_i586/staging_dir/usr/lib
[cadillac...@localhost 0.7]$ ln -s
/usr/src/astlinux/0.7/build_i586/staging_dir/usr/share/terminfo
/usr/src/astlinux/0.7/build_i586/staging_dir/usr/lib/terminfo
[cadillac...@localhost 0.7]$ toolchain/build
Now here is another error that I cant seem to nail the source of!!
/usr/src/astlinux/0.7/build_i586/staging_dir/bin/i586-linux-uclibc-gcc -Os
-pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops
-fno-align-jumps -fno-align-labels -iprefix
/usr/src/astlinux/0.7/build_i586/staging_dir -iwithprefix /include
-iwithprefix /usr/include -DUSE_SSL -Iopenssl
--sysroot=/usr/src/astlinux/0.7/build_i586/root
--sysroot=/usr/src/astlinux/0.7/build_i586/staging_dir
-L/usr/src/astlinux/0.7/build_i586/staging_dir/lib
-L/usr/src/astlinux/0.7/build_i586/staging_dir/usr/lib htpasswd.o -lcrypt -o
htpasswd
mini_httpd.c:69:25: error: openssl/ssl.h: No such file or directory
mini_httpd.c:70:25: error: openssl/err.h: No such file or directory
mini_httpd.c:198: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mini_httpd.c:207: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mini_httpd.c: In function 'main':
mini_httpd.c:549: error: 'ssl_ctx' undeclared (first use in this function)
mini_httpd.c:549: error: (Each undeclared identifier is reported only once
mini_httpd.c:549: error: for each function it appears in.)
mini_httpd.c:551: error: 'SSL_FILETYPE_PEM' undeclared (first use in this
function)
mini_httpd.c: In function 'handle_request':
mini_httpd.c:1191: error: 'ssl' undeclared (first use in this function)
mini_httpd.c:1191: error: 'ssl_ctx' undeclared (first use in this function)
mini_httpd.c: In function 'send_error':
mini_httpd.c:2405: error: 'ssl' undeclared (first use in this function)
mini_httpd.c: In function 'my_read':
mini_httpd.c:2693: error: 'ssl' undeclared (first use in this function)
mini_httpd.c: In function 'my_write':
mini_httpd.c:2707: error: 'ssl' undeclared (first use in this function)
make[1]: *** [mini_httpd.o] Error 1
make[1]: Leaving directory
`/usr/src/astlinux/0.7/build_i586/mini_httpd-1.19'
make: *** [/usr/src/astlinux/0.7/build_i586/mini_httpd-1.19/mini_httpd]
Error 2
Script done, file is build.log_
real 6m37.728s
user 8m4.890s
sys 1m36.354s
[cadillac...@localhost 0.7]
I had to remove references to SSL.. which I don't want SSL since im not
using lonnies web interface I shouldn't need to run anything
But http and not https..
I took out references to ssl in the makefile.. then mini_httpd built.
But I notice that openSSL builds *AFTER* mini_httpd.. I thought this should
be other way around??
Ok and now onto the one that killed me.. haven't figured out a solution to
this one yet it is a failure in openssl..
/usr/src/astlinux/0.7/build_i586/staging_dir/bin/i586-linux-uclibc-gcc -I..
-I../.. -I../../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -Os
-pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops
-fno-align-jumps -fno-align-labels -iprefix
/usr/src/astlinux/0.7/build_i586/staging_dir -iwithprefix /include
-iwithprefix /usr/include -DTERMIO -O3 -fomit-frame-pointer -Wall -c -o
eng_cryptodev.o eng_cryptodev.c
eng_cryptodev.c: In function 'cryptodev_usable_digests':
eng_cryptodev.c:341: warning: implicit declaration of function
'get_cryptodev_digests'
eng_cryptodev.c: In function 'digest_nid_to_cryptodev':
eng_cryptodev.c:653: error: 'digests' undeclared (first use in this
function)
eng_cryptodev.c:653: error: (Each undeclared identifier is reported only
once
eng_cryptodev.c:653: error: for each function it appears in.)
eng_cryptodev.c: In function 'digest_key_length':
eng_cryptodev.c:665: error: 'digests' undeclared (first use in this
function)
eng_cryptodev.c: In function 'cryptodev_digest_update':
eng_cryptodev.c:742: warning: pointer targets in assignment differ in
signedness
eng_cryptodev.c: In function 'cryptodev_digest_final':
eng_cryptodev.c:773: warning: pointer targets in assignment differ in
signedness
make[3]: *** [eng_cryptodev.o] Error 1
make[3]: Leaving directory
`/usr/src/astlinux/0.7/build_i586/openssl-0.9.8o/crypto/engine'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory
`/usr/src/astlinux/0.7/build_i586/openssl-0.9.8o/crypto'
make[1]: *** [build_crypto] Error 1
make[1]: Leaving directory `/usr/src/astlinux/0.7/build_i586/openssl-0.9.8o'
make: *** [/usr/src/astlinux/0.7/build_i586/openssl-0.9.8o/libcrypto.a]
Error 2
Script done, file is build.log_
real 0m33.245s
user 0m26.734s
sys 0m6.127s
[cadillac...@localhost 0.7]$
And im stuck..
Are you guys building fine on 4623? And if so can you send me a config file
that works? I tried going back to the default included config and it still
wouldn't build.. I should not have updated the SVN on my machine....
-Christopher
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].