Re: Error making shared lib

2001-08-17 Thread Derrik Pates

Jason E. Stewart wrote:

I just went and ressurected some old code I wrote 3 years ago. It
wants to take a couple of static libs, and make a shared lib out of
the whole bunch using the --whole-archive flag to ld.


Yeah, but you're not passing the flag to ld, you're passing it to gcc.


Here is the link/compile line:
gcc -shared -Xlinker --whole-archive -L../bin-ppc-Linux 
-L./../kpl/bin-ppc-Linux -L/usr/lib/ -L/usr/lib/ -lpad

Here is an example of the errors:
/usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o): In function 
`__dummy':
__dummy.o(.text+0x0): multiple definition of `__dummy'
/usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o)(.text+0x0): first 
defined here


Yeah. Try passing -Wl,-whole-archive if you want to pass that option via 
a gcc command line, instead of to ld itself.


Derrik Pates
[EMAIL PROTECTED]



Handling several network locations [Was: wireless lan config]

2001-08-17 Thread Edouard G. Parmelan
[ I'm Cc: debian-laptop as it's more a laptop issue than a powerpc one. ]

On Wed, Aug 15, 2001 at 05:09:51PM -0400, J. Steinbachs wrote:

> On Wed, 15 Aug 2001, NeilFred Picciotto wrote:
> 
> > > Here's a version of what's in my /etc/network/interfaces. You can
> > > basically put anything after "up" -- see man interfaces(5).
> >
> > this is a pretty slick way of doing it.  but does anyone have a convenient
> > way of switching between multiple locations (with different network
> > passwords, and so on)?
> 
> Check out QuickSwitch http://www.muthanna.com/quickswitch/Docs/docs.html
> 
> -jennifer

Since January 2000 (with slink on Intel laptop), I study this problem and I
had a good solution that handles different ISPs thru PPP and different
SCHEMEs thru PCMCIA ethernet card.

Today, my laptop has a builtin ethernet card so I am studying again how to
switch between different network locations.  In fact, I am studying only
the glue on top of the following tools: dnrd, masqmail and wwwoffle.

- dnrd Domain Name Relay Daemon allow all your running programs to use new
  nameservers.  Setup 127.0.0.1 as primary nameserver and dnrd will
  forward requests to real nameservers.

- masqmail is a MTA (mail transport agent).  It has special support for
  connections to different ISPs.

- wwwoffle is a simple proxy server with special features for use with
  dial-up internet links.  In fact I had need it only because I can't
  direct use HTTP at work.  You need to use a perl script that's not in
  debian package but in upstream tarball.

I discover today package noffle ``It does for NNTP what wwwoffle does
for HTTP'' but I have not try it yet.


With woody, /etc/network/interfaces can be setup to auto detect current
location with special mapping read examples in file
/usr/share/doc/ifupdown/examples/network-interfaces.gz

I use the following basic glue in /etc/network/interfaces:

#auto eth0
mapping eth0
script /etc/network/map-scheme.sh
map Work eth0-work
map Home eth0-home

iface eth0-work inet static
address 172.16.100.164
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.1.254
up /bin/echo Work > /tmp/connect_route || true
down /bin/rm /tmp/connect_route || true
up /usr/sbin/dnrd -s 172.16.15.130 -s 172.16.15.129 || true
down /usr/sbin/dnrd || true


The script /etc/network/map-scheme.sh use content of file
/etc/network/scheme to select current location.

#!/bin/sh

iface="$1"
which=""

[ -f /etc/network/scheme ] || exit 1

lookup=$(cat /etc/network/scheme)

while read testval scheme; do
if [ "$which" ]; then continue; fi
if [ "$lookup" = "$testval" ]; then which="$scheme"; fi
done

if [ "$which" ]; then echo $which; exit 0; fi
exit 1


Switching location is then done by the small script:

#!/bin/sh

SCHEME=${1:-"none"}
DEVICE=${2:-"eth0"}

echo "$SCHEME" > /etc/network/scheme
egrep -q "^$DEVICE=" /etc/network/ifstate && /sbin/ifdown $DEVICE
/sbin/ifup $DEVICE


