Skip to content

Instantly share code, notes, and snippets.

@GaretJax
Created January 30, 2011 23:24
Show Gist options
  • Select an option

  • Save GaretJax/803400 to your computer and use it in GitHub Desktop.

Select an option

Save GaretJax/803400 to your computer and use it in GitHub Desktop.
[jonathan.stoppani@eifrwse00397 opsys2_lab3_stoppani]$ make
gcc -o consumer consumer.o buffer.o common.o monitor.o shared.o condition.o
buffer.o: In function `buffer_destroy':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/buffer.c:79: undefined reference to `shm_unlink'
monitor.o: In function `monitor_create':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:29: undefined reference to `sem_open'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:36: undefined reference to `sem_open'
monitor.o: In function `monitor_close':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:47: undefined reference to `sem_close'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:52: undefined reference to `sem_close'
monitor.o: In function `monitor_destroy':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:70: undefined reference to `sem_unlink'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:77: undefined reference to `sem_unlink'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:84: undefined reference to `shm_unlink'
monitor.o: In function `monitor_acquire':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:95: undefined reference to `sem_wait'
monitor.o: In function `monitor_release':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:101: undefined reference to `sem_post'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/monitor.c:103: undefined reference to `sem_post'
shared.o: In function `shared_open':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/shared.c:12: undefined reference to `shm_open'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/shared.c:20: undefined reference to `shm_open'
condition.o: In function `condition_create':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:32: undefined reference to `sem_open'
condition.o: In function `condition_close':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:45: undefined reference to `sem_close'
condition.o: In function `condition_destroy':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:63: undefined reference to `sem_unlink'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:68: undefined reference to `shm_unlink'
condition.o: In function `condition_wait':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:83: undefined reference to `sem_post'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:85: undefined reference to `sem_post'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:88: undefined reference to `sem_wait'
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:89: undefined reference to `sem_wait'
condition.o: In function `condition_notify':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:98: undefined reference to `sem_post'
condition.o: In function `condition_notifyall':
/home/i2_0910/jonathan.stoppani/opsys2_lab3_stoppani/condition.c:106: undefined reference to `sem_post'
collect2: ld returned 1 exit status
make: *** [consumer] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment