Re: Apparent libtool pkgsrc C++ linking issue

2009-08-23 Thread Neil Booth
Hasso Tepper wrote:- > Neil Booth wrote: > > But why do I need this link? What is at fault here? It seems to be > > coming from libtool, but I'm curious why apparently no-one else sees > > this, and I have no idea how to fix libtool. > > Rebuild the devel/libtool-base package. Hasso - thanks,

Re: Apparent libtool pkgsrc C++ linking issue

2009-08-23 Thread Hasso Tepper
Neil Booth wrote: > But why do I need this link? What is at fault here? It seems to be > coming from libtool, but I'm curious why apparently no-one else sees > this, and I have no idea how to fix libtool. Rebuild the devel/libtool-base package. -- Hasso Tepper

Apparent libtool pkgsrc C++ linking issue

2009-08-23 Thread Neil Booth
Several (but not all) pkgsrc C++ packages aren't linking on my machine. I've rebuilt and installed the world, as well as libtool. For example, here's graphics/tiff: /bin/sh ../libtool --tag=CXX --mode=link c++ -O2 -I/usr/include -I/usr/pkg/include -L/usr/lib -Wl,-R/usr/lib

Re: about C getline function

2008-11-12 Thread Joerg Sonnenberger
On Wed, Nov 12, 2008 at 12:54:28PM +0100, dark0s Optik wrote: > Where is defined getline C function in DragonFlyBSD ? There is no getline function in C. There is fgets and the more useful, but less portable fgetln. Joerg

about C getline function

2008-11-12 Thread dark0s Optik
Where is defined getline C function in DragonFlyBSD ?

Re: Help with confusing C code in loader?

2007-07-29 Thread Matt Emmerton
"walt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to debug a problem in /boot/loader but I'm stumped by > this line in sys/boot/common/module.c: > > error = (file_formats[i]->l_load)(filename, loadaddr, &fp); > > This seems to refer to a line in common/bootstrap.h: >

Re: Help with confusing C code in loader?

2007-07-29 Thread Matthew Dillon
:I'm trying to debug a problem in /boot/loader but I'm stumped by :this line in sys/boot/common/module.c: : :error = (file_formats[i]->l_load)(filename, loadaddr, &fp); : :This seems to refer to a line in common/bootstrap.h: : :int (* l_load)(char *filename, u_int64_t dest, struct preloaded_file *

Help with confusing C code in loader?

2007-07-29 Thread walt
I'm trying to debug a problem in /boot/loader but I'm stumped by this line in sys/boot/common/module.c: error = (file_formats[i]->l_load)(filename, loadaddr, &fp); This seems to refer to a line in common/bootstrap.h: int (* l_load)(char *filename, u_int64_t dest, struct preloaded_file **result);

Re: [OT] The definition of C

2007-06-24 Thread Dennis Melentyev
LOL... Well The whole team was crawling under the tables for half an hour... :) 2007/6/23, walt <[EMAIL PROTECTED]>: The C Programming Language -- A language which combines the flexibility and power of assembly language with the readability of assembly language. -- Dennis Melentyev

[OT] The definition of C

2007-06-23 Thread walt
The C Programming Language -- A language which combines the flexibility and power of assembly language with the readability of assembly language.

Re: C--

2007-06-02 Thread Michel Talon
Sascha Wildner wrote: > Justin C. Sherrill wrote: >> On Fri, June 1, 2007 3:52 pm, Sascha Wildner wrote: >> >>> So... I'm kinda unsure here if the perspective of being able to remove >>> C++ from the build justifies reverting to the old mdoc mac

Re: C--

2007-06-01 Thread Sascha Wildner
Justin C. Sherrill wrote: On Fri, June 1, 2007 3:52 pm, Sascha Wildner wrote: So... I'm kinda unsure here if the perspective of being able to remove C++ from the build justifies reverting to the old mdoc macros. What do the rest of you think? Would there be any quantifiable benefit gr