My .02 euro cents
-- 
Edouard G. Parmelan
http://egp.free.fr



Re: Error making shared lib

2001-08-17 Thread Daniel Jacobowitz
On Thu, Aug 16, 2001 at 11:14:34PM -0600, Derrik Pates wrote:
> Jason E. Stewart wrote:
> > I just went and ressurected some old code I wrote 3 years ago. It
> > wants to take a couple of static libs, and make a shared lib out of
> > the whole bunch using the --whole-archive flag to ld.
> 
> Yeah, but you're not passing the flag to ld, you're passing it to gcc.
> 
> > Here is the link/compile line:
> > gcc -shared -Xlinker --whole-archive -L../bin-ppc-Linux 
> > -L./../kpl/bin-ppc-Linux -L/usr/lib/ -L/usr/lib/ -lpad
> > 
> > Here is an example of the errors:
> > /usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o): In function 
> > `__dummy':
> > __dummy.o(.text+0x0): multiple definition of `__dummy'
> > /usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o)(.text+0x0): first 
> > defined here
> 
> Yeah. Try passing -Wl,-whole-archive if you want to pass that option via 
> a gcc command line, instead of to ld itself.

Naw, -Xlinker does that too.

Try ending with -Xlinker --no-whole-archive?  Leaving --whole-archive
on is never what you really want.

-- 
Daniel Jacobowitz   Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer



Re: offset x screen

2001-08-17 Thread Ethan Benson
On Fri, Aug 17, 2001 at 02:29:04PM +1000, Bruce McIntyre wrote:
> 
> I am a newbie... does this mean you want the output of startx &> foo.txt?
> I'll send you that now.

mail -s xfreelog [EMAIL PROTECTED] < /var/log/XFree86.0.log

btw: your Mail-Followup-To: header is broken.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/


pgpW8IwSPZsbz.pgp
Description: PGP signature


Re: still woody install problems

2001-08-17 Thread Marc Segelken
Hi!

Ok, 3.0.10 works fine so far. I got rid of the mount problem. Thanks for your 
hint.

But now the installation procedure hangs after the message "Install essential 
packages". 
Apart from switching between the consoles, the system does not respond to any 
commands. On the fourth console I have all the dependency errors with the last 
message being 
"Package 'sysvinit' is not installed and no info is available. ..."

Perhaps anyone has an idea how to get around this new problem.

Thanks in advance,

  Marc



Russell Hires wrote:
> 
> > I know that this problem already occured in previous versions, but it was
> > reported to have been fixed in 3.0.7. However, I still have this problem.
> >
> > Does anybody have an idea what to do about this problem?
> > Marc
> 
> Yes, upgrade to b-f 3.0.8? Or 3.0.9? There's a message from Debian-boot that
> says there is a 3.0.10 version ready for testing, actually
> http://people.debian.org/~aph/dists/woody/
> 
> HTH
> 
> Russell



Re: iBook modem? (solved)

2001-08-17 Thread Ian Marlier

