Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ld: 0711-317 ERROR: Undefined symbol

Status
Not open for further replies.

kramJ

MIS
Apr 21, 2005
8
US
A programmer here is trying to compile test1.c by typing:
/usr/vac/bin/xlc_r -I/usr/ldap/include test1.c -L/usr/ldap/lib

He gets:
ld: 0711-317 ERROR: Undefined symbol: .ldap_init
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

He states that the ldap_init() function being called in test1.c is included in the ldap.h file (specified by the include path above).

Can someone point me in the right direction on this. I'm not a C programmer. This is on an AIX 5.1 system. Thanks.
 
looks like a licence problem. Read through the following information. you'll see your errors at the very bottom:

LUM - Quick Install of Concurrent Nodelocked License in AIX 4 and 5

This document applies to AIX Versions 4 and 5. It describes how to quickly install a concurrent nodelocked license for the "C for AIX" compiler as well as how to test the compiler. This document assumes the license server has not been previously configured and that the license daemons are not currently running. This can be verified with the i4cfg -list command. On AIX 4, LUM commands can be found in /var/ifor. With AIX 5, the LUM commands are located in /usr/opt/ifor/bin.

A concurrent nodelocked license is one that is only good for that node/machine.

License certificate files are installed with the compiler and can be found in the following directories:

C for AIX: /usr/vac
C/C++ for AIX, OS/2 and WindowsNT: /usr/ibmcxx
XL Fortran: /usr/lpp/xlf/DOC
VisualAge for C++: /usr/vacpp

NOTE: License certificate files for concurrent nodelocked licenses are named with the format XXXX_cn.lic, where XXXX is the name of the product.

Follow these steps to install a concurrent nodelocked license:

1. Check the version of License Use Management (LUM) installed by entering the following commands:

cd /var/ifor
more VERSION

NOTE: If the version of LUM is 4.6.0 or greater, continue with step 3. If not, download the latest version from Select "Administration Runtime Kit (ARK) V4.6.0" as the component choice.

1. Select and download the tar file for your desired language.
2. You MUST install the following files:

ifor_ls.base
ifor_ls.client
ifor_ls.libraries
ifor_ls.msg

3. Install this file ONLY if your operating system is AIX 4.3.3.

bos.net

2. Install images from step 1 via SMIT.

3. Change the permissions on /var/ifor. Enter:

chmod 1777 /var/ifor

4. Start the concurrent nodelock server and set it to restart on a system reboot. Enter:

i4cfg -a n -n n -S a -b null
i4cfg -start

5. Verify that the nodelock license server daemon, i4llmd, is running (others may start). Enter:

i4cfg -list

6. Enroll the concurrent nodelock license by entering the following command:

i4blt -a -f /path/to/license/certificate -T
<number of licenses to enroll> -R "<admin_name or
company_name>"

Example (this may take several minutes):

i4blt -a -f /usr/vac/cforaix_cn.lic -T 1 -R "MyCompany"

NOTE: This will enroll one concurrent nodelocked license for the C for AIX compiler.

7. Verify the enrolled license by viewing the concurrent nodelocked licenses currently held in the LUM database. Enter:

i4blt -s -lcn

8. Now, test the C for AIX compiler by issuing the following sequence of commands:

cd /tmp
touch junk.c
/usr/vac/bin/cc junk.c

The output should read:

line 1: 1506-229 (W) File is empty.
line 1.1: 1506-356 (W) Compilation unit is empty.
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to
obtain more information.

The absence of license errors indicates that the compiler received a valid license and is working. Errors listed are a result of compiling an empty file.

Further information can be found in the file /usr/vac/README.password. HTML documentation for LUM is located in the /usr/opt/ifor/ls/doc directory or on the Internet at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top