Compiling on Solaris 9

Mike Pacific mike.pacific at gmail.com
Fri Sep 2 08:20:21 PDT 2005


Thanks Phillip and Garrett, worked great! I also added -lmalloc and it
worked perfect

 

Thanks again :-)

 

Mike Pacific

mike.pacific at gmail.com

203.994.5033

  _____  

From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] On Behalf Of Garrett, Philip
(MAN-Corporate)
Sent: Friday, September 02, 2005 11:07 AM
To: memcached at lists.danga.com
Subject: RE: Compiling on Solaris 9

 

Try running configure with the LDFLAGS env var set to "-lnsl -lsocket
-lresolv", e.g.

 

LDFLAGS="-lnsl -lsocket -lresolv" ./configure ....

 


  _____  


From: memcached-bounces at lists.danga.com
[mailto:memcached-bounces at lists.danga.com] On Behalf Of Mike Pacific
Sent: Friday, September 02, 2005 11:02 AM
To: memcached at lists.danga.com
Subject: Compiling on Solaris 9

Hey all,

 

I'm trying to compile and install memcached on Solaris 9. On make, I get the
following:

 

bash-2.05# make

make  all-recursive

make[1]: Entering directory `/root/memcached-1.1.12'

Making all in doc

make[2]: Entering directory `/root/memcached-1.1.12/doc'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/root/memcached-1.1.12/doc'

make[2]: Entering directory `/root/memcached-1.1.12'

gcc -DHAVE_CONFIG_H -I. -I. -I.    -DNDEBUG -g -O2 -I/usr/local/include -c
memcached.c

gcc -DHAVE_CONFIG_H -I. -I. -I.    -DNDEBUG -g -O2 -I/usr/local/include -c
slabs.c

gcc -DHAVE_CONFIG_H -I. -I. -I.    -DNDEBUG -g -O2 -I/usr/local/include -c
items.c

gcc -DHAVE_CONFIG_H -I. -I. -I.    -DNDEBUG -g -O2 -I/usr/local/include -c
assoc.c

gcc -DNDEBUG -g -O2 -I/usr/local/include -L/usr/local/lib -o memcached
memcached.o slabs.o items.o assoc.o  -levent 

Undefined                       first referenced

 symbol                             in file

socket                              memcached.o  (symbol belongs to implicit
dependency /usr/lib/libsocket.so.1)

mallinfo                            memcached.o

daemon                              memcached.o

accept                              memcached.o  (symbol belongs to implicit
dependency /usr/lib/libsocket.so.1)

bind                                memcached.o  (symbol belongs to implicit
dependency /usr/lib/libsocket.so.1)

setsockopt                          memcached.o  (symbol belongs to implicit
dependency /usr/lib/libsocket.so.1)

inet_aton                           memcached.o

listen                              memcached.o  (symbol belongs to implicit
dependency /usr/lib/libsocket.so.1)

ld: fatal: Symbol referencing errors. No output written to memcached

collect2: ld returned 1 exit status

make[2]: *** [memcached] Error 1

make[2]: Leaving directory `/root/memcached-1.1.12'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/memcached-1.1.12'

make: *** [all-recursive-am] Error 2

 

 

Any suggestions?

 

Mike Pacific

mike.pacific at gmail.com

203.994.5033

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20050902/2ba5d205/attachment.html


More information about the memcached mailing list