Re: C--

2007-06-01 Thread Justin C. Sherrill
On Fri, June 1, 2007 3:52 pm, Sascha Wildner wrote: > So... I'm kinda unsure here if the perspective of being able to remove > C++ from the build justifies reverting to the old mdoc macros. What do > the rest of you think? Would there be any quantifiable benefit greater than the in

Re: C--

2007-06-01 Thread Sascha Wildner
Chris Turner wrote: Simon corecode Schubert wrote: However, there won't be any C++ in the list of things to do. The only thing which uses C++ in DragonFly is groff, and I would be happier without this. was just thinking about this issue - any thoughts about:

Re: C--

2007-05-19 Thread Chris Turner
Sascha Wildner wrote: > > Hmm, looks interesting. I'll play with it... > > Sascha > p.s: just discovered the 'utlities' portions are in pkgsrc-wip, but the 'documentation tools' don't appear to be.

Re: C--

2007-05-19 Thread Sascha Wildner
Chris Turner wrote: Simon corecode Schubert wrote: However, there won't be any C++ in the list of things to do. The only thing which uses C++ in DragonFly is groff, and I would be happier without this. was just thinking about this issue - any thoughts about:

C-- (was: Re: Development)

2007-05-19 Thread Chris Turner
Simon corecode Schubert wrote: > > However, there won't be any C++ in the list of things to do. The only thing > which uses C++ in DragonFly is groff, and I would be happier without this. > was just thinking about this issue - any thoughts about: http://heirloo

Re: Help interpreting a linker error? (c++)

