WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: a few problems (TC4.3)  (Read 7731 times)

Offline oleg

  • Newbie
  • *
  • Posts: 20
a few problems (TC4.3)
« on: February 22, 2012, 03:11:04 PM »
1. iptables.tcz have dependency on netfilter-KERNEL.tcz but it is not in the repository

2. isomaster.tcz.dep missing EOL at the EOF

3. nginx depends on openssl, but it is not in its dep file, and not indirectly dependent

4a. gcc.tcz

Code: [Select]
tc@box:/mnt/sdb1$ cat test.cpp
#include <iostream>
int main(){ std::cout<<"hi\n"; }

Code: [Select]
tc@box:/mnt/sdb1$ g++ test.cpp
In file included from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../include/c++/4.6.1/i686-pc-linux-gnu/bits/c++config.h:392:0,
                 from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../include/c++/4.6.1/iostream:39,
                 from test.cpp:1:
/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../include/c++/4.6.1/i686-pc-linux-gnu/bits/os_defines.h:40:22: fatal error: features.h: No such file or directory
compilation terminated.

4b. gcc.tcz

Code: [Select]
tc@box:/mnt/sdb1$ cat tes1.c
int main(){}
tc@box:/mnt/sdb1$ gcc tes1.c
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
/usr/local/bin/ld: cannot find -lc
/usr/local/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: a few problems (TC4.3)
« Reply #1 on: February 22, 2012, 03:19:48 PM »
1. KERNEL is replaced by the output of 'uname -r'.

2. Why do you think that is a problem?

3. Optional components are not included in deps.

4. Use compiletc.tcz instead of gcc.tcz.


Offline oleg

  • Newbie
  • *
  • Posts: 20
Re: a few problems (TC4.3)
« Reply #2 on: February 22, 2012, 03:32:09 PM »
1. KERNEL is replaced by the output of 'uname -r'.

2. Why do you think that is a problem?

3. Optional components are not included in deps.

4. Use compiletc.tcz instead of gcc.tcz.

1. Ok
2. Unix standard to text files
3. nginx did not start until I installed openssl. if it is optional, default configuration should not reply on it
4. Ok. What is the difference between compiletc and gcc?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11538
Re: a few problems (TC4.3)
« Reply #3 on: February 22, 2012, 04:42:06 PM »
Hi oleg
Compiletc includes additional utilities, headers, libraries, and development packages  such as  eglibc_base-dev.tcz
which provides crt1.o, crti.o, and crtn.o for example.

Offline oleg

  • Newbie
  • *
  • Posts: 20
Re: a few problems (TC4.3)
« Reply #4 on: February 22, 2012, 07:50:57 PM »
Does it mean that gcc.tcz is usable by itself? If yes, should not dependencies be included?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: a few problems (TC4.3)
« Reply #5 on: February 22, 2012, 07:59:22 PM »
Nobody knows what your source compile is going to need.
As a developer, that is your job.

compiletc is a meta extension for those packages needed to compile tc.
It is a good starting point for other compiles.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: a few problems (TC4.3)
« Reply #6 on: February 23, 2012, 01:51:46 AM »

2. isomaster.tcz.dep missing EOL at the EOF


Does it break anyting? No.
Does depenedencí resolution works? Yes.

That's all. No change is needed in isomaster.tcz.dep
Béla
Ham Radio callsign: HA5DI

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11034
Re: a few problems (TC4.3)
« Reply #7 on: February 23, 2012, 09:52:03 AM »
Does it mean that gcc.tcz is usable by itself? If yes, should not dependencies be included?

Last I looked in Debian, installing gcc only installed gcc. There the metapackage was called build-essential.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: a few problems (TC4.3)
« Reply #8 on: February 23, 2012, 06:02:35 PM »

3. nginx depends on openssl, but it is not in its dep file, and not indirectly dependent


??? openssl-0.9.8.tcz IS in the .dep list and was there always. It is another issue, that due to openssl reorganization nginx.tcz requires adjustment.
« Last Edit: February 23, 2012, 06:06:57 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: a few problems (TC4.3)
« Reply #9 on: February 23, 2012, 06:08:25 PM »
No it is not, but libssl-0.9.8.tcz is.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: a few problems (TC4.3)
« Reply #10 on: February 23, 2012, 06:12:48 PM »
Anyhow I will rebuild it against 1.0.0
Béla
Ham Radio callsign: HA5DI

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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: a few problems (TC4.3)
« Reply #11 on: February 23, 2012, 06:31:59 PM »
Updeted version submitted.
Béla
Ham Radio callsign: HA5DI

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

Offline oleg

  • Newbie
  • *
  • Posts: 20
Re: a few problems (TC4.3)
« Reply #12 on: February 27, 2012, 12:23:13 AM »

2. isomaster.tcz.dep missing EOL at the EOF


Does it break anyting? No.
Does depenedencí resolution works? Yes.

That's all. No change is needed in isomaster.tcz.dep

