Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Ian R. Chesal" To: Subject: Porting GridEngine, almost there, just need some help linking... Date: Sun, 19 Jan 2003 20:46:54 -0500 Message-ID: <000001c2c025$d1a13080$0302a8c0@calvin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep04-mail.bloor.is.net.cable.rogers.com from [24.102.123.73] using ID at Sun, 19 Jan 2003 20:45:42 -0500 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 -- 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/