Re: [Myrinet] Socket-GM compilation
Markus Fischer <[email protected]>
| Newsgroups | gmane.network.myrinet.general |
|---|---|
| Message-ID | <Pine.GSO.4.44.0206250740160.11426-100000@adel> |
Hi, > Hi, We try to implementer Socket-GM v 1.1 on Solaris, and we found some probs > when compiling. > > 1. "gmsocks-unix-classes.cpp", line 417: Error: The function "GM_TRAMP_execve" > must have a prototype." > we found in gmsocks-sc.h, no GM_TRAMP_execve for Solaris, so we added ssize_t > GM_TRAMP_execve (const char *filename, char *const argv [], char *const > envp[]); after "#if defined (SOLARIS) || defined (SOLARIS64)" > yes, this is the right place. > 2. "gmsocks-worker-so.o -L$(GMDIR)/binary/lib -lc -ldl -lgm -lsocket -lnsl # > -lpthread" > no dir "binary", so we deleted it. > this depends on the GM installation. I have to check whether there are differences for 1.6 or 1.5 > 3. "ld: fatal: file /opt/gm/lib/libgm.so: wrong ELF class: ELFCLASS32" > 32bit? 64bit? we changed "gmsocks-worker-so.o -L$(GMDIR)/lib -lc -ldl -lgm > -lsocket -lnsl # -lpthread" with "gmsocks-worker-so.o -L$(GMDIR)/lib/sparcv9 -LC > -ldl -lgm -lsocket -lnsl # -lpthread" > > it seems now compilation can pass, but we dont know the impacts of our > modifications, any comments or ideas? Thx > no, there shouldn't be an impact. I will test more on Solaris. One thing which is not really motivating is that the compiler dies when applying the same techniques as for Linux. Also example code will work when using gcc in 32 bit mode, with -m64 I will get a connection refused, a SEGV under CC Some of these issues might be an installation issue at our site and help will be appreciated [since you are from SUN ;-] For example, can I somehow create a library (using CC) which I can use for linking to remap functions ? I will post here, when enhancements for Solaris are available for download. regards, Markus > ------------------------------------------------ > WU Tengxiao > > Departement Telecommunications Services & Usages > INSA, LYON, France > > SUN Microsystem LABS EUROPE, GRENOBLE, France > > Telephone : (33) 476 188 820 (office) > E-mails : [email protected] > [email protected] > ------------------------------------------------ > > _______________________________________________ > Myrinet mailing list > [email protected] > http://email.osc.edu/mailman/listinfo/myrinet >