From: Tim Hunter Date: 2003-05-26T06:16:01+09:00 Subject: Problem compiling extension on Solaris I have an user who is trying to build RMagick on Solaris with Ruby 1.6.8. The Makefile is generated by extconf.rb. The link fails with these messages: gcc -V 3.3 -Wl,-G -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -L/usr/local/lib -o RMagick.so rmfill.o rmilist.o rmimage.o rminfo.o rmmain.o rmutil.o -L. -lruby -lc -ldl -lcrypt -lm -lGraphicsMagick -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -ldpstk -ldps -lXext -lSM -lICE -lX11 -lsocket -lnsl -lbz2 -lxml2 -lz -lpthread -lm ld: fatal: option -dn and -P are incompatible ld: fatal: option -dn and -G are incompatible ld: fatal: Flags processing errors collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `RMagick.so' In order to successfully build RMagick, he used this command: % gcc -V 3.3 -shared -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -L/usr/local/lib -L"/usr/local/lib" -o RMagick.so rmfill.o rmilist.o rmimage.o rminfo.o rmmain.o rmutil.o �-ldl -lcrypt -lm �-lGraphicsMagick -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -ldpstk -ldps -lXext -lSM -lICE -lX11 -lsocket -lnsl -lbz2 -lxml2 -lz -lpthread -lm -lc What are the -dn, -P, and -G flags used for and why are they being added to the gcc command? Is there a bug in extconf.rb on Solaris? I can provide the extconf.rb script on request.