It breaks in the following command
Code: [Select]
cat file1.dep file2.dep > file3.dep
Furthermore in the future it may break programmers code working  with dep files if the programmer assumes (legitimately) that files are following the standard unix text formatting.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: a few problems (TC4.3)
« Reply #13 on: February 27, 2012, 12:56:40 AM »
I agree. I encountered such with the md5.txt in the repository and had to programatically add many EOL so that I could produce md5.db.gz used in the latest AppsAudit.
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: a few problems (TC4.3)
« Reply #14 on: February 27, 2012, 03:28:21 AM »

It breaks in the following command
Code: [Select]
cat file1.dep file2.dep > file3.dep
Furthermore in the future it may break programmers code working  with dep files if the programmer assumes (legitimately) that files are following the standard unix text formatting.

Following .dep files are not terminated with 0x0a:

Image-ExifTool.tcz.dep
ImageMagick-dev.tcz.dep
ImageMagick.tcz.dep
Terminal-locale.tcz.dep
Terminal.tcz.dep
Thunar-locale.tcz.dep
amsn-voice-alsa.tcz.dep
balsa-locale.tcz.dep
bitcoin-locale.tcz.dep
bitcoin.tcz.dep
blobwars-locale.tcz.dep
blobwars.tcz.dep
bonnie++.tcz.dep
cinepaint.tcz.dep
circuslinux.tcz.dep
cln-dev.tcz.dep
cln.tcz.dep
dbench.tcz.dep
dbus-c++-dev.tcz.dep
dbus-c++.tcz.dep
dcraw.tcz.dep
djvulibre-dev.tcz.dep
drizzle-client.tcz.dep
drizzle-server-dev.tcz.dep
drizzle.tcz.dep
echinus.tcz.dep
exo-dev.tcz.dep
exo-locale.tcz.dep
exo.tcz.dep
fastjar.tcz.dep
foobillardplus.tcz.dep
glib-networking.tcz.dep
gnuplot.tcz.dep
gsettings-desktop-schemas.tcz.dep
gtk-xfce-engine.tcz.dep
icon-naming-utils.tcz.dep
isomaster-locale.tcz.dep
isomaster.tcz.dep
kdemultimedia.tcz.dep
kdenetwork.tcz.dep
keepassx.tcz.dep
libbsd-dev.tcz.dep
libdrizzle-dev.tcz.dep
libdrizzle.tcz.dep
libdvdnav-dev.tcz.dep
libdvdnav.tcz.dep
libedit-dev.tcz.dep
libedit.tcz.dep
libesmtp-dev.tcz.dep
libesmtp.tcz.dep
libexempi-dev.tcz.dep
libexempi.tcz.dep
libmicrohttpd.tcz.dep
libmpeg2-dev.tcz.dep
libmusicbrainz3-dev.tcz.dep
libmusicbrainz3.tcz.dep
libmxml-dev.tcz.dep
libsee.tcz.dep
libsoup.tcz.dep
libspectre-dev.tcz.dep
libwnck-dev.tcz.dep
libwnck-locale.tcz.dep
libwnck.tcz.dep
libxfce4util-dev.tcz.dep
libxfce4util-locale.tcz.dep
libxfce4util.tcz.dep
libxfcegui4-dev.tcz.dep
libxfcegui4-locale.tcz.dep
libxfcegui4.tcz.dep
libzip-dev.tcz.dep
lxtask.tcz.dep
mame.tcz.dep
mednafen.tcz.dep
mjpegtools.tcz.dep
modernforex.tcz.dep
mpeg2dec.tcz.dep
msmtp.tcz.dep
multiget-locale.tcz.dep
multiget.tcz.dep
nload.tcz.dep
opera-11.tcz.dep
opera-next.tcz.dep
p7zip-full.tcz.dep
pcmanfm-mod-locale.tcz.dep
pcmanfm-mod.tcz.dep
pygoocanvas-2.7.tcz.dep
python-httplib2-2.7.tcz.dep
qtweb.tcz.dep
rarian-dev.tcz.dep
rarian.tcz.dep
rawstudio.tcz.dep
recode-locale.tcz.dep
rtmpdump.tcz.dep
rumus2.tcz.dep
secure_erase.tcz.dep
see-shell.tcz.dep
soundmodem-dev.tcz.dep
soundmodem-locale.tcz.dep
soundmodem.tcz.dep
soundmodemconfig.tcz.dep
squeeze-dev.tcz.dep
squeeze-locale.tcz.dep
tome2.tcz.dep
vcdimager.tcz.dep
webkit-sharp.tcz.dep
xfce4-appfinder-locale.tcz.dep
xfce4-appfinder.tcz.dep
xfce4-goodies-panel-plugins-locale.tcz.dep
yougrabber.tcz.dep

If any application is sensitive for buggy input which can break it, application must handle it as you can not be 100% sure you get proper data input, see above.

Using command line commands you are referring it is up to you to check input.


Béla
Ham Radio callsign: HA5DI

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