On Thu, 16 Aug 2001, Grant Hollingworth wrote:


 On Thu, Aug 16, 2001 at 07:12:34PM -0500, Ian Marlier wrote:
 > I've got a working debian install on my iBook SE (graphite w/ DVD
 > player), but I can't get PPP to work...plog says that /dev/ttyS0
 > can't be found, but I don't know what other device the modem might
 > be...can anyone give me a hand?  (I'm using pon/poff and a chatscript)

 Do you have the macserial module loaded?


Also, does the device node exist? If you're using a 2.4 kernel with devfs,
is devfsd loaded? If that's the case, maybe try /dev/tts/0.


The macserial modeule was the problem...I left it out of teh kernel 
when I built it...oops.


Thanks, all!

- Ian

--

[EMAIL PROTECTED]
773 834 6123

Eventually all things merge into one, and a river runs through it. 
The river was cut by the world's great flood and runs over rocks from 
the basement of time.  On some of the rocks are timeless raindrops. 
Under the rocks are the words, and some of the words are theirs.


I am haunted by waters.



Re: Handling several network locations [Was: wireless lan config]

2001-08-17 Thread Colin Walters
"Edouard G. Parmelan" <[EMAIL PROTECTED]> writes:

> up /bin/echo Work > /tmp/connect_route || true
> down /bin/rm /tmp/connect_route || true

I'm not sure what you're doing here, but you should use /var/tmp.
These commands are run as root.



Re: Error making shared lib

2001-08-17 Thread Michel Dänzer
"Jason E. Stewart" wrote:

> I just went and ressurected some old code I wrote 3 years ago. It
> wants to take a couple of static libs, and make a shared lib out of
> the whole bunch

That's a bad idea in the first place. The static libraries probably contain
non-PIC code which can break in a shared lib any day.


-- 
Earthling Michel Dänzer (MrCooper)\   Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast   \XFree86 and DRI project member



Re: still woody install problems

2001-08-17 Thread Michael Schmitz
>
> since no one replied to my previous question I will try again.
>
>
> Trying to install woody 3.0.7 I got a
>   "mount -t proc proc /proc" failed
> error message.
>
> I know that this problem already occured in previous versions, but it was 
> reported to have been fixed in 3.0.7. However, I still have this problem.

Report your failure to debian-boot please. They need to be made aware of
this.

Michael



Re: Error making shared lib

2001-08-17 Thread Jason E. Stewart
"Daniel Jacobowitz" <[EMAIL PROTECTED]> writes:

> On Thu, Aug 16, 2001 at 11:14:34PM -0600, Derrik Pates wrote:
> > Jason E. Stewart wrote:
> > > I just went and ressurected some old code I wrote 3 years ago. It
> > > wants to take a couple of static libs, and make a shared lib out of
> > > the whole bunch using the --whole-archive flag to ld.
> > 
> > Yeah, but you're not passing the flag to ld, you're passing it to gcc.
> > 
> > > Here is the link/compile line:
> > > gcc -shared -Xlinker --whole-archive -L../bin-ppc-Linux 
> > > -L./../kpl/bin-ppc-Linux -L/usr/lib/ -L/usr/lib/ -lpad
> > > 
> > > Here is an example of the errors:
> > > /usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o): In function 
> > > `__dummy':
> > > __dummy.o(.text+0x0): multiple definition of `__dummy'
> > > /usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o)(.text+0x0): 
> > > first defined here
> > 
> > Yeah. Try passing -Wl,-whole-archive if you want to pass that option via 
> > a gcc command line, instead of to ld itself.
> 
> Naw, -Xlinker does that too.
> 
> Try ending with -Xlinker --no-whole-archive?  Leaving --whole-archive
> on is never what you really want.

Dan, you're beautiful ;-)

That was it.

Thanks,
jas.



Re: iBook (firewire) backlight

2001-08-17 Thread Michael Schmitz
> I haven't had this problem, but I've found that using the 'backlight'
> command (from the powerpc-utils package) with the '-a' switch often
> doesn't work (won't control the backlight properly), and I have had it
> hard-lock the system. Using the '-q' switch instead doesn't do this - it
> controls the backlight level correctly, and I haven't had it lock the
> laptop.
>
> An 'strace' indicates that with the '-a' switch, it opens /dev/adb, and

