Problem with dhcpctl.

phil lemelin phil.lemelin at gmail.com
Mon Apr 20 15:26:03 UTC 2009


Good morning list,

I'm trying to use the dhcpctl API to control my dhcp server. However, I
can't compile the example in the man page.

I tried on 2 different machines ( Ubuntu 8.10 and CentOS 5.2 ) with Eclipse
and without and I have the same result.

 [root at krum tmp]# gcc -o DhcpCtl dhcpctl_test.c
/tmp/cc2ldtSO.o: In function `main':
dhcpctl_test.c:(.text+0x30): undefined reference to `dhcpctl_initialize'
dhcpctl_test.c:(.text+0x48): undefined reference to `dhcpctl_connect'
dhcpctl_test.c:(.text+0x5a): undefined reference to `dhcpctl_new_object'
dhcpctl_test.c:(.text+0x92): undefined reference to `omapi_data_string_new'
dhcpctl_test.c:(.text+0xb4): undefined reference to `dhcpctl_set_value'
dhcpctl_test.c:(.text+0xc6): undefined reference to `dhcpctl_open_object'
dhcpctl_test.c:(.text+0xd3): undefined reference to
`dhcpctl_wait_for_completion'
dhcpctl_test.c:(.text+0xf7): undefined reference to
`dhcpctl_data_string_dereference'
dhcpctl_test.c:(.text+0x109): undefined reference to `dhcpctl_get_value'
dhcpctl_test.c:(.text+0x13a): undefined reference to
`dhcpctl_data_string_dereference'
collect2: ld returned 1 exit status

Am I missing something obvious here ?

Best regards,

-- 
Philippe-Alexandre Lemelin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090420/014c0421/attachment.html>


More information about the dhcp-users mailing list