Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3130] More on non-functioning configure

Date2003-10-14 09:48
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:3130] More on non-functioning configure
1) If I disable RTAUDIO (in order to avoid the pablio problem) I find 
jpff_glue.o: In function `csoundPerform':
/home/jpff/Sourceforge/csound5/Top/jpff_glue.c:100: undefined reference to `playopen_'
 and similar error messages

This is bizarre on two counts; there is no reference to playopen_ in
csoundPerform and secondly the only textural references to playopen_
are is code that is only included if RTAUDIO is set.  This used to
work correctly, so I assume that the configuration has been bust

2) The libraries that are included now are
-L/usr/local/lib -L/usr/X11R6/lib -lfltk -ldl -lpthread -lm -lXext
-lX11 -lpthread -lstdc++  -L/usr/X11R6/lib -lm -lpthread -lpthread
-lfltk -lX11 -lportaudio -lasound -ldl -lc

which looks a little like overkill.  -lfltk -ldl -lpthread -lX11 are
included twice, and -lpthread three times.  That cannot be right.

Anyway I am now totally stuck, unless I give up the configuration
stuff and return to Makefiles.  That has lost today's research time.

==John ffitch

Date2003-10-15 05:52
Fromstevenyi
Subject[CSOUND-DEV:3139] Re: More on non-functioning configure
Hi John and all,

> 2) The libraries that are included now are
> -L/usr/local/lib -L/usr/X11R6/lib -lfltk -ldl -lpthread -lm -lXext
> -lX11 -lpthread -lstdc++  -L/usr/X11R6/lib -lm -lpthread -lpthread
> -lfltk -lX11 -lportaudio -lasound -ldl -lc
> 
> which looks a little like overkill.  -lfltk -ldl -lpthread -lX11 are
> included twice, and -lpthread three times.  That cannot be right.
> 

I spent time trying to figure this out.  The first set of libraries:

-L/usr/local/lib -lfltk -L/usr/X11R6/lib -lm -lXext -lX11 -lm -lpthread
-lstdc++  

all come from FLTK related entries I edited in configure.in (lines 258
and 259).  The rest I'm still trying to figure out where they're coming
in from. 

The rest of the libraries I'm assuming are coming from X_LIBS and LIBS
in this line of the Makefile.in

LIBS =	$(FLTKLIB) @X_LIBS@ @LIBS@

I'm guessing X_LIBS and LIBS have to do with AC_CHECK_LIB stuff in the
configure script.  

Will try to work on sorting this out.  For the time being, however, I've
been able to compile csound5 through with the redundant libraries.

steven