Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 06:23
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO 2012
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 16 of 27 Posts_count   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18, ..., 25, 26, 27 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Tue 29 Jan 2013, 11:50    Post_subject:  

http://stackoverflow.com/questions/9922949/how-to-print-the-ldlinker-search-path

Creating the searched directory structure (/lib/tls/i686/sse2) and symlinking /lib/libc.so.6 there stops the search.

Using less to view content of ld-2.6.1.so and text search for tls or sse2 does not show anything.

Using strace on dynamic linked uclibc binaries does not have these extra search path (goes for "/lib/libc.so" first).
Back to top
View user's profile Send_private_message Visit_website 
amigo

Joined: 02 Apr 2007
Posts: 2258

PostPosted: Tue 29 Jan 2013, 13:02    Post_subject:  

What is the output of:
ldconfig -v 2>/dev/null | grep -v ^$'\t'
on your machine. The command appears to only show locations which are in ld.so.conf, plus the standard locations.
Here, I get:
ldconfig -v 2>/dev/null | grep -v ^$'\t'
/usr/local/lib:
/usr/i586-kiss-linux/lib:
/usr/lib/seamonkey:
/lib:
/usr/lib:
And the content of /etc/ld.so.conf is:
/usr/local/lib
/usr/i586-kiss-linux/lib
/usr/lib/seamonkey

Whose glibc are you using anway?
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Tue 29 Jan 2013, 14:23    Post_subject:  

I am using libs provided with standard Puppy 412...output is:
Quote:
/lib:
/usr/lib:
/usr/X11R7/lib:
/opt/qt4/lib:
/opt/mozilla.org/lib:
/root/my-applications/lib:
/usr/lib/tls: (hwcap: 0x8000000000000000)

and content of /etc/ld.so.conf is
Quote:
/lib
/usr/lib
/usr/X11R7/lib
/opt/qt4/lib
/opt/mozilla.org/lib
/opt/samba/lib
/root/my-applications/lib
Back to top
View user's profile Send_private_message Visit_website 
amigo

Joined: 02 Apr 2007
Posts: 2258

PostPosted: Tue 29 Jan 2013, 15:46    Post_subject:  

/usr/lib/tls: (hwcap: 0x8000000000000000)
Okay! That's the one which is hidden and generated in some mysterious way. It either has to do with CPU specs and is generated at runtime or it has to do with configure options to glibc and is being determined at glibc compile-time. The key is the 'hwcap' part.

I have asked about this all over at linuxquestions.org -but no takers yet.

Aha! Just found an LKML thread where The Man(Roland McGrath) himself talks about this:
https://lkml.org/lkml/2007/4/24/3

He seems to be saying that these paths are generated at runtime -using entires in /etc/ld.so.conf.d, and/or they depend on options used at glibc compile-time.

On my self-built system here, I don't get any of those extra paths. Guess the upshot is that you need to be using Gilbert's super-duper KISS linux -where most of the nonsense is missing... Or maybe you'd like to roll your own glibc -even BK doesn't do that.

"libs provided with standard Puppy 412" The problem is that that still doesn't tell us where they came from or who built them! The output of `/lib/libc.so.6` will help a little bit -did you know that trick? Here's another 2 which will tell you some things -sometimes clearing up questions about compiling/linking problems:
gcc -dumpspecs
gcc -dumpmachine

Here's another link with tips to the location(s) in the sources.
http://www.unixresources.net/linux/clf/linuxK/archive/00/00/58/83/588306.html
Quote:
If this stuff is causing you a problem, you can turn it off by patching dl-procinfo.h in glibc

In topdir of glibc sources:
find -name dl-procinfo.h
sysdeps/generic/dl-procinfo.h
sysdeps/i386/dl-procinfo.h
sysdeps/powerpc/dl-procinfo.h
sysdeps/s390/dl-procinfo.h
sysdeps/sparc/dl-procinfo.h
sysdeps/unix/sysv/linux/i386/dl-procinfo.h
sysdeps/unix/sysv/linux/s390/dl-procinfo.h
sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h

