[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: -laudiofile (Solaris configuration problem) [Partly resolved]
From:       James Tappin <sjt () star ! sr ! bham ! ac ! uk>
Date:       2000-08-31 12:54:38
[Download RAW message or body]

On Thu, 31 Aug 2000, James Tappin wrote:
> This has been happening with the cvsup downloads of today & yesterday,
> I don't recall having the problem with 1.93.
> 
> After building & installing kdesupport, I try to configure kdelibs, but
> it is complaining of not finding libaudiofile.
> 
> The relevant chunk of config.log is:
> configure:9581: rm -rf SunWS_cache; g++ -o conftest -fpermissive -frtti  \
> -I/solar1/sjt/kde/include -I/datane/sjt/qt/include -I/usr/openwin/include  \
> -I/soft/free/include -L/usr/openwin/lib -L/datane/sjt/qt/lib -L/solar1/sjt/kde/lib  \
> -L/soft/free/lib  conftest.C -laudiofile   1>&5 Undefined                        \
> first referenced symbol                              in file
> afOpenFile(void)                    /var/tmp/ccV1Ra0B.o
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 9570 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply.  */
> char afOpenFile();
> 
> int main() {
> afOpenFile()
> ; return 0; }


Turns out that the problem is that it needs a
#ifdef __cplusplus
extern "C"
#endif

in the code fragment -- however I've no idea how to do that
automatically (some of the other code fragments do have it).

James

-- 
+------------------------+-------------------------------+---------+
> James Tappin           | School of Physics & Astronomy |  O__    |
> sjt@star.sr.bham.ac.uk | University of Birmingham      | --  \/` |
> Ph: 0121-414-6462. Fax: 0121-414-3722                  |         |
+--------------------------------------------------------+---------+

 
> > Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic