Re: ltdl library problems

2006-10-12 Thread Aaron P. Martinez
> On Oct 12, 2006, at 1:48 PM, Aaron P. Martinez wrote:
>> I am trying to compile a program called gyachi on my freebsd 6.1
>> machine and am having a ton of problems.  I consulted the gyachi
>> forums but most people there are running on one flavor of linux or
>> another, nobody has it on freebsd that i can tell, so now i am
>> turning here.
>> at first my configure would stop at alsa, even though i have the
>> linux-compatible alsa programs, so then i used the --with-esd
>> switch and now i'm getting stopped with the following error:
>> checking for lt_dlopen in -lltdl... no configure: error: cannot
>> find ltdl library I have libtool installed and and under /usr/local/
>> lib i have: libltdl.a libltdl.la libltdl.so libltdl.so.4 I tried
>> using the --with-libintl-prefix switch like so: ./configure --
>> enable-esd --with-gnu-ld --with-libintl-prefix=/usr/local it's
>> still not finding it, same error again.
>
> Assuming you use a Bourne-compatible shell, try:
>
>   LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --
> enable-esd [ ... ]
>
> If you use csh, use setenv to export the above variables.
>
> --
> -Chuck
>
>
Great Chuck,

that worked like a charm.  I went straight to make after the configure and
for some odd reason i'm getting alsa errors and finally make fails..  here
is the output from make:

]$ make
make  all-recursive
Making all in intl
Making all in po
Making all in gyvoice
if gcc -DHAVE_CONFIG_H -I. -I. -I..
-DLOCALEDIR=\"/usr/local/share/locale\"  -DXTHREADS -DXUSE_MTSAFE_API
-I/usr/local/include/atk-1.0 -I/usr/local/include/cairo
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include
-I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include
-I/usr/local/include/freetype2 -I/usr/local/include  
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
-I/usr/local/include  -g -O2  -I/usr/X11R6/include -Wall -funsigned-char
-MT sound.o -MD -MP -MF ".deps/sound.Tpo" -c -o sound.o sound.c;  then mv
-f ".deps/sound.Tpo" ".deps/sound.Po"; else rm -f ".deps/sound.Tpo"; exit
1; fi
sound.c:165:28: alsa/asoundlib.h: No such file or directory
sound.c:167: error: syntax error before '*' token
sound.c:167: warning: type defaults to `int' in declaration of
`pcm_handleplay'
sound.c:167: warning: data definition has no type or storage class
sound.c:168: error: syntax error before '*' token
sound.c:168: warning: type defaults to `int' in declaration of
`pcm_handlecapt'
sound.c:168: warning: data definition has no type or storage class
sound.c:170: error: syntax error before '*' token
sound.c: In function `set_hw_ALSA':
sound.c:173: error: `snd_pcm_hw_params_t' undeclared (first use in this
function)
sound.c:173: error: (Each undeclared identifier is reported only once
sound.c:173: error: for each function it appears in.)
sound.c:173: error: `hwparams' undeclared (first use in this function)
sound.c:176: error: syntax error before "period_frames"
sound.c:179: warning: implicit declaration of function
`snd_pcm_hw_params_alloca'
sound.c:182: warning: implicit declaration of function
`snd_pcm_hw_params_any'
sound.c:182: error: `pcm_handle' undeclared (first use in this function)
sound.c:187: warning: implicit declaration of function
`snd_pcm_hw_params_set_access'
sound.c:187: error: `SND_PCM_ACCESS_RW_INTERLEAVED' undeclared (first use
in this function)
sound.c:192: warning: implicit declaration of function
`snd_pcm_hw_params_set_format'
sound.c:192: error: `SND_PCM_FORMAT_S16_LE' undeclared (first use in this
function)
sound.c:200: warning: implicit declaration of function
`snd_pcm_hw_params_set_rate_near'
sound.c:208: warning: implicit declaration of function
`snd_pcm_hw_params_set_channels'
sound.c:213: warning: implicit declaration of function
`snd_pcm_hw_params_get_buffer_time_max'
sound.c:217: error: `period_frames' undeclared (first use in this function)
sound.c:217: error: `buffer_frames' undeclared (first use in this function)
sound.c:219: warning: implicit declaration of function
`snd_pcm_hw_params_set_period_time_near'
sound.c:220: warning: implicit declaration of function
`snd_pcm_hw_params_set_period_size_near'
sound.c:222: warning: implicit declaration of function
`snd_pcm_hw_params_set_buffer_time_near'
sound.c:223: warning: implicit declaration of function
`snd_pcm_hw_params_set_buffer_size_near'
sound.c:225: warning: implicit declaration of function `snd_pcm_hw_params'
sound.c: In function `init_ALSA':
sound.c:237: warning: implicit declaration of function `snd_pcm_open'
sound.c:237: error: `SND_PCM_STREAM_PLAYBACK' undeclared (first use in
this function)
sound.c:243: error: `SND_PCM_STREAM_CAPTURE' undeclared (first use in this
function)
sound.c: In function `uninit_ALSA':
sound.c:253: warning: implicit declaration of function `snd_pcm_close'
sound.c: In function `play_ALSA':
sound.c:260: warning: implicit declaration of function `snd_pcm_writei'
sound.c:261: warning: implicit declaration of func

