OK, I removed that symbol and then it got further, but then blew up with the following: gcc -g -O2 -o getdefs -static getdefs.o opts.o ../autoopts/.libs/libopts.a /usr/bin/ld: Error: Undefined: snprintf Obviously I'm doing something badly wrong, but it's not at all clear what.