Whoever included that toon in the powerpc-utils should be taken out and
shot. Use the fblevel tool instead. The ADB command only works on Lombards
I bet (that's where I wrote it for). May even require patches to the ADB
driver, who knows.

Please file a bug against powerpc-utils so backlight gets replaced by
fblevel there.

Michael



Re: ibook2

2001-08-17 Thread Michael Schmitz
> > There is one thing left which is not working perfectly: The external rgb
> > output...
> >
> > Activating is no problem, using m3mirror, but the picture is not stable
> > =2E..
>
> I've never used an external monitor with mine. Eventually, I'll probably
> have a play, but there's enough to worry about without adding that sort
> of thing into the mix. :) Maybe somebody on the debian-powerpc list
> would know better. (email cc'd to that list.)

We probably need to get a register dump of the CRTC1 and CRTC2 register
sets, and somehow compare that with what you get after setting up dual
display in MockOS, then booting bypassing the aty128fb driver
(video=ofonly). If that even works. I can provide sample register dump
code (and there should be some in the sourceforge atyfb project files as
well).

Consult the aty128.h header for register offsets. Yell and scream at the
aty128fb maintainer if the CRTC2 offsets aren't in there ;-)

Michael



Boletín Informativo - Agosto 2001

2001-08-17 Thread GLOBALTECH CORP.
Title: promocion_email_agosto_2001







  
  

  

  

  


  GLOBALTECH
  CORP.
  Un
  mundo de tecnología al alcance de tus manos...
  
  
 
  

   Agosto
  2001
  

  

  

   
  

  

  


    
  Boletín
  Informativo de
  GlobalTech Church 2000


  
  
 

   
  


  
 
  
  

  


  

 

  
  
 

  
  ¿Desea usted contribuir
  en el desarrollo y crecimiento de su Iglesia?
  
  ¿Le gustaría estar más
  seguro y confiado acerca de cómo son manejadas
  sus contribuciones en su Iglesia?
  
  ¿Le
  gustaría que su Iglesia se distinguiera entre las
  demás?
  
 
  
  

 

  


  

  
  

    
  Si
  su contestación es sí a alguna de estas preguntas, le
  tenemos su solución...
  
  
   
  
  Ya
  está en el mercado GlobalTech Church 2000, la aplicación
  de computadoras desarrollada específicamente para
  facilitar la administración de los asuntos diarios de una
  Iglesia.  Su
  iglesia no encontrará una manera más completa de
  mantener la información de todos sus contactos (miembros,
  visitas, iglesias y otros), llevar un registro de los
  aspectos financieros de la iglesia y crear una variedad de
  informes sobre los datos que guarda el programa. 
  GlobalTech Church 2000 le ofrece esos servicios y
  un sinnúmero de beneficios que harán de la administración
  de su iglesia una tarea amena y sencilla.
    
  ==
  ¿QUE
  LE OFRECE GLOBALTECH CHURCH 2000?
  ==
  

  Registro
  completo de todos los feligreses de su Iglesia.
  

  Guarda
  información detallada de sus miembros.

  Récord
  de consejería por persona.

  Peticiones
  de los feligreses.
  


  Registro
  de las ofrendas o aportaciones dadas por los
  feligreses.
  

  Clasificación
  de ofrendas por tipo de ofrenda (Diezmo, Ofrenda
  Regular, etc.).
  


  Agenda
  de los diferentes funcionarios de la Iglesia.

  Información
  sobre las cuentas de su Iglesia.

  Registro
  de todas las transacciones realizadas en las cuentas
  de la Iglesia.

  Reconciliación
 

Is the iBook2 really good?

2001-08-17 Thread Russell Williams
Is the iBook2 really a good choice as an inexpensive
Debian notebook?
What are the bad parts of it?
Can I just recompile x86 apps? E.g. I would like to
run Ximian Gnome but they only have debs for
Potato/x86.
I have heard very different opinions on the G3 500
ranging from people saying it's as good as a P3 800 to
opinions saying it's no better than a Celeron 300.
I usually use Ximian Gnome and Mozilla and Gnumeric
etc. Is the G3 500 strong enough for those apps?
BTW I sometimes like to play games. Can I play Unreal
Tournament comfortably or is the G3 500 too slow?
Is there any x86 notebook you could recommend instead?

Thanks
Russell

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Is the iBook2 really good?

2001-08-17 Thread Michel Dänzer
Russell Williams wrote:
> 
> Is the iBook2 really a good choice as an inexpensive Debian notebook?

Most definitely.

> What are the bad parts of it?

Some hardware support isn't well integrated yet, you might have to collect a
few patches.

> Can I just recompile x86 apps?

In general, yes. But you don't even have to, it's all done for you by our
hard-working team of porters/developers. ;)

> E.g. I would like to run Ximian Gnome but they only have debs for
> Potato/x86.

Do you absolutely need _Ximian_ GNOME? GNOME 1.4 is in the main Debian
archive, and the Ximian debs tend to be worse integrated into the system.

> I have heard very different opinions on the G3 500
> ranging from people saying it's as good as a P3 800 to
> opinions saying it's no better than a Celeron 300.

It depends on the application.

> I usually use Ximian Gnome and Mozilla and Gnumeric
> etc. Is the G3 500 strong enough for those apps?

