RE: Forcing static-linking on a port?

2005-05-24 Thread Darren Pilgrim
From: Dan Nelson [mailto:[EMAIL PROTECTED] 
 
 In the last episode (May 23), Darren Pilgrim said:
  I need to make use of a port during start up, but it has library
  dependencies that aren't available, before the complete library path is
  established.  I've tried the following:
  
  NO_SHARED=true (added to /etc/make.conf)
  make -DNO_SHARED
  make LDFLAGS+=-static
  
  Every time, running file on the compiled program tells me that the
binary is
  dynamically-linked.  I couldn't find anything else in any man pages, Mk
  files, mailing lists, Google, etc.  Sorry for the semi-inappropriate
list
  choice, but this one would get swallowed up on -questions.
 
 NO_SHARED only works on programs that use the bsd.prog.mk makefile
 template; I'd guess under a dozen ports do this.
 
 Some pieces of software have dynamic-link options hardcoded in their
 Makefiles, probably as a workaround for bugs in other OSes.  Those
 options override -static.  I can't think of a valid reason for them to
 be used in FreeBSD.  Search for (and remove) any occurances of
 -Wl,-Bdynamic and -Wl,-Bstatic , and you should be set.

No luck on either string.  I ended up getting what I wanted by going through
the source Makefile and adding -static to the appropriate line in the
target for the program I needed static-linked.  Now devd can bring up my
wireless NIC at boot.  Works great!


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: watching a file for ownership change

2005-05-24 Thread Singh, Vijay
If you're hacking the kernel, you could embed the pid in the VNODE
filter data value, or perhaps copy it to the user udata (breaking
semantics).

vijay

-Original Message-
From: Marco Molteni [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:23 PM
To: [EMAIL PROTECTED]
Subject: Re: watching a file for ownership change

On Sun, 22 May 2005 04:05:50 +0100
Bruce M Simpson [EMAIL PROTECTED] wrote:

 On Sat, May 21, 2005 at 10:38:30PM -0400, Charles Sprickman wrote:
  I'd like to find a way to watch one of the user's maildirsize files 
  that  seems to flip ownerships at least once a day and try to 
  determine what  process is changing the ownership.
  How can I do that without dropping a bunch of daemons on a 
  production  machine into heavy-debug mode?  OS is 4.8 with all 
  current patches.
 
 You could try watching kevent() on the file for EVFILT_VNODE with 
 NOTE_ATTRIB. You'd need to write a small C program to do this.
 
 Whilst this won't tell you who did what, it could give you 
 sufficiently good timestamps from it happening to begin tracking the 
 culprit down further, perhaps using lsof.

When I saw the first post I actually wrote the kevent program you are
sugesting as an exercise, then I realized that I couldn't obtain the PID
of the process that modified the file.

Would it be feasible/reasonable to add this feature to kqueue ?

marco
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to
[EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error installing FreeBSd 5.3 AMD 64 bit-Highpoint 1820A

2005-05-24 Thread Bjoern Koenig

Hello,

I think it's a question for the highpoint support. It's their product 
and their driver.


Here are some instant hints:

 - read the PDF carefully and follow the instructions strictly
 - use the BIOS in the tarball; nothing else!!

Regards Björn
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error installing FreeBSd 5.3 AMD 64 bit-Highpoint 1820A

2005-05-24 Thread Bjoern Koenig

Hello,

I think it's a question for the highpoint support. It's their product 
and their driver.


Here are some instant hints:

 - read the PDF carefully and follow the instructions strictly
 - use the BIOS in the tarball; nothing else!!

Regards Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Screen Resolution

2005-05-24 Thread Hervé Kergourlay

Just one simple question on the screen resolution on FreeBSD 5.3

I change the xinitrc to launch gnome-wm and gnome-panel

but I can't change the resolution in the Desktop Preferences / Screen 
Resolution tool

only 640*480 is listed which is very small

I can't change to 800*600 ?

any idea ?

hervé
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Screen Resolution

2005-05-24 Thread Erich Dollansky

Hi,

what X do you run?

Did you configure X for a higher resolution?

Erich

Hervé Kergourlay wrote:

Just one simple question on the screen resolution on FreeBSD 5.3

I change the xinitrc to launch gnome-wm and gnome-panel

but I can't change the resolution in the Desktop Preferences / Screen 
Resolution tool

only 640*480 is listed which is very small

I can't change to 800*600 ?

any idea ?

hervé




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Screen Resolution

2005-05-24 Thread Hervé Kergourlay

Erich Dollansky a écrit :


Hi,

what X do you run?

I install FreeBSD 5.3 with the standard option, the X process in 
/usr/X11R6/bin/X is running


I run startx to start the X server


Did you configure X for a higher resolution?

I woul like but the only way seems to be the Desktop Preferences / 
Screen Resolution tool which show me a low 640*480 resolution

Is there any other things to do to get more resolution

hervé


Erich

Hervé Kergourlay wrote:


Just one simple question on the screen resolution on FreeBSD 5.3

I change the xinitrc to launch gnome-wm and gnome-panel

but I can't change the resolution in the Desktop Preferences / Screen 
Resolution tool

only 640*480 is listed which is very small

I can't change to 800*600 ?

any idea ?

hervé




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Screen Resolution

2005-05-24 Thread Erich Dollansky

Hi,

Hervé Kergourlay wrote:

Erich Dollansky a écrit :

I install FreeBSD 5.3 with the standard option, the X process in 
/usr/X11R6/bin/X is running



So, it should be X.Org.


I run startx to start the X server


edit /etc/X11/xorg.conf

There should be a section 'Screen'. In there are subsections 'Display'. 
Just add there something like:


SubSection Display
Depth 24
Modes   800x600
EndSubSection

Change 24 to the number of bits supported by your graphics adaptor.

Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Screen Resolution

2005-05-24 Thread Hervé Kergourlay

Erich Dollansky a écrit :


Hi,

Hervé Kergourlay wrote:


Erich Dollansky a écrit :

I install FreeBSD 5.3 with the standard option, the X process in 
/usr/X11R6/bin/X is running



So, it should be X.Org.


I run startx to start the X server


edit /etc/X11/xorg.conf


I don't have any xorg.conf in /etc/X11 ?
the directory /etc/X11 is empty

pkg_info give me : xorg-6.7.0_1

hervé

There should be a section 'Screen'. In there are subsections 
'Display'. Just add there something like:


SubSection Display
Depth 24
Modes   800x600
EndSubSection

Change 24 to the number of bits supported by your graphics adaptor.

Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Screen Resolution

2005-05-24 Thread Erich Dollansky

Hi,

Hervé Kergourlay wrote:

Erich Dollansky a écrit :


edit /etc/X11/xorg.conf


I don't have any xorg.conf in /etc/X11 ?
the directory /etc/X11 is empty

pkg_info give me : xorg-6.7.0_1


It looks like that you did not configure your X server.

Check the handbook how to do it. It is to lengthly to write all the 
possible steps in an e-mail.


Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Screen Resolution

2005-05-24 Thread Hervé Kergourlay


thanks for the doc

It seems that in FreeBSD 5.3, Xorg is installed as default
but there is no xorg.conf  file in /etc/X11

I deinstall and reinstall Xorg manually but there is no more xorg.conf  
file in /etc/X11

so I can't modify the screen resolution

else when I run xorg -configure, I've a black screen

who to check the Xorg config ?

it's better to use XFree ?

hervé

Aniruddha Bohra a écrit :


Hello,

I install FreeBSD 5.3 with the standard option, the X process in 
/usr/X11R6/bin/X is running



So, it should be X.Org.


I run startx to start the X server


edit /etc/X11/xorg.conf


I don't have any xorg.conf in /etc/X11 ?
the directory /etc/X11 is empty

pkg_info give me : xorg-6.7.0_1




Please read the following article in the Handbook :
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html

It is an excellent resource to understand and configure X.

Thanks
Aniruddha





___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Screen Resolution

2005-05-24 Thread Erich Dollansky

Hi,

Hervé Kergourlay wrote:


thanks for the doc

It seems that in FreeBSD 5.3, Xorg is installed as default
but there is no xorg.conf  file in /etc/X11


This is normal.

I deinstall and reinstall Xorg manually but there is no more xorg.conf  
file in /etc/X11

so I can't modify the screen resolution


You should not deinstall and reinstall as this will not change anything.


it's better to use XFree ?


You will face the same problem there.

Just run the configuraton file as stated:


Aniruddha Bohra a écrit :


Please read the following article in the Handbook :
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html



Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Screen Resolution

2005-05-24 Thread Hervé Kergourlay

Erich Dollansky a écrit :


Hi,

Hervé Kergourlay wrote:



thanks for the doc

It seems that in FreeBSD 5.3, Xorg is installed as default
but there is no xorg.conf  file in /etc/X11


This is normal.

I deinstall and reinstall Xorg manually but there is no more 
xorg.conf  file in /etc/X11

so I can't modify the screen resolution


You should not deinstall and reinstall as this will not change anything.


it's better to use XFree ?


You will face the same problem there.

Just run the configuraton file as stated:


I read the following line in the chapter 5.4.2 Configuring X11

Xorg -configure

I run it and I get a black screen

Do I have to wait a long time N
Is there any way to avoid that ?

hervé



Aniruddha Bohra a écrit :


Please read the following article in the Handbook :
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html



Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Screen Resolution

2005-05-24 Thread Max Laier
On Tuesday 24 May 2005 15:16, Hervé Kergourlay wrote:
 Just one simple question on the screen resolution on FreeBSD 5.3

 I change the xinitrc to launch gnome-wm and gnome-panel

 but I can't change the resolution in the Desktop Preferences / Screen
 Resolution tool
 only 640*480 is listed which is very small

 I can't change to 800*600 ?

 any idea ?

 hervé

freebsd-hackers@ is not the right place for this kind of question, please take 
it to freebsd-questions@ or maybe freebsd-x11@

-- 
/\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News


pgpu8BdPEU8WG.pgp
Description: PGP signature


Re: Screen Resolution

2005-05-24 Thread Maslan
i think freebsd 5.3 is using Xfree86 not Xorg
while 5.4 uses XOrg, but i cann't remember


On 5/24/05, Max Laier [EMAIL PROTECTED] wrote:
 On Tuesday 24 May 2005 15:16, Hervé Kergourlay wrote:
  Just one simple question on the screen resolution on FreeBSD 5.3
 
  I change the xinitrc to launch gnome-wm and gnome-panel
 
  but I can't change the resolution in the Desktop Preferences / Screen
  Resolution tool
  only 640*480 is listed which is very small
 
  I can't change to 800*600 ?
 
  any idea ?
 
  hervé
 
 freebsd-hackers@ is not the right place for this kind of question, please take
 it to freebsd-questions@ or maybe freebsd-x11@
 
 --
 /\  Best regards,  | [EMAIL PROTECTED]
 \ /  Max Laier  | ICQ #67774661
  X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
 / \  ASCII Ribbon Campaign  | Against HTML Mail and News
 
 
 


-- 
I'm Searching For Perfection,
So Even If U Need Portability U've To Use Assembly ;-)
http://www.maslanlab.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]