Re: ld: fatal: file .libs/libglib-2.0.exp: unknown file type
On 12/ 2/10 02:37 AM, Ralf Wildenhues wrote: Hello Laviticus, * Laviticus Stone wrote on Thu, Dec 02, 2010 at 01:45:04AM CET: Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc. Libtool creates the following command and results: gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o [...] .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl -lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0 -Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o .libs/libglib-2.0.so.0.2600.1 ld: fatal: file .libs/libglib-2.0.exp: unknown file type ld: fatal: file processing errors. No output written to .libs/libglib-2.0.so.0.2600.1 collect2: ld returned 1 exit status Somehow libtool seems to think you're using GNU ld but apparently you're not. Please send output of ./libtool --version ./libtool --config Thanks, Ralf Ah yes, netbsd's pkgsrc is configured for LD="ld" I imagine it was finding gnu lsd, which was in the search path, and assumign gnu ld, yet the gcc command it was issuing was using the solaris ld in /usr/ccs/bin. ps up to date pkgsrc is ltmain.sh (GNU libtool) 2.2.6b ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: ld: fatal: file .libs/libglib-2.0.exp: unknown file type
On 12/ 2/10 02:37 AM, Ralf Wildenhues wrote: Hello Laviticus, * Laviticus Stone wrote on Thu, Dec 02, 2010 at 01:45:04AM CET: Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc. Libtool creates the following command and results: gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o [...] .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl -lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0 -Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o .libs/libglib-2.0.so.0.2600.1 ld: fatal: file .libs/libglib-2.0.exp: unknown file type ld: fatal: file processing errors. No output written to .libs/libglib-2.0.so.0.2600.1 collect2: ld returned 1 exit status Somehow libtool seems to think you're using GNU ld but apparently you're not. Please send output of ./libtool --version ./libtool --config Thanks, Ralf Ah I also see that libtool is configured to use the same ld: # The linker used to build libraries. LD="/usr/ccs/bin/ld" Sorry I perhaps have confused you as much as myself. I believe I had 3 different libtool installed. One from pkgsrc, one from opencsw, and one from solaris. Which pkgsrc uses i'm not quite sure. I imagine the first in the search path, although it compiled itself one also. Thanks for your time. njm ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: ld: fatal: file .libs/libglib-2.0.exp: unknown file type
On 12/ 2/10 02:37 AM, Ralf Wildenhues wrote: Hello Laviticus, * Laviticus Stone wrote on Thu, Dec 02, 2010 at 01:45:04AM CET: Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc. Libtool creates the following command and results: gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o [...] .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl -lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0 -Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o .libs/libglib-2.0.so.0.2600.1 ld: fatal: file .libs/libglib-2.0.exp: unknown file type ld: fatal: file processing errors. No output written to .libs/libglib-2.0.so.0.2600.1 collect2: ld returned 1 exit status Somehow libtool seems to think you're using GNU ld but apparently you're not. Please send output of ./libtool --version ./libtool --config Thanks, Ralf Hello, the gcc3 I was using from solaris repositories was using /usr/ccs/bin/ld which is solaris ld (confirmed with gcc -print-prog-name=ld). I changed to gcc4 from blastwave repositories which that same command simply responds with 'ld', so it uses the search path, so i created /opt/compat/bin and copied gnu ld to /opt/compat/bin/ld and the problem has been fixed since. [ r...@vds-cloud ]: /usr/bin/libtool --version ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) Thanks, njm ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: ld: fatal: file .libs/libglib-2.0.exp: unknown file type
Hello Laviticus, * Laviticus Stone wrote on Thu, Dec 02, 2010 at 01:45:04AM CET: > Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc. > Libtool creates the following command and results: > > gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o [...] > .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive > libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath > -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath > -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib > -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib > /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so > /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so > /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl > -lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0 > -Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o > .libs/libglib-2.0.so.0.2600.1 > ld: fatal: file .libs/libglib-2.0.exp: unknown file type > ld: fatal: file processing errors. No output written to > .libs/libglib-2.0.so.0.2600.1 > collect2: ld returned 1 exit status Somehow libtool seems to think you're using GNU ld but apparently you're not. Please send output of ./libtool --version ./libtool --config Thanks, Ralf ___ http://lists.gnu.org/mailman/listinfo/libtool
ld: fatal: file .libs/libglib-2.0.exp: unknown file type
Hi, i'm trying to compile glib-2.0 on Solaris 11 from netbsd pkgsrc. Libtool creates the following command and results: gcc -shared .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o .libs/gbacktrace.o .libs/gbase64.o .libs/gbitlock.o .libs/gbookmarkfile.o .libs/gbuffer.o .libs/gcache.o .libs/gchecksum.o .libs/gcompletion.o .libs/gconvert.o .libs/gdataset.o .libs/gdate.o .libs/gdatetime.o .libs/gdir.o .libs/gerror.o .libs/gfileutils.o .libs/ghash.o .libs/ghook.o .libs/ghostutils.o .libs/giochannel.o .libs/gkeyfile.o .libs/glist.o .libs/gmain.o .libs/gmappedfile.o .libs/gmarkup.o .libs/gmem.o .libs/gmessages.o .libs/gnode.o .libs/goption.o .libs/gpattern.o .libs/gpoll.o .libs/gprimes.o .libs/gqsort.o .libs/gqueue.o .libs/grel.o .libs/grand.o .libs/gregex.o .libs/gscanner.o .libs/gsequence.o .libs/gshell.o .libs/gslice.o .libs/gslist.o .libs/gstdio.o .libs/gstrfuncs.o .libs/gstring.o .libs/gtestutils.o .libs/gthread.o .libs/gthreadpool.o .libs/gtimer.o .libs/gtimezone.o .libs/gtree.o .libs/guniprop.o .libs/gutf8.o .libs/gunibreak.o .libs/gunicollate.o .libs/gunidecomp.o .libs/gurifuncs.o .libs/gutils.o .libs/gvariant.o .libs/gvariant-core.o .libs/gvariant-parser.o .libs/gvariant-serialiser.o .libs/gvarianttypeinfo.o .libs/gvarianttype.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o -Wl,--whole-archive libcharset/.libs/libcharset.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -Wl,-rpath -Wl,/usr/pkgsrc/devel/glib2/work/.buildlink/lib -L/usr/pkgsrc/devel/glib2/work/.buildlink/lib /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libpcre.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.so /usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.so -lc -lnsl -lsocket -lc -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libglib-2.0.so.0 -Wl,-retain-symbols-file -Wl,.libs/libglib-2.0.exp -o .libs/libglib-2.0.so.0.2600.1 ld: fatal: file .libs/libglib-2.0.exp: unknown file type ld: fatal: file processing errors. No output written to .libs/libglib-2.0.so.0.2600.1 collect2: ld returned 1 exit status [ r...@vds-cloud ]: file .libs/libglib-2.0.exp .libs/libglib-2.0.exp: English text [ r...@vds-cloud ]: head -5 .libs/libglib-2.0.exp g_access g_allocator_free g_allocator_new g_array_append_vals g_array_free Any direction is appreciated. Thanks ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Enhanced OS/2 port
Hello, * KO Myung-Hun wrote on Wed, Dec 01, 2010 at 09:24:56AM CET: > > I've enhanced and fixed libtool 2.4 for OS/2. > > > > Review, please. > Ping ? Thanks for your patch, and sorry for the delay. I'm very busy ATM but I will try to review it by next week. It needs some more work. Also, patches should generally be sent to the libtool-patches list. Thanks, Ralf ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Enhanced OS/2 port
KO Myung-Hun wrote: > Hi/2. > > I've enhanced and fixed libtool 2.4 for OS/2. > > Review, please. > > Fixed parts. > 1. if PATH_SEPARATOR is ';', then make fails. > 2. Consider ';' as a path separator as well as ':' when finding an > absolute path. > 3. Workaround for a pdksh v5.2.14-bin-2 for OS/2. > 4. If .la is a dependency, it is not processed. > 5. OS/2 uses a different method from Windows to load a DLL. > > Enhanced parts. > 1. Do not relink when installing a DLL. > 2. Added -shortname option to specify a short name for a DLL. > 3. Create import libraries instead of links. > 4. Pass OS/2-specific compiler options such as -Zxxx. > 5. Set lt_cv_sys_max_cmd_len to -1. > 6. Limit a length of a basename of DLL up to 8 characters. > 7. Set lt_cv_deplibs_check_method to pass_all. > 8. Set with_gnu_ld to yes. > 9. Set lt_prog_compiler_static to -Bstatic. > Ping ? -- KO Myung-Hun Using Mozilla SeaMonkey 2.0.9 Under OS/2 Warp 4 for Korean with FixPak #15 On AMD ThunderBird 1GHz with 512 MB RAM Korean OS/2 User Community : http://www.ecomstation.co.kr ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Enhanced OS/2 port
KO Myung-Hun wrote: > Hi/2. > > I've enhanced and fixed libtool 2.4 for OS/2. > > Review, please. > > Fixed parts. > 1. if PATH_SEPARATOR is ';', then make fails. > 2. Consider ';' as a path separator as well as ':' when finding an > absolute path. > 3. Workaround for a pdksh v5.2.14-bin-2 for OS/2. > 4. If .la is a dependency, it is not processed. > 5. OS/2 uses a different method from Windows to load a DLL. > > Enhanced parts. > 1. Do not relink when installing a DLL. > 2. Added -shortname option to specify a short name for a DLL. > 3. Create import libraries instead of links. > 4. Pass OS/2-specific compiler options such as -Zxxx. > 5. Set lt_cv_sys_max_cmd_len to -1. > 6. Limit a length of a basename of DLL up to 8 characters. > 7. Set lt_cv_deplibs_check_method to pass_all. > 8. Set with_gnu_ld to yes. > 9. Set lt_prog_compiler_static to -Bstatic. Ping ? -- KO Myung-Hun Using Mozilla SeaMonkey 2.0.9 Under OS/2 Warp 4 for Korean with FixPak #15 On AMD ThunderBird 1GHz with 512 MB RAM Korean OS/2 User Community : http://www.ecomstation.co.kr ___ http://lists.gnu.org/mailman/listinfo/libtool