Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64733 - cyrus-sasl-2.1.18-r2: make sample-client and make sample-server fail
Summary: cyrus-sasl-2.1.18-r2: make sample-client and make sample-server fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 02:41 UTC by Warren Howard
Modified: 2004-12-24 02:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Warren Howard 2004-09-20 02:41:55 UTC
I want to test my cyrus-sasl libraries with the sample-server and sample-client programs.  However there is no USE flag that matches the cyrus-sasl ./configure option of --enable-sample and when I go to the directory /usr/share/doc/cyrus-sasl-2.1.18-r2/ and type make sample-server the compile fails because the .deps directory is missing.

No problems if I download and use the source from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.19.tar.gz.  The --enable-sample configure option builds sasl-sample-client and sasl-sample-server programs and I can also type make sample-server or make sample-client in the cyrus-sasl-2.1.19/sample folder and get working sample-server and sample-client programs.



Reproducible: Always
Steps to Reproduce:
1. emerge cyrus-sasl
2. cd /usr/share/doc/cyrus-sasl-2.1.18-r2/
3. cd examples
4. gunzip *
5. make sample-server

Actual Results:  
# make sample-server
Makefile:327: .deps/client.Po: No such file or directory
Makefile:328: .deps/common.Po: No such file or directory
Makefile:329: .deps/sample-client.Po: No such file or directory
Makefile:330: .deps/sample-server.Po: No such file or directory
Makefile:331: .deps/server.Po: No such file or directory
make: *** No rule to make target `.deps/server.Po'.  Stop.


Expected Results:  
# make sample-server
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -Wall -W -g -O2 -MT
sample-server.o -MD -MP -MF ".deps/sample-server.Tpo" \
  -c -o sample-server.o `test -f 'sample-server.c' || echo './'`sample-server.c; \
then mv ".deps/sample-server.Tpo" ".deps/sample-server.Po"; \
else rm -f ".deps/sample-server.Tpo"; exit 1; \
fi
sample-server.c: In function `main':
sample-server.c:318: warning: implicit declaration of function `getsubopt'
/bin/sh ../libtool --mode=link gcc  -Wall -W -g -O2   -o sample-server 
sample-server.o ../lib/libsasl2.la -lresolv  -lresolv
gcc -Wall -W -g -O2 -o .libs/sample-server sample-server.o
../lib/.libs/libsasl2.so -ldl -lresolv -lresolv -lresolv -lresolv -Wl,--rpath
-Wl,/usr/local/lib
creating sample-server
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2004-10-03 11:27:00 UTC
Adding a package name into summary for easier recognition
Comment 2 Tuan Van (RETIRED) gentoo-dev 2004-10-04 09:21:59 UTC
Warren,
Do you want the sample-{server,client} binary or you want to be able to compile them? IMO, those files in examples are for reference only. If you want to compile them, you have to bring a lot more Makefile.*/Configure.* in and I don't think we would want to do that.
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-10-26 08:59:42 UTC
No response. Closing as NEEDINFO.
Comment 4 Warren Howard 2004-10-26 22:03:38 UTC
Hi,

Binary is fine.  The shortest path to a sample-server and sample-client binary is all I need.

Many thanks,


Warren
Comment 5 Warren Howard 2004-12-23 05:59:20 UTC
Hi,

I was wondering if there was any update on this?  Is it something that can or cannot be done?  As it stands I've listed cyrus-sasl in my package mask file and unpack and compile the source under /usr/local instead.  This is because emerge and the USE flags are not providing the options I need for cyrus-sasl.  It would be great if I didn't have to do this since cyrus-sasl is, so far, the only package that I am not managing with emerge.


Thanks,


Warren.
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-12-23 07:14:08 UTC
2.1.20-r1 has been submitted into CVS, with a "sample" local USE flag, which does "--enable-sample". It will arrive to portage mirrors in few hours. Sorry for the delay.
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2004-12-23 08:06:38 UTC
Sorry, my mistake - this new ebuild doesn't help.
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2004-12-23 12:26:55 UTC
Ok, I've just committed a (hopefully) working version of 2.1.20-r1. Please test and confirm if it works.
Comment 9 Warren Howard 2004-12-24 00:46:57 UTC
I've tested cyrus-sasl-2.1.20-r1 for the --enable-sample option.  It works.  My steps were:

added "sample" to /etc/make.conf
added cyrus-sasl to /etc/portage/package.keyworks
remove cyrus-sasl from /etc/portage/package.mask

emerge cyrus-sasl

cd /usr/share/cyrus-sasl-2/examples/sample
make sample-client
make sample-server

I am now happily copying and pasting sample server and client messages from window to window.

Thank you.

Warren.
Comment 10 Andrej Kacian (RETIRED) gentoo-dev 2004-12-24 02:08:13 UTC
It should also be unmasked by now.