Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4290B020.5030305@familiehaase.de> Date: Sun, 22 May 2005 18:15:28 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: trying to compile mod_dosevasive with cygwin and getting errors References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Tony Guadagno wrote: > Hi, > Sorry, I am new at this. Could someone please help. I have cygwin 1.5.16-1 and apache 2.0.54 I have compiled the apache source with no problem. I use the following command to compile mod_dosevase and get the following error: I am sure I am not doing something right...could someone please help? > > thanks > > > $ /usr/local/apache2/bin/apxs -i -a -c mod_dosevasive20.c > > > /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_H > AVE_DESIGNATED_INITIALIZER -DCYGWIN -g -O2 -I/usr/local/apache2/include -I/usr/ > local/apache2/include -I/usr/local/apache2/include -c -o mod_dosevasive20.lo > mod_dosevasive20.c && touch mod_dosevasive20.slo > /usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_dosevasive20.la > -rpath /usr/local/apache2/modules -module -avoid-version mod_dosevasive20.l > o > libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared l > ibraries Probably you're not getting a shared library at all because of this error. When using libtool you must use the -no-undefined flag for the link command. > /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool > ' mod_dosevasive20.la /usr/local/apache2/modules > /usr/local/apache2/build/libtool --mode=install cp mod_dosevasive20.la /usr/loca > l/apache2/modules/ > cp .libs/mod_dosevasive20.lai /usr/local/apache2/modules/mod_dosevasive20.la > cp .libs/mod_dosevasive20.a /usr/local/apache2/modules/mod_dosevasive20.a > ranlib /usr/local/apache2/modules/mod_dosevasive20.a > chmod 644 /usr/local/apache2/modules/mod_dosevasive20.a > ---------------------------------------------------------------------- > Libraries have been installed in: > /usr/local/apache2/modules > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > Warning! dlname not found in /usr/local/apache2/modules/mod_dosevasive20.la. > Assuming installing a .so rather than a libtool archive. > chmod 755 /usr/local/apache2/modules/mod_dosevasive20.so > chmod: cannot access `/usr/local/apache2/modules/mod_dosevasive20.so': No such f > ile or directory > apxs:Error: Command failed with rc=65536 > .. Since there was no shared library created this is expected. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/