Re: ltdl library problems

2006-10-12 Thread Chuck Swiger

On Oct 12, 2006, at 1:48 PM, Aaron P. Martinez wrote:
I am trying to compile a program called gyachi on my freebsd 6.1  
machine and am having a ton of problems.  I consulted the gyachi  
forums but most people there are running on one flavor of linux or  
another, nobody has it on freebsd that i can tell, so now i am  
turning here.
at first my configure would stop at alsa, even though i have the  
linux-compatible alsa programs, so then i used the --with-esd  
switch and now i'm getting stopped with the following error:  
checking for lt_dlopen in -lltdl... no configure: error: cannot  
find ltdl library I have libtool installed and and under /usr/local/ 
lib i have: libltdl.a libltdl.la libltdl.so libltdl.so.4 I tried  
using the --with-libintl-prefix switch like so: ./configure -- 
enable-esd --with-gnu-ld --with-libintl-prefix=/usr/local it's  
still not finding it, same error again.


Assuming you use a Bourne-compatible shell, try:

	LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure -- 
enable-esd [ ... ]


If you use csh, use setenv to export the above variables.

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ltdl library problems

2006-10-12 Thread Aaron P. Martinez
I am trying to compile a program called gyachi on my freebsd 6.1 machine 
and am having a ton of problems.  I consulted the gyachi forums but most 
people there are running on one flavor of linux or another, nobody has 
it on freebsd that i can tell, so now i am turning here.


at first my configure would stop at alsa, even though i have the 
linux-compatible alsa programs, so then i used the --with-esd switch and 
now i'm getting stopped with the following error: 

checking for lt_dlopen in -lltdl... no 
configure: error: cannot find ltdl library 

I have libtool installed and and under /usr/local/lib i have: 

libltdl.a libltdl.la libltdl.so libltdl.so.4 

I tried using the --with-libintl-prefix switch like so: 

./configure --enable-esd --with-gnu-ld --with-libintl-prefix=/usr/local 

it's still not finding it, same error again.  

I looked in the readme for libltdl and here is what it says: 
/usr/local/share/libtool/libltdl]# less README 
This is GNU libltdl, a system independent dlopen wrapper for GNU libtool. 

It supports the following dlopen interfaces: 
* dlopen (Solaris, Linux and various BSD flavors) 
* shl_load (HP-UX) 
* LoadLibrary (Win16 and Win32) 
* load_add_on (BeOS) 
* GNU DLD (emulates dynamic linking for static libraries) 
* dyld (darwin/Mac OS X) 
* libtool's dlpreopen


Just one other note, like the fedora guys that got their's working by 
linking /usr/local/share/libtool/libltdl/ltdl.h to /usr/include this 
does not fix the problem on my system. i get the exact same error.  

checking for lt_dlopen in -lltdl... no 
configure: error: cannot find ltdl library


I'd really like to get this working if possible (and i'm sure it is) all 
help would be appreciated. I can submit my config.log if that would help.  

Thanks in advance. 


Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"