WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help: compile a opensource program on Coreplus  (Read 5058 times)

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Help: compile a opensource program on Coreplus
« on: September 24, 2014, 07: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11658
Re: Help: compile a opensource program on Coreplus
« Reply #1 on: September 24, 2014, 09: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.


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Help: compile a opensource program on Coreplus
« Reply #2 on: September 25, 2014, 03:32:09 AM »
Looks like libtool or libtool-dev is missing.
The only barriers that can stop you are the ones you create yourself.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Help: compile a opensource program on Coreplus
« Reply #3 on: September 25, 2014, 03:48:44 AM »
..or autoconf, automake, gettext, intltool...

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: compile a opensource program on Coreplus
« Reply #4 on: September 26, 2014, 11: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.



Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Help: compile a opensource program on Coreplus
« Reply #5 on: September 26, 2014, 11:58:41 AM »
Did you load the compiletc, libtool-dev intltool and gettext-dev extensions?

What are you trying to compile?
« Last Edit: September 26, 2014, 12:27:17 PM by Juanito »

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: compile a opensource program on Coreplus
« Reply #6 on: September 26, 2014, 06: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!

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: compile a opensource program on Coreplus
« Reply #7 on: September 30, 2014, 02:34:11 PM »
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?


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Help: compile a opensource program on Coreplus
« Reply #8 on: September 30, 2014, 03:31:09 PM »
APPS provides function will find it for you.
squashfs-tools-4.x

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: compile a opensource program on Coreplus
« Reply #9 on: September 30, 2014, 05:21:40 PM »
APPS provides function will find it for you.
squashfs-tools-4.x

Thanks! It works for now.

Offline lid

  • Jr. Member
  • **
  • Posts: 62
Re: Help: compile a opensource program on Coreplus
« Reply #10 on: October 06, 2014, 02:58:07 PM »
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?


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Help: compile a opensource program on Coreplus
« Reply #11 on: October 06, 2014, 03: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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Help: compile a opensource program on Coreplus
« Reply #12 on: October 06, 2014, 03:07:33 PM »
Use startup script to create the file in the RAM file system.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."