2007-01-17 Thread walt
On Thu, 18 Jan 2007, Sepherosa Ziehau wrote: > On 1/18/07, walt <[EMAIL PROTECTED]> wrote: > > My problem is with pkgsrc/sysutils/fam: > > > > Listener.o(.text+0x80): In function `Listener::Listener(bool, bool, unsigned > > long, unsigned long)': > > : undefined reference to `socket(int, int, int

Re: Help interpreting a linker error? (c++)

2007-01-17 Thread Sepherosa Ziehau
On 1/18/07, walt <[EMAIL PROTECTED]> wrote: I just updated my -CURRENT machine, so lots of things have changed, and I normally have trouble debugging linker errors anyway :o( My problem is with pkgsrc/sysutils/fam: Listener.o(.text+0x80): In function `Listener::Listener(bool, bool, unsigned lon

Help interpreting a linker error? (c++)

2007-01-17 Thread walt
I just updated my -CURRENT machine, so lots of things have changed, and I normally have trouble debugging linker errors anyway :o( My problem is with pkgsrc/sysutils/fam: Listener.o(.text+0x80): In function `Listener::Listener(bool, bool, unsigned long, unsigned long)': : undefined reference to `

Re: A c++ puzzle for you gurus

2006-12-19 Thread Clemens Hintze
Am 19.12.2006 um 11:41 schrieb Miguel Sousa Filipe: Hi, Hello, On 12/18/06, walt <[EMAIL PROTECTED]> wrote: (...) a header file 'include' a source file before, so I didn't even look at (...) Is this practice specific to c++ ? (If you know of any examples

Re: A c++ puzzle for you gurus

2006-12-19 Thread Miguel Sousa Filipe
> ...mtasker.hh which includes mtasker.cc. ... The source of my confusion becomes clear! I don't recall ever seeing a header file 'include' a source file before, so I didn't even look at the code. Is this practice specific to c++ ? (If you know of any examples of c code doi

Re: A c++ puzzle for you gurus

2006-12-18 Thread walt
urce of my confusion becomes clear! I don't recall ever seeing a header file 'include' a source file before, so I didn't even look at the code. Is this practice specific to c++ ? (If you know of any examples of c code doing this, please point them out. Thanks!)

Re: A c++ puzzle for you gurus

2006-12-14 Thread walt
Simon 'corecode' Schubert wrote: > Joerg Sonnenberger wrote: >> On Thu, Dec 14, 2006 at 01:34:04AM +0100, Simon 'corecode' Schubert >> wrote: >>> the problem here basically is an incomprehensible error message which >>> translates to: >>> >>> "no declaration for swapcontext()!!1" >> Wrong. > than

Re: A c++ puzzle for you gurus

2006-12-13 Thread Simon 'corecode' Schubert
Joerg Sonnenberger wrote: On Thu, Dec 14, 2006 at 01:34:04AM +0100, Simon 'corecode' Schubert wrote: the problem here basically is an incomprehensible error message which translates to: "no declaration for swapcontext()!!1" Wrong. thanks for your explanation, but i think you're missing som

Re: A c++ puzzle for you gurus

2006-12-13 Thread Joerg Sonnenberger
On Thu, Dec 14, 2006 at 01:34:04AM +0100, Simon 'corecode' Schubert wrote: > the problem here basically is an incomprehensible error message which > translates to: > > "no declaration for swapcontext()!!1" Wrong. Joerg

Re: A c++ puzzle for you gurus

2006-12-13 Thread Simon 'corecode' Schubert
walt wrote: c++ -O2 -I/usr/pkg/include -I/usr/include -Wall -O3 -I/usr/pkg/include -I/usr/include -c -o syncres.o syncres.cc In file included from mtasker.hh:107, from syncres.hh:20, from syncres.cc:20: mtasker.cc: In member function `void MTasker::yield

Re: A c++ puzzle for you gurus

2006-12-13 Thread Peter Avalos
On Wed, Dec 13, 2006 at 07:48:38AM -0800, walt wrote: > In response to a post by Petr, I decided to take a stab at fixing > pkgsrc/wip/powerdns-recursor. > > I was able to fix a few obvious #ifdefs, but I'm still getting this > c++ error (which doesn't happen in NetBSD)

Re: A c++ puzzle for you gurus

2006-12-13 Thread Joerg Sonnenberger
On Wed, Dec 13, 2006 at 07:48:38AM -0800, walt wrote: > c++ -O2 -I/usr/pkg/include -I/usr/include -Wall -O3 -I/usr/pkg/include > -I/usr/include -c -o syncres.o syncres.cc > In file included from mtasker.hh:107, > from syncres.hh:20, > fro

A c++ puzzle for you gurus

2006-12-13 Thread walt
In response to a post by Petr, I decided to take a stab at fixing pkgsrc/wip/powerdns-recursor. I was able to fix a few obvious #ifdefs, but I'm still getting this c++ error (which doesn't happen in NetBSD): c++ -O2 -I/usr/pkg/include -I/usr/include -Wall -O3 -I/usr/pkg/include -I/u

Re: IDE C in DFly

2006-11-26 Thread Thomas Schlesinger
Am Sonntag, 26. November 2006 13:31 schrieb Saverio Iacovelli: > Hi all, I would to know a graphical framework wich I > can find in Pkgsrc to develop in C/C++. > Qt from Trolltech, for example, is in pkgsrc. GTK(2) is there, too. Thomas

Re: IDE C in DFly

2006-11-26 Thread Gergo Szakal
Saverio Iacovelli wrote: Hi all, I would to know a graphical framework wich I can find in Pkgsrc to develop in C/C++. Anjuta? It is GNOME-based, though.

IDE C in DFly

2006-11-26 Thread Saverio Iacovelli
Hi all, I would to know a graphical framework wich I can find in Pkgsrc to develop in C/C++. Regards, Saverio __ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i

Re: [OT] C pointers: BSD versus Linux?

2006-06-01 Thread Matthew Dillon
:What I see in linux is that the two values are miles apart, :but in *BSD they differ by only a few bytes. I *assume* this :means that in *BSD, t is pointing to a valid memory location :very close to d, whereas in linux t is pointing to some :random number. Does this seem a reasonable idea? : :T

Re: [OT] C pointers: BSD versus Linux?

2006-06-01 Thread Erik Wikström
On 2006-06-01 17:21, walt wrote: Simon 'corecode' Schubert wrote: On 31.05.2006, at 20:37, [EMAIL PROTECTED] wrote: Style 1: time_t t*; time(t); [...] Also, style 1 is technically "incorrect" since you never allocated the memory that t is pointing to before passing it into time(). maybe t

Re: [OT] C pointers: BSD versus Linux?

2006-06-01 Thread walt
Simon 'corecode' Schubert wrote: > On 31.05.2006, at 20:37, [EMAIL PROTECTED] wrote: >>> Style 1: >>> time_t t*; >>> time(t); [...] >> Also, style 1 is technically "incorrect" since you never allocated the >> memory that t is pointing to before passing it into time(). > maybe the compiler on BSD

Re: [OT] C pointers: BSD versus Linux?

2006-05-31 Thread Jason Watson
On May 31, 2006, at 5:01 PM, Simon 'corecode' Schubert wrote: I can not agree with this. BSD malloc() (or better: free()) is much more conservative, and lately our default even changed to abort on double free()s. A lot of buggy software has double free() s and I think glibc doesn't even c

Re: [OT] C pointers: BSD versus Linux?

2006-05-31 Thread Simon 'corecode' Schubert
On 31.05.2006, at 20:37, [EMAIL PROTECTED] wrote: Style 1: time_t t*; time(t); My experience is that *BSD's malloc and pointer stuff is designed to be as safe as possible by default, and will try to fix and correct any common mistakes you will make. The short answer is that BSD will figure out

Re: [OT] C pointers: BSD versus Linux?

2006-05-31 Thread jwatson
> Hi compiler/OS gurus, > > Please consider this trivial fragment of c code which I've > written in two different styles: > > Style 1: > time_t t*; > time(t); > > Style 2: > time_t t; > time(&t); > > My puzzle is this: on *BSD these two different

Re: [OT] C pointers: BSD versus Linux?

2006-05-31 Thread Matthew Dillon
:Hi compiler/OS gurus, : :Please consider this trivial fragment of c code which I've :written in two different styles: : :Style 1: :time_t t*; :time(t); : :Style 2: :time_t t; :time(&t); : :My puzzle is this: on *BSD these two different styles work :identically -- but on my linux boxe

Re: [OT] C pointers: BSD versus Linux?

2006-05-31 Thread Brian Reichert
On Wed, May 31, 2006 at 12:44:07PM -0700, walt wrote: > Hi compiler/OS gurus, > > Please consider this trivial fragment of c code which I've > written in two different styles: > > Style 1: > time_t t*; > time(t); > > Style 2: > time_t t; > time(&t

[OT] C pointers: BSD versus Linux?

2006-05-31 Thread walt
Hi compiler/OS gurus, Please consider this trivial fragment of c code which I've written in two different styles: Style 1: time_t t*; time(t); Style 2: time_t t; time(&t); My puzzle is this: on *BSD these two different styles work identically -- but on my linux boxes Style 1 produ

Re: C++ compilations times

2006-01-22 Thread Vácalv Haisman
Antonio Bravo wrote: > Den Thu, 19 Jan 2006 17:08:58 +0100, skrev Erik Wikström: > > >> Are you using the same version of gcc? I seem to recall that there were >> some performance issues about C++, but that might have been gcc 4. >> >> Erik Wikström > &g

Re: C++ compilations times

2006-01-19 Thread nega
3 hours for > > NetBSD or OpenBSD... > > Similar thing do happen with the other c++ beasts like KDE, it takes > > roughly more x2 time to build.Insane. I know zero about c++, but if > > someone can point to some docs about that issue I will appreciate > > much.Thanks

Re: C++ compilations times

2006-01-19 Thread Antonio Bravo
Den Thu, 19 Jan 2006 17:08:58 +0100, skrev Erik Wikström: > > Are you using the same version of gcc? I seem to recall that there were > some performance issues about C++, but that might have been gcc 4. > > Erik Wikström NetBSD: gcc-3.3.3, OpenBS: gcc-3.3.5 and well DragonF

Re: C++ compilations times

2006-01-19 Thread Erik Wikström
On 2006-01-19 16:31, Antonio Bravo wrote: Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c

Re: C++ compilations times

2006-01-19 Thread Antonio Bravo
Den Thu, 19 Jan 2006 10:23:48 -0500, skrev Justin C. Sherrill: > On Thu, January 19, 2006 10:31 am, Antonio Bravo wrote: >> Curious about getting documentation or tips if possible. >> >> I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 >> hours on

Re: C++ compilations times

2006-01-19 Thread Antonio Bravo
Den Thu, 19 Jan 2006 10:23:48 -0500, skrev Justin C. Sherrill: > On Thu, January 19, 2006 10:31 am, Antonio Bravo wrote: >> Curious about getting documentation or tips if possible. >> >> I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 >> hours on

Re: C++ compilations times

2006-01-19 Thread Justin C. Sherrill
; Similar thing do happen with the other c++ beasts like KDE, it takes > roughly more x2 time to build.Insane. > I know zero about c++, but if someone can point to some docs about that > issue I will appreciate much.Thanks! Are you using the same version of pkgsrc-wip on each mach

C++ compilations times

2006-01-19 Thread Antonio Bravo
Curious about getting documentation or tips if possible. I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 hours on a box where the same JDK is built in about 3 hours for NetBSD or OpenBSD... Similar thing do happen with the other c++ beasts like KDE, it takes roughly more x2

Re: learning c programming

2006-01-03 Thread Justin C. Sherrill
On Tue, January 3, 2006 11:02 am, Danial Thom said: > IMO there is only one way to learn to program; > get yourself a project. You'll need a reference > book or web site, but until you try to tackle > something fairly difficult you'll never be any > good. During your project you'll encounter thing

Re: learning c programming

2006-01-03 Thread Dennis Melentyev
The only addition: along with project you'll also need a good reviewer.Just a person to blame you on all wrong formatting, redundancies, etc.Another good thing is well done sources. The good place to lurk onideas and realisations. So, rephrasing the post below, the best way is to join serious pro

Re: learning c programming

2006-01-03 Thread Danial Thom
--- Terry Tree <[EMAIL PROTECTED]> wrote: > Anyone used these tapes before > http://www.mixsoftware.com/product/cvidfn.htm ? > I'm wondering if they are worth $299. What do > you guys think ? > > -- > Terry > > IMO there is only one way to learn to program; get yourself a project. You'll ne

Re: learning c programming

2006-01-02 Thread Sascha Wildner
. For a list of good books check out http://www.accu.org/bookreviews/public/ or ask in http://www.accu.org/bookreviews/public/ Erik Wikström There's an online C book: http://publications.gbdirect.co.uk/c_book While it's not up to date with respect to C99 it's definitely not too ba

Re: learning c programming

2006-01-02 Thread Erik Wikström
http://www.accu.org/bookreviews/public/ Should have been alt.comp.lang.learn.c-c++ Erik Wikström -- "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone" -- Bjarne Stroustrup

Re: learning c programming

2006-01-02 Thread Erik Wikström
On 2006-01-02 15:28, Terry Tree wrote: Anyone used these tapes before http://www.mixsoftware.com/product/cvidfn.htm ? I'm wondering if they are worth $299. What do you guys think ? My highly subjective oppinion: For the same price you'll get a couple of high quality books and while it might b

learning c programming

2006-01-02 Thread Terry Tree
Anyone used these tapes before http://www.mixsoftware.com/product/cvidfn.htm ? I'm wondering if they are worth $299. What do you guys think ? -- Terry