Re: Error compliling
Theo Schlossnagle <[email protected]> Mon, 21 Oct 2002 12:02:06 -0400
| Newsgroups | gmane.comp.apache.mod-log-spread.user |
|---|---|
| Message-ID | <[email protected]> |
The Spread guys changed the library name from libsp to libspread. So, change the apxs line to be -lspread instead of -lsp. That should do it. David MatarĂ³ wrote: > Hello, > > I am getting the following error when trying to compile > mod_log_spred-1.0.4. > I am running RedHat 7.2 wich a kernel 2.4.7-10, apache-1.3.20-16 and > I have > spread-3.17.0 installed into /usr/local directory. Somebody knows that > it can be? > > Thank you. > > > [localhost]# apxs -c -I /usr/local/lib -L/usr/local/lib -lsp > mod_log_spread.c > gcc -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O2 > -march=i386 -mcpu=i686 -fPIC -DEAPI_MM_CORE_PATH=/var/run/httpd.mm > -fpic -DSHARED_MODULE -I/usr/include/apache -I/usr/local/lib -c > mod_log_spread.c > mod_log_spread.c: In function `spread_multicast_log_to_daemon': > mod_log_spread.c:904: warning: assignment discards qualifiers from > pointer target type > gcc -shared -o mod_log_spread.so mod_log_spread.o -L/usr/local/lib -lsp > /usr/bin/ld: cannot find -lsp > collect2: ld returned 1 exit status > apxs:Break: Command failed with rc=1 > -- Theo Schlossnagle Principal Consultant OmniTI Computer Consulting, Inc. -- http://www.omniti.com/ Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911 1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984 2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7 ----------------------------------------------------------- -- Presenting at ApacheCon -- -- November 18th, 2002 -- -- Las Vegas, Nevada -- -- Backhand: understanding and building HA/LB clusters -- -- http://apachecon.com/2002/US/ -- -- -- -- Learn all there is to know about high availability -- -- internet systems and load balancing techniques -- -- focusing on applications driven by the Apache web -- -- server! -- -----------------------------------------------------------