This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Porting GridEngine, almost there, just need some help linking...


Almost done compiling GridEngine to run under Cygwin. Having some
trouble linking. I'm getting:

	./librmon.a(rmon_macros.o)(.text+0xae0):rmon_macros.c: undefined
reference to `_shmget'
	./librmon.a(rmon_macros.o)(.text+0xb09):rmon_macros.c: undefined
reference to `_shmat'
	./librmon.a(rmon_macros.o)(.text+0xf2a):rmon_macros.c: undefined
reference to `_shmdt'
	./librmon.a(rmon_macros.o)(.text+0xf65):rmon_macros.c: undefined
reference to `_shmctl'
	./librmon.a(rmon_macros.o)(.text+0x1499):rmon_macros.c:
undefined reference to `_shmdt'
	./librmon.a(rmon_macros.o)(.text+0x14c7):rmon_macros.c:
undefined reference to `_shmctl'

linking errors when running the linker command:

gcc -O2 -Wall -Werror   -DLINUX -DLINUX6 -DCYGWIN  -DCOMPILE_DC
-D__SGE_NO_USERMAPPING__ -I../security/sec -I../common -I../libs/uti
-I../libs/gdi -I../libs/spool -I../libs/spool/classic
-I../libs/spool/flatfile -I../libs/cull -I../libs/rmon -I../libs/comm
-I../libs/sched -I../daemons/common -I../daemons/commd
-I../daemons/qmaster -I../daemons/execd -I../daemons/schedd
-I../clients/common -I. -L.  -o sge_commd commd.o message.o rwfd.o
commproc.o process_received_message.o prolog.o deliver_message.o ack.o
reset_messages_for_commproc.o setup_commd_path.o version.o commd_io.o
-luti -lrmon   -lm

I had made the following symbolic links to get stuff to compile up to
this point:

	/usr/include/cygwin/ipc.h -> /usr/include/sys/ipc.h
	/usr/include/cygwin/sem.h -> /usr/include/sys/sem.h
	/usr/include/cygwin/shm.h -> /usr/include/sys/shm.h

Now my question is: what library should I pass to the linker so the
shared memory calls (shmget, etc.) being complained about are found? I
tried -lcygwin but that wasn't it. Anyone have any suggestions? I
thought shmget and such were in libc.a, but -lc didn't help the
situation. Any help is greatly appreciated -- I'm so close to having
binaries. Just need a little direction, I'm pretty green when it comes
to cygwin porting.

Thanks!
Ian

---
Ian R. Chesal
<ian.chesal@utoronto.ca>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]