Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: lid on September 24, 2014, 04:47:26 PM

Title: Help: compile a opensource program on Coreplus
Post 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.
Title: Re: Help: compile a opensource program on Coreplus
Post by: Rich on September 24, 2014, 06:42:16 PM
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?

Quote
The last few lines from ./configure look like this: .....
More important are the very first errors encountered.

Title: Re: Help: compile a opensource program on Coreplus
Post by: curaga on September 25, 2014, 12:32:09 AM
Looks like libtool or libtool-dev is missing.
Title: Re: Help: compile a opensource program on Coreplus
Post by: Juanito on September 25, 2014, 12:48:44 AM
..or autoconf, automake, gettext, intltool...
Title: Re: Help: compile a opensource program on Coreplus
Post by: lid on September 26, 2014, 08:21:47 AM
..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.


Title: Re: Help: compile a opensource program on Coreplus
Post by: Juanito on September 26, 2014, 08:58:41 AM
Did you load the compiletc, libtool-dev intltool and gettext-dev extensions?

What are you trying to compile?
Title: Re: Help: compile a opensource program on Coreplus
Post by: lid on September 26, 2014, 03:22:42 PM
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!
Title: Re: Help: compile a opensource program on Coreplus
Post by: lid on September 30, 2014, 11:34:11 AM
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?

Title: Re: Help: compile a opensource program on Coreplus
Post by: gerald_clark on September 30, 2014, 12:31:09 PM
APPS provides function will find it for you.
squashfs-tools-4.x
Title: Re: Help: compile a opensource program on Coreplus
Post by: lid on September 30, 2014, 02:21:40 PM
APPS provides function will find it for you.
squashfs-tools-4.x

Thanks! It works for now.
Title: Re: Help: compile a opensource program on Coreplus
Post by: lid on October 06, 2014, 11:58:07 AM
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?

Title: Re: Help: compile a opensource program on Coreplus
Post by: gerald_clark on October 06, 2014, 12:05:02 PM
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.
Title: Re: Help: compile a opensource program on Coreplus
Post by: bmarkus on October 06, 2014, 12:07:33 PM
Use startup script to create the file in the RAM file system.