From: Benjamin R. <ra...@be...> - 2005-04-25 17:57:50
|
I get the following when building Qt: ---(snip!)--- c++ -fno-exceptions -bundle -o libqsqlite.so .obj/smain.o .obj/qsql_sqlite.o .obj/attach.o .obj/auth.o .obj/btree.o .obj/btree_rb.o .obj/build.o .obj/copy.o .obj/date.o .obj/delete.o .obj/expr.o .obj/func.o .obj/hash.o .obj/insert.o .obj/main.o .obj/opcodes.o .obj/os.o .obj/pager.o .obj/parse.o .obj/pragma.o .obj/printf.o .obj/random.o .obj/select.o .obj/shell.o .obj/table.o .obj/tokenize.o .obj/trigger.o .obj/update.o .obj/util.o .obj/vacuum.o .obj/vdbe.o .obj/vdbeaux.o .obj/where.o -L/sw/lib/freetype219/lib -L/sw/build/qt3-3.3.4-22/qt-x11-free-3.3.4/lib -L/sw/lib -L/usr/X11R6/lib -L/sw/lib -L/sw/build/qt3-3.3.4-22/qt-x11-free-3.3.4/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lresolv -lqt-mt -lz -lGLU -lGL -lXmu -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl ld: warning multiple definitions of symbol _glPointParameteri /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glPointParameteri /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteri ld: warning multiple definitions of symbol _glPointParameteriv /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glPointParameteriv /usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteriv ld: Undefined symbols: ___gcc_qadd ___gcc_qmul ___gcc_qsub ___gcc_qdiv make[4]: *** [../../../sqldrivers/libqsqlite.so] Error 1 ---(snip!)--- The symbols ___gcc_qadd and friends are coming from a .o file that was c, not c++, and thus was generated with gcc4. Those symbols exist only 4.0's libgcc, not in 3.3's. It looks like the path-prefix stuff will need to override gcc, not just g++ or we need to figure out how to keep such 4.0-only symbols from sneaking in. |