IBM XLC
23-Dec-05

Problem using XLC compiler on Mac OS X 10.4 or higher           23-Dec-05

Platform: Mac OS X

Problem Details:
OS Version: 10.4 or higher
Product Version: IBM XLC
Date: 23-Dec-05

Q. I receive the following error when I try to compile:

/usr/bin/ld: can't open: NULL (No such file or directory, errno = 2)

A. To resolve the issue with xlc, locate and comment out the line 
	crtbegin = NULL from the vac.cfg configuration file located in 
	the following directory:

/etc/opt/ibmcmp/vac/6.0

<snipet>
xlCcopt = -qlanglvl=extc89,-qcpluscmt,-qkeyword=inline,-qnotrigraph,-qansialias
crt = /usr/lib/crt1.o
gcrt = /usr/lib/gcrt1.o
mcrt = /usr/lib/crt1.o
crt2 = /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/crt2.o
crtbegin = NULL
bundle1 = /usr/lib/bundle1.o
libdirs = -L/opt/ibmcmp/xlsmp/1.4/lib,-L/opt/ibmcmp/vac/6.0/lib,- L/opt/ibmcmp/vacpp/6.0/lib
smplibraries = -lxlsmp
libraries = -lxlopt,-lxl

The line now should look like this after the change:

#crtbegin = NULL

index