Re: empty function macros

2011-01-31 Thread Roman Divacky
no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an

Re: empty function macros

2011-01-31 Thread Julian Elischer
On 1/30/11 11:54 PM, Roman Divacky wrote: no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) you missed an

Re: empty function macros

2011-01-31 Thread Alexander Best
On Mon Jan 31 11, Julian Elischer wrote: On 1/30/11 11:54 PM, Roman Divacky wrote: no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something

Re: empty function macros

2011-01-31 Thread Alexander Best
On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following code int main(int argc, char **argv) { if (12) ; } with clang -Werror code.c -o code works for you? cheers. alex On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best

Re: NVIDIA (port) driver fails to create /dev/nvidactl; 8.2Prerelease

2011-01-31 Thread Michael Remski
Duane, just a thought. I built the driver without the AGP support, did you build that in? Some of the notes/post install message talks about loading agp.ko first and potential issues with a SHM setting. On Sun, 30 Jan 2011, Duane H. Hesser wrote: On Sun, 30 Jan 2011 05:07:09 -0500 (EST)

Re: NVIDIA (port) driver fails to create /dev/nvidactl; 8.2Prerelease

2011-01-31 Thread John Baldwin
On Friday, January 28, 2011 3:43:12 pm Duane H. Hesser wrote: I am attempting to replace the 'nv' X11 driver with the official nvidia driver from ithe x11/nvidia-driver port, in order to handle the AVCHD video files from my Canon HF S20. I have been trying for several days now, having read

usr.bin/tar/ ignores error codes from read() just silently pads nulls

2011-01-31 Thread Julian H. Stacey
Hi hack...@freebsd.org netbsd-us...@netbsd.org usr.bin/tar ignores device error codes from read() silently pads nulls. See FreeBSD 6.2 6.4 7.3, 8.0, 8.1, current src/usr.bin/tar/write.c NetBSD 5.1 current src/external/bsd/libarchive/dist/tar/write.c ^write_file_data( last

Re: Exporting kernel symbols

2011-01-31 Thread Lawrence Stewart
On 01/24/11 15:25, Neel Natu wrote: Hi Ali, On Sat, Jan 22, 2011 at 7:20 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote: Hi Folks, I tried to build a geom kernel module that uses the alq(9) facility to log some data. The module builds fine but it seems that the kernel isn't exporting

Re: Exporting kernel symbols

2011-01-31 Thread Ryan Stone
Make sure that your module uses MODULE_DEPEND to note its dependency on altq. If altq is loaded as a module the kernel linker will only be able to resolve symbols from altq if your module uses MODULE_DEPEND properly. ___ freebsd-hackers@freebsd.org

Re: Exporting kernel symbols

2011-01-31 Thread Lawrence Stewart
On 02/01/11 15:23, Ryan Stone wrote: Make sure that your module uses MODULE_DEPEND to note its dependency on altq. If altq is loaded as a module the kernel linker will only be able to resolve symbols from altq if your module uses MODULE_DEPEND properly. What you say is correct, but note for