Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] building API application errors...

Date2007-12-16 23:31
From"Michael Gogins"
SubjectRe: [Cs-dev] building API application errors...
Link with -ldl. Add it to your custom.py.

Regards,
Mike

----- Original Message ----- 
From: "Rory Walsh" 
To: "Developer discussions" 
Sent: Sunday, December 16, 2007 4:56 PM
Subject: Re: [Cs-dev] building API application errors...


>I should have held that last post but since sending it I added a -lsndfile
> and -lpthread to my command line and now I only get the following errors:
>
>
> ubuntu@ubuntu:~/csound5$ gcc csdAPItest.cpp -o apitest -I./csound5/H
> -lcsound -lsndfile -pthread
> /usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName':
> /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of
> `tmpnam' is dangerous, better use `mkstemp'
> /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> /usr/local/lib/libcsound.a(csmodule.o): In function 
> `csoundGetLibrarySymbol':
> /home/ubuntu/csound5/csound5/Top/csmodule.c:899: undefined reference to
> `dlsym'
> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundCloseLibrary':
> /home/ubuntu/csound5/csound5/Top/csmodule.c:894: undefined reference to
> `dlclose'
> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundOpenLibrary':
> /home/ubuntu/csound5/csound5/Top/csmodule.c:888: undefined reference to
> `dlopen'
> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundLoadExternal':
> /home/ubuntu/csound5/csound5/Top/csmodule.c:229: undefined reference to
> `dlerror'
> collect2: ld returned 1 exit status
>
>
>> I'm trying to build a simple Csound app using the latest source from CVS
>> on a new linux installation but I'm getting the following errors, any
>> ideas? Perhaps I need to change my Csound build settings?
>>
>> Rory.
>>
>>
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-12-17 11:36
FromRory Walsh
SubjectRe: [Cs-dev] building API application errors...
I'm still getting the following problem related to csoundTmpFileName:

/usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName':
 > /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of
 > `tmpnam' is dangerous, better use `mkstemp'
 > /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to
 > `__gxx_personality_v0'

What should I link to to avoid this error?

Rory.



Michael Gogins wrote:
> Link with -ldl. Add it to your custom.py.
> 
> Regards,
> Mike
> 
> ----- Original Message ----- 
> From: "Rory Walsh" 
> To: "Developer discussions" 
> Sent: Sunday, December 16, 2007 4:56 PM
> Subject: Re: [Cs-dev] building API application errors...
> 
> 
>> I should have held that last post but since sending it I added a -lsndfile
>> and -lpthread to my command line and now I only get the following errors:
>>
>>
>> ubuntu@ubuntu:~/csound5$ gcc csdAPItest.cpp -o apitest -I./csound5/H
>> -lcsound -lsndfile -pthread
>> /usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName':
>> /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of
>> `tmpnam' is dangerous, better use `mkstemp'
>> /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to
>> `__gxx_personality_v0'
>> /usr/local/lib/libcsound.a(csmodule.o): In function 
>> `csoundGetLibrarySymbol':
>> /home/ubuntu/csound5/csound5/Top/csmodule.c:899: undefined reference to
>> `dlsym'
>> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundCloseLibrary':
>> /home/ubuntu/csound5/csound5/Top/csmodule.c:894: undefined reference to
>> `dlclose'
>> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundOpenLibrary':
>> /home/ubuntu/csound5/csound5/Top/csmodule.c:888: undefined reference to
>> `dlopen'
>> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundLoadExternal':
>> /home/ubuntu/csound5/csound5/Top/csmodule.c:229: undefined reference to
>> `dlerror'
>> collect2: ld returned 1 exit status
>>
>>
>>> I'm trying to build a simple Csound app using the latest source from CVS
>>> on a new linux installation but I'm getting the following errors, any
>>> ideas? Perhaps I need to change my Csound build settings?
>>>
>>> Rory.
>>>
>>>
>>
>> -------------------------------------------------------------------------
>> SF.Net email is sponsored by:
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services
>> for just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> 
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-12-17 12:00
FromVictor Lazzarini
SubjectRe: [Cs-dev] building API application errors...
There are two things here: a warning on csoundTmpFileName, which
you should just ignore.

The other thing is not related to it and is a link error with g++ libs, I
reckon. Is this C++ and are you using gcc instead of g++? If so,
link with g++ instead of gcc.

Victor

At 11:36 17/12/2007, you wrote:
>I'm still getting the following problem related to csoundTmpFileName:
>
>/usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName':
>  > /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of
>  > `tmpnam' is dangerous, better use `mkstemp'
>  > /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to
>  > `__gxx_personality_v0'
>
>What should I link to to avoid this error?
>
>Rory.
>
>
>
>Michael Gogins wrote:
> > Link with -ldl. Add it to your custom.py.
> >
> > Regards,
> > Mike
> >
> > ----- Original Message -----
> > From: "Rory Walsh" 
> > To: "Developer discussions" 
> > Sent: Sunday, December 16, 2007 4:56 PM
> > Subject: Re: [Cs-dev] building API application errors...
> >
> >
> >> I should have held that last post but since sending it I added a -lsndfile
> >> and -lpthread to my command line and now I only get the following errors:
> >>
> >>
> >> ubuntu@ubuntu:~/csound5$ gcc csdAPItest.cpp -o apitest -I./csound5/H
> >> -lcsound -lsndfile -pthread
> >> /usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName':
> >> /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of
> >> `tmpnam' is dangerous, better use `mkstemp'
> >> /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to
> >> `__gxx_personality_v0'
> >> /usr/local/lib/libcsound.a(csmodule.o): In function
> >> `csoundGetLibrarySymbol':
> >> /home/ubuntu/csound5/csound5/Top/csmodule.c:899: undefined reference to
> >> `dlsym'
> >> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundCloseLibrary':
> >> /home/ubuntu/csound5/csound5/Top/csmodule.c:894: undefined reference to
> >> `dlclose'
> >> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundOpenLibrary':
> >> /home/ubuntu/csound5/csound5/Top/csmodule.c:888: undefined reference to
> >> `dlopen'
> >> /usr/local/lib/libcsound.a(csmodule.o): In function `csoundLoadExternal':
> >> /home/ubuntu/csound5/csound5/Top/csmodule.c:229: undefined reference to
> >> `dlerror'
> >> collect2: ld returned 1 exit status
> >>
> >>
> >>> I'm trying to build a simple Csound app using the latest source from CVS
> >>> on a new linux installation but I'm getting the following errors, any
> >>> ideas? Perhaps I need to change my Csound build settings?
> >>>
> >>> Rory.
> >>>
> >>>
> >>
> >> -------------------------------------------------------------------------
> >> SF.Net email is sponsored by:
> >> Check out the new SourceForge.net Marketplace.
> >> It's the best place to buy or sell services
> >> for just about anything Open Source.
> >> 
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services
> > for just about anything Open Source.
> > 
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
>-------------------------------------------------------------------------
>SF.Net email is sponsored by:
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services
>for just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-12-17 12:17
FromRory Walsh
SubjectRe: [Cs-dev] building API application errors...
D'oh! You're right, I was using gcc.....

Victor Lazzarini wrote:
> There are two things here: a warning on csoundTmpFileName, which
> you should just ignore.
> 
> The other thing is not related to it and is a link error with g++ libs, I
> reckon. Is this C++ and are you using gcc instead of g++? If so,
> link with g++ instead of gcc.
> 
> Victor
> 
> At 11:3

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net