From: Rainer D. <ra...@ul...> - 2004-10-23 20:47:51
|
RYAN vAN GINNEKEN wrote: >I found your previous post and tried the 3 different lines that you >suggest for LIBS the lines you suggest but still a no go. Read and >reread your Makefile and cannot see a difference in these two lines am i >missing something please help. >-CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' >-DIMAP_TIMEOUT=2 +CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' >'-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2 > > ># You may need to adjust the following line. >#LIBS=-L/usr/local/lib -lc-client4 -lssl -lpam -L/usr/kerberos/lib/ >-lgssapi_kr >#LIBS=-L/usr/local/lib -lc-client4 -lssl -lpam -lgssapi -lcrypt -lkrb5 >-lcom_e >LIBS=-L/usr/local/lib -lc-client4 -lssl -lpam -lcrypt -lcom_err -lz >-lcrypto -l > > > OK, I don't know which posting you refer to, but this *should* work: HTTPD_GROUP=www CFLAGS= LFLAGS=-static SQUIRRELMAILCONFIGFILE=/usr/local/www/squirrelmail/config/config.php FILTERCMD_CFLAGS=-DSQUIRRELMAILCONFIGFILE='"$(SQUIRRELMAILCONFIGFILE)"' SERVERSIDEFILTERHOME=../plugins/serversidefilter CHECKCREDS=checkcreds_cclient.o LIBS=-L/usr/local/lib -lc-client4 -lssl -lpam -lgssapi -lcrypt -lkrb5 -lcom_err -lz -lcrypto -lopie -lradius -lskey -ltacplus -lutil -lmd I=/usr/local/include/c-client CCLIENT_CFLAGS=-I$I '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2 all: filtercmd filtercmd: filtercmd.o Makefile $(CHECKCREDS) gcc -o filtercmd filtercmd.o $(CHECKCREDS) $(LIBS) $(LFLAGS) chmod 4750 filtercmd chown root:$(HTTPD_GROUP) filtercmd filtercmd.o: filtercmd.c Makefile gcc -c filtercmd.c $(CFLAGS) $(FILTERCMD_CFLAGS) checkcreds_cclient.o: checkcreds_cclient.c Makefile gcc -c checkcreds_cclient.c $(CFLAGS) $(CCLIENT_CFLAGS) test: test.sh filtercmd sh test.sh clean: -rm *.o *~ test_creds filter I had to ask in another (FreeBSD) newsgroup because I couldn't figure out which libraries it was missing. There are other modifications, though, that need to be done to the source. E.g. the virtualdomains-file has a different syntax than the one in /var/qmail/control. cheers, Rainer -- =================================================== ~ Rainer Duffner - ra...@ul... ~ ~ Freising - Munich - Germany ~ ~ Unix - Linux - BSD - OpenSource - Security ~ ~ http://www.ultra-secure.de/~rainer/pubkey.pgp ~ =================================================== |