Hi Benjamin, Adding following to MESOS_SRC/src/Makefile.am fix the link issue.
libmesos_la_LIBADD += -lsnappy I am wondering whether it is okay to add this to mesos build (Makefile.am). Thanks Milinda On Fri, Jun 14, 2013 at 2:57 PM, Milinda Pathirage <[email protected]> wrote: > Hi Benjamin, > > Manually adding -lsnappy to libmesos.la's dependency_libs fixed the > link error. May be adding snappy as a libmesos dependency will fix the > error. > > Thanks > Milinda > > On Fri, Jun 14, 2013 at 2:38 PM, Milinda Pathirage > <[email protected]> wrote: >> Hi Benjamin, >> >> I am trying to find a fix for this. I'll let you know the progress. >> >> Thanks >> Milinda >> >> On Fri, Jun 14, 2013 at 2:17 PM, Benjamin Mahler >> <[email protected]> wrote: >>> We've so far been unable to diagnose (as I don't have the cycles to try >>> this out myself on a RedHat VM), it would be very helpful if you could >>> provide the full build output! :) >>> >>> >>> On Fri, Jun 14, 2013 at 10:26 AM, Milinda Pathirage >>> <[email protected]>wrote: >>> >>>> Hi Devs, >>>> >>>> I am getting following link error when trying to build Mesos on Red >>>> Hat Server 6.4 with G++ 4.4.7. >>>> >>>> ./.libs/libmesos.so: undefined reference to `snappy::RawCompress(char >>>> const*, unsigned long, char*, unsigned long*)' >>>> ./.libs/libmesos.so: undefined reference to >>>> `snappy::RawUncompress(char const*, unsigned long, char*)' >>>> ./.libs/libmesos.so: undefined reference to >>>> `snappy::GetUncompressedLength(char const*, unsigned long, unsigned >>>> long*)' >>>> ./.libs/libmesos.so: undefined reference to >>>> `snappy::MaxCompressedLength(unsigned long)' >>>> collect2: ld returned 1 exit status >>>> >>>> I saw someone else in the dev list also got the same error but >>>> couldn't find any solution to this. Please let me know if you have any >>>> idea about fixing this error. I suspect this has something to do with >>>> leveldb library, but I am still new to Mesos and don't have a clue >>>> about how build system works. >>>> >>>> I was able to get it compiled in both Mac OS X and Ubuntu. So above >>>> can be specific to Red Hat. I really appreciate your feedback on this. >>>> >>>> Thanks >>>> Milinda >>>> >>>> -- >>>> Milinda Pathirage >>>> >>>> twitter: milindalakmal >>>> skype: milinda.pathirage >>>> blog: http://milinda.pathirage.org >>>> >> >> >> >> -- >> Milinda Pathirage >> >> twitter: milindalakmal >> skype: milinda.pathirage >> blog: http://milinda.pathirage.org > > > > -- > Milinda Pathirage > > twitter: milindalakmal > skype: milinda.pathirage > blog: http://milinda.pathirage.org -- Milinda Pathirage twitter: milindalakmal skype: milinda.pathirage blog: http://milinda.pathirage.org