Yep. Even the G3 400 in this Pismo is. ;) Enough RAM is probably more
important anyway.

> BTW I sometimes like to play games. Can I play Unreal
> Tournament comfortably or is the G3 500 too slow?

You'd have to port UT to PPC first to tell... I'm afraid it'd be too slow.


-- 
Earthling Michel Dänzer (MrCooper)\   Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast   \XFree86 and DRI project member



Re: Handling several network locations [Was: wireless lan config]

2001-08-17 Thread Edouard G. Parmelan
On Fri, Aug 17, 2001 at 13:13:04 -0400, Colin Walters wrote:

> "Edouard G. Parmelan" <[EMAIL PROTECTED]> writes:
> 
> > up /bin/echo Work > /tmp/connect_route || true
> > down /bin/rm /tmp/connect_route || true
> 
> I'm not sure what you're doing here, but you should use /var/tmp.
> These commands are run as root.

/tmp/connect_route is used by masqmail.  In fact I have not change
default filename.  It should be better to place it under
/var/run/masqmail.route or something like that.
-- 
Edouard G. Parmelan
http://egp.free.fr



Re: yaboot/openfirmware question [again]

2001-08-17 Thread pejvan
Ok this time I really do think that os X install has fucked up my bootstrap
partition :


On 16/08/01 11:01, "Ethan Benson" <[EMAIL PROTECTED]> wrote:
> btw the easiest way to fix that type is apt-get install parted  then
> run:
> 
> parted /dev/hda set 9 boot on
> 
> where 9 is the partition number of your bootstrap partition.

The 'parted' bin, which fortunately was on the boot cd of mandrakePPC, gave
me an error :

$ parted /dev/hda set 7 boot on
Give me something like : "the boot partition doesnot start here" :-(((


> On Thu, Aug 16, 2001 at 09:52:45AM +0200, Pejvan wrote:
>> ok thanks a lot, I did not knew about all this. Can I ask a question
>> that has nothing to do with the bootstrap ? ;) Can you give me some URLs
>> about how to initialize the Mac's hardware in order to boot OSes ? (I
>> mean programmers docs, for example how to write something like yaboot,
>> to boot a non Apple OS)
> 
> you want to learn OpenFirmware, and Forth, which is what OpenFirmware
> is implemented in.  you will find more useful info on OpenFirmware
> from Sun Microsystems then you ever will from apple.  also look for
> RFC (or whatever it is) 1275 thats the OpenFirmware spec.
> 

Thanks, i took a look at that, and the  apple stuff on ADC.
The ADC stuff is totally useless for my stuff, and the Sun's stuff seemed to
general... Do you think that reading the code of yaboot/ybin could help ?

>> OK thanks, it seems I cannot do this with pdisk anyway...
>> and nothing can be done under MacOS ?
> 
> nothing can be done under macos.  mac-fdisk can do it, but the only
> way is by deleting and recreating the partition, if you do this
> carefully and verify what you did before wrting the table this is
> usually safe.  i would only do it with the mac-fdisk in woody though,
> not potatos and certainly not LinuxPPC's.  just use `d' to delete it,
> then `b' to recreate in the same starting block.
> 
> if you are really brave use a hexeditor on /dev/hda1 ;-) just change
> the Apple_HFS to Apple_Bootstrap.
> 

Ok i'm really brave ( ;-) ) and I used and hexeditor on /dev/hda (not hdaX
btw :-)) and changed my Apple_HFS to Apple_Bootstrap, as you asked, but i
still cant boot linux, even with all the OF stuff I'd tried before...

So what's next ? Running the mandrake cd and
reconfuring/installing/rerunning the hole ybin/yaboot stuff ?

>> 'cause I dont have the debian isos whith me, and I cannot download
>> anything... so no apt-get for me :-( A friend told me he can give a
>> his mandrakePPC bootable CDs, is there a way to fix my problem with that
>> disc ?
> 
> mandrake may very well have parted on thier CD, i think that may be
> what they use as a backend to thier partitioner.

You were right, one more time could I say ;)

Many many thanks for your help

Pejvan
-- 
#define QUESTION ((2b) || (!2b))