Hello,

I have successfully installed open-lldp and open-fcoe on two Fedora 20
machines. The initiator can run IO to the drive on the target via vn2vn.

However, I failed to repeat the same steps (install lldpad, libHBAAPI,
libhbalinux, fcoe-utils) on Ubuntu. I run into following problem when I
make fcoe-utils. I use Ubuntu 13.10, with 3.11.0-18-generic kernel.

gcc -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes  -O2
-g  -lHBAAPI -ldl    -o fcoeadm fcoeadm-fcoeadm.o fcoeadm-fcoeadm_display.o
lib/libutil.a libopenfcoe.a
fcoeadm-fcoeadm_display.o: In function `hba_table_list_init':
/usr/src/fcoe-utils/fcoeadm_display.c:1038: undefined reference to
`HBA_GetNumberOfAdapters'
/usr/src/fcoe-utils/fcoeadm_display.c:1060: undefined reference to
`HBA_GetAdapterName'
/usr/src/fcoe-utils/fcoeadm_display.c:1068: undefined reference to
`HBA_OpenAdapter'
/usr/src/fcoe-utils/fcoeadm_display.c:1076: undefined reference to
`HBA_GetAdapterAttributes'
/usr/src/fcoe-utils/fcoeadm_display.c:1079: undefined reference to
`HBA_CloseAdapter'
/usr/src/fcoe-utils/fcoeadm_display.c:1088: undefined reference to
`HBA_GetAdapterPortAttributes'
/usr/src/fcoe-utils/fcoeadm_display.c:1092: undefined reference to
`HBA_CloseAdapter'
fcoeadm-fcoeadm_display.o: In function `hba_table_list_destroy':
/usr/src/fcoe-utils/fcoeadm_display.c:1012: undefined reference to
`HBA_CloseAdapter'
fcoeadm-fcoeadm_display.o: In function `get_device_capacity_v2':
/usr/src/fcoe-utils/fcoeadm_display.c:431: undefined reference to
`HBA_ScsiReadCapacityV2'
fcoeadm-fcoeadm_display.o: In function `fcoeadm_loadhba':
/usr/src/fcoe-utils/fcoeadm_display.c:1020: undefined reference to
`HBA_LoadLibrary'
fcoeadm-fcoeadm_display.o: In function `display_port_stats':
/usr/src/fcoe-utils/fcoeadm_display.c:1170: undefined reference to
`HBA_GetPortStatistics'
/usr/src/fcoe-utils/fcoeadm_display.c:1189: undefined reference to
`HBA_GetFC4Statistics'
/usr/src/fcoe-utils/fcoeadm_display.c:1159: undefined reference to
`HBA_FreeLibrary'
/usr/src/fcoe-utils/fcoeadm_display.c:1219: undefined reference to
`HBA_FreeLibrary'
fcoeadm-fcoeadm_display.o: In function `fcoeadm_loadhba':
/usr/src/fcoe-utils/fcoeadm_display.c:1020: undefined reference to
`HBA_LoadLibrary'
fcoeadm-fcoeadm_display.o: In function `display_adapter_info':
/usr/src/fcoe-utils/fcoeadm_display.c:1302: undefined reference to
`HBA_FreeLibrary'
fcoeadm-fcoeadm_display.o: In function `fcoeadm_loadhba':
/usr/src/fcoe-utils/fcoeadm_display.c:1020: undefined reference to
`HBA_LoadLibr
fcoeadm-fcoeadm_display.o: In function `display_target_info':
/usr/src/fcoe-utils/fcoeadm_display.c:1399: undefined reference to
`HBA_FreeLibr
/usr/src/fcoe-utils/fcoeadm_display.c:1360: undefined reference to
`HBA_GetDisco
fcoeadm-fcoeadm_display.o: In function `get_device_map':
/usr/src/fcoe-utils/fcoeadm_display.c:812: undefined reference to
`HBA_GetFcpTar
fcoeadm-fcoeadm_display.o: In function `get_inquiry_data_v2':
/usr/src/fcoe-utils/fcoeadm_display.c:347: undefined reference to
`HBA_ScsiInqui
collect2: error: ld returned 1 exit status
make: *** [fcoeadm] Error 1

How to fix the problem?

Thanks,

Jun
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to