And there's this:
http://blog.ijun.org/2012/01/debugging-load-library-path-issues.html

Does your system have a non-empty /etc/ld.so.conf.d directory?

Okay, getting warmer...
Starting at line 52 of sysdeps/i386/dl-procinfo.c:
Code:
#ifndef PROCINFO_DECL
= {
    "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
    "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov",
    "pat", "pse36", "pn", "clflush", "20", "dts", "acpi", "mmx",
    "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", "pbe"
  }
#endif

Those are the possible CPU features (hwcap) which constitute most of the list of possibly-weird locations. 'tls', and perhaps others, depends on the compile-time options for glibc.

Well, I'm just glad I have this clean, nearly vanilla system so that I don't have 14 open()'s being called before the right location is found!
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Tue 29 Jan 2013, 16:19    Post_subject:  

amigo: Thanks for all this info! A lot to test and think about. For now only the output of /lib/libc.so.6
Quote:
GNU C Library stable release version 2.6.1, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.2.2.
Compiled on a Linux >>2.6.21.7<< system on 2007-10-18.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

COOL! Smile
Back to top
View user's profile Send_private_message Visit_website 
amigo

Joined: 02 Apr 2007
Posts: 2258

PostPosted: Tue 29 Jan 2013, 16:29    Post_subject:  

Now I've maybe found the shortcut here:
http://ubuntuforums.org/archive/index.php/t-222492.html
Quote:
touch /etc/ld.so.nohwcap
This step is optional, but it reduced my startup time to half of what it used to be.

I remember reading about ld.so.nohwcap before...
But, it doesn't seem to be in later versions of glibc sources at all. Having an empty /etc/ld.so.conf.d may do the same thing.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Sun 03 Feb 2013, 12:31    Post_subject:  

Created a static build of Xorg (X11R-6.7.0) - pet-package including xorgwizard, ddcprobe & dmidecode for easy configuration - can be downloaded here
Its quite big (7,7Mb uncompressed) but I can run it on machinery with 36Mb ram. It seems to display fonts OK. It holds a lot of display drivers so if you have problems getting pupngo2012 running on you hardware this might solve the problem.
Back to top
View user's profile Send_private_message Visit_website 
greengeek

Joined: 20 Jul 2010
Posts: 2595
Location: New Zealand

PostPosted: Wed 06 Feb 2013, 13:38    Post_subject:  

When I boot the standard pupngo2012 on a Toshiba TE2100 the display starts up in 800x600 and everything looks correct. (I can change the res if I need to, but Im just testing in 800x600 for the purposes of this problem..)

When I use the same CD to boot on an older Toshiba (2180CDT) which only has an 800x600 capable screen the display is clear, but all drive icons and program icons are missing unless I start xorg. Also, if I click "file manager" in the menus it does nothing, but if I locate the rox icon and click it, filemanager starts up ok.

Q1) Any ideas why the icons are not displaying under xvesa?
Q2) Is there a cli method of listing running processes?
Q3) Is rox different to rox-filer, and is there a rox-pinboard running on pupngo? Is thats whats not running on my older system?
Q4) Which file describes the position location for the drive icons on pupngo?

Thanks for any pointers.
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Wed 06 Feb 2013, 16:40    Post_subject:  

View running processes in CLI: ps (or top for the top ones)
Try look in /tmp/xerrors.log - should report problems - maybe ROX fails to start?
Pinboard should run in pupngo. The geometry is determined at startup and placement of icons set in root/Choices/ROX-Filer/puppupin
Best guess is that ROX are having problems at startup.
Back to top
View user's profile Send_private_message Visit_website 
greengeek

Joined: 20 Jul 2010
Posts: 2595
Location: New Zealand

PostPosted: Thu 07 Feb 2013, 13:45    Post_subject:  

goingnuts wrote:
Pinboard should run in pupngo.

