On Fri, Oct 13, 2017 at 05:02:51PM -0700, Simon Matthews wrote:
> William, thanks for the assistance. I was able to get further.
> 
> Can anyone help me with this?
> 
> SGE_INPUT_CFLAGS="-I/usr/include/tirpc" ./aimk -only-core -no-secure
That looks like the same problem at link time.  
Set SGE_INPUT_LDFLAGS="-ltirpc" should do it although you might need
to also pass the path to your tirpc library in with -L as well.


William

> 
> ...
> gcc -DSGE_ARCH_STRING=\"cygwin-x86\" -O3 -Wall -Wstrict-prototypes
> -DUSE_POLL -DLINUX -D_GNU_SOURCE -DGETHOSTBYNAME -DGETHOSTBYADDR
> -DHAVE_XDR_H=1  -DTARGET_32BIT -I/usr/include/tirpc -DSGE_PQS_API
> -DSPOOLING_dynamic  -D_FILE_OFFSET_BITS=64 -DHAVE_HWLOC=1 -DNO_JNI
> -DCOMPILE_DC -D__SGE_NO_USERMAPPING__ -I../common -I../libs
> -I../libs/uti -I../libs/juti -I../libs/gdi -I../libs/japi
> -I../libs/sgeobj -I../libs/cull -I../libs/comm -I../libs/comm/lists
> -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir
> -I../daemons/common -I../daemons/qmaster -I../daemons/execd
> -I../clients/common -I. -o test_sge_object -L.
> -Wl,-rpath,\$ORIGIN/../../lib/cygwin-x86  test_sge_object.o
> libsgeobj.a libsgeobjd.a libcull.a libcomm.a libcommlists.a libuti.a
> -luti -ldl  -lm -lpthread
> libcull.a(pack.o):pack.c:(.text+0x515): undefined reference to `xdrmem_create'
> libcull.a(pack.o):pack.c:(.text+0x525): undefined reference to `xdr_double'
> libcull.a(pack.o):pack.c:(.text+0x94d): undefined reference to `xdrmem_create'
> libcull.a(pack.o):pack.c:(.text+0x959): undefined reference to `xdr_double'
> collect2: error: ld returned 1 exit status
> make: *** [../libs/sgeobj/Makefile:364: test_sge_object] Error 1
> not done
> 
> Simon
> 
> On Fri, Oct 13, 2017 at 1:02 AM, William Hay <w....@ucl.ac.uk> wrote:
> > On Thu, Oct 12, 2017 at 04:12:48PM -0700, System Administrator wrote:
> >> I think it should be part of the ./configure step.  If you exported it as 
> >> an
> >> env variable, then re-run the ./configure part.  Or put it at the beginning
> >> of the command, for example:
> >>
> >> CPPFLAGS=-I/usr/include/tirpc ./configure
> > Grid engine doesn't really use configure (some components have their own 
> > build process
> > that involve configure but the top level doesn't).  A similar role is 
> > performed
> > by aimk (which also controls the build).
> >
> > According to section 4.6 of 
> > https://arc.liv.ac.uk/trac/SGE/browser/sge/source/README.aimk you can
> > pass flags to the compiler by setting the variable SGE_INPUT_CFLAGS when 
> > invoking aimk.
> > So something likei this should work:
> > SGE_INPUT_CFLAGS="-I/usr/include/tirpc" ./aimk <options>
> >
> > William
> >
> _______________________________________________
> users mailing list
> users@gridengine.org
> https://gridengine.org/mailman/listinfo/users

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to