Tiny Core Linux
General TC => Programming & Scripting - Unofficial => Topic started by: lid on September 24, 2014, 04:47:26 PM
-
Hi,
I am trying to compile a open source package on Coreplus. It's originally designed to run on Redhat/Centos/Fedora.
I downloaded the source and used tce-ab to install all the required extensions for development. Then I followed the package's instruction and did:
sh bootstrap.sh
./configure
make
But I can't even run make as there is no Makefile generated. The last few lines from ./configure look like this:
./configure: line 5716: AC_DISABLE_STATIC: command not found
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
./configure: line 6449: LTOPTIONS_VERSION: command not found
./configure: line 6450: LTSUGAR_VERSION: command not found
./configure: line 6451: LTVERSION_VERSION: command not found
./configure: line 6452: LTOBSOLETE_VERSION: command not found
checking how to print strings... printf
./configure: line 6514: syntax error near unexpected token `lt_decl_varnames,'
./configure: line 6514: `lt_if_append_uniq(lt_decl_varnames, SHELL, , ,'
Can anyone tell me what's wrong?
Thanks.
-
Hi lid
I don't think you've supplied enough information to determine what's wrong.
What are you trying to compile?
Did you install the compiletc extension?
The last few lines from ./configure look like this: .....
More important are the very first errors encountered.
-
Looks like libtool or libtool-dev is missing.
-
..or autoconf, automake, gettext, intltool...
-
..or autoconf, automake, gettext, intltool...
The package's README file lists the following requirements:
automake > 1.4
autoconf > 1.4
pkgconfig
libtool
gtk2-devel
openssl-devel >= 0.9.7
pthreads library (glibc-devel)
My coreplus build machine has:
automake
autoconf
libtool
gtk2
gtk2-dev
openssl-1.0.0
openssl-1.0.0-dev
glibc_add_lib
glibc_base-dev
pkg-config
It seems I already have everything needed.
-
Did you load the compiletc, libtool-dev intltool and gettext-dev extensions?
What are you trying to compile?
-
Did you load the compiletc, libtool-dev intltool and gettext-dev extensions?
What are you trying to compile?
Hey, you are right on! I didn't have libtool-dev, intltool, gettext-dev. After installation of these, my make got through OK!
Thanks!
Now next to the next challenge!
-
Did you load the compiletc, libtool-dev intltool and gettext-dev extensions?
What are you trying to compile?
Another question: Since I am done with compiling, I need to create an extension for testing. I understand I need mksquashfs but it doesn't exist on my Coreplus build machine. I did a search using tce-ab but nothing found.
What extension do I need to install to get this tool?
-
APPS provides function will find it for you.
squashfs-tools-4.x
-
APPS provides function will find it for you.
squashfs-tools-4.x
Thanks! It works for now.
-
APPS provides function will find it for you.
squashfs-tools-4.x
Thanks! It works for now.
I have a new problem. After booting up with my own extension (pxeboot), the application requires one of its configuration file to be owned by a new user in a new group.I created the new user and group and I was trying to change the file owner:group attributes by chown. But I wasn't allowed to do so as the file is read only.
So I went back to my build machine to try to change it there. Then mksquashfs command complained that it failed to read the file and created a new one.
So the question is what's the best way to solve this ownership problem in the extension?
-
Are you root when you run mksquashfs?
Your tce.installed script will need to add the user and group to passwd, shadow, group, and gshadow files.
-
Use startup script to create the file in the RAM file system.