Thanks for the answers - that is very helpful. As part of this troubleshooting I am changing the desktop layout, and have put the jwm tray at the top (instead of the bottom) and I want to move the drive icons towards the top aswell. I can move these drive icons successfully by changing the puppypin file, but after I do that I notice that new usb drives I plug in still display at the bottom of the screen.

It appears as if maybe Rox has a predetermined positioning for anything that is not specifically mentioned yet in the puppypin file?

It seems to me that the tray which holds new drive icons is probably specified in the file .create_jwmrc_drives.sh by the line:
Code:
<Tray layout=\"horizontal\" x=\"-38\" y=\"0\" height=\"40\" layer=\"0\" border=\"1\">" # > /root/.jwmrc-drives

but I have not succeeded in changing the behaviour/location of the drives tray (for example I tried changing "horizontal" to vertical, and also tried changing the x and y values but never saw any change)

Does every possible drive icon HAVE to be listed in puppypin?? What if I don't know how many drives the end user might have?

Is there some way to change the drive_icon_positioning_behaviour without specifying it in puppypin?
TLpngo12.jpg
 Description   
 Filesize   26.36 KB
 Viewed   417 Time(s)

TLpngo12.jpg

Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Thu 07 Feb 2013, 14:31    Post_subject:  

Is far as I remember the drive icons are generated in /sbin/pup_event_frontend_d. The .create_jwmrc_drives.sh is a left over from time when no ROX present and desktop icons were made via jwm alone. Try look into /sbin/pup_event_frontend_d - most things are explained there.
Back to top
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Thu 07 Feb 2013, 15:02    Post_subject:  

The problem with rox is that it doesnt accept negative values for placement (distance from right or bottom) like jwm does, so it is a little harder to get exactly right. It probably wouldn't be a difficult thing to patch but then compatibility issues arise. it would look like:
if (x<0) x+=gdk_screen_get_widthgdk_screen_get_default());
//similar for y

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
greengeek

Joined: 20 Jul 2010
Posts: 2595
Location: New Zealand

PostPosted: Sat 09 Feb 2013, 04:49    Post_subject:  

Thanks for the clues. I have made some alterations to pupngo2012 so that the menu and drive icon display functions are referenced to the top left corner instead of the "calculated" bottom_of_screen and my 2180cdt is now booting correctly. I plan to try this approach on some of my other machines that struggle to boot/display puppy correctly, and have started a thread here:
http://www.murga-linux.com/puppy/viewtopic.php?p=683684#683684
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Mon 18 Feb 2013, 16:14    Post_subject:  

I am working on getting icewm running in pupngo - and almost done with a draft. I am using xli as desktop background setter, have a pm-icewm-menu/winoptions done and modified smaller things in xinitrc and xwin. One problem remains though: How to swallow the freememapplet or other applets in icewm? Ohh - I think the solution is icewmtray!
Back to top
View user's profile Send_private_message Visit_website 
KJ

Joined: 20 Jul 2006
Posts: 176
Location: Above sea level .. about 320m

PostPosted: Wed 20 Feb 2013, 13:21    Post_subject:  

Icewmtray should address the "swallow" problem.

Happy to hear that IceWM might be in the works ... It's my favorite WM. Puppy Xtreme (420) is still one of my favorite Puppies ... no pinboard or wallpaper just a black screen with my most used apps on a double height taskbar (quick launch) plus battery, eth0 or wlan0, and CPU monitors (no tray). 13 basic running processes including eth0, 15 with wifi up. JWM work too but you do not have system monitors.

I've been playing around with PuPnGo2012, Plus and TLC for a few days now on my older acer lappy. All are running from a single USB flashdrive booting from Grub4DOS. PiPnGo2012 works well .... Only problem noted is that freememapplet doesn't report free RAM or savefile correctly.

Keep up the good work .... KJ
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 16 of 27 Posts_count   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18, ..., 25, 26, 27 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0992s ][ Queries: 13 (0.0098s) ][ GZIP on ]