bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fwd: 'ln -s getopt.o getopt.o'


From: Federico Montesino Pouzols
Subject: Re: fwd: 'ln -s getopt.o getopt.o'
Date: Mon, 12 Aug 2002 21:13:02 +0200 (CEST)

   Hi, I think there is a problem in m4/ost_getopt.m4 that shows
up when you are on a posix system without getopt_long,

   The fastest way to get cc++ to compile is to change the line
in src/Makefile that says:

libccext2_la_LIBADD =  getopt.o getopt1.c

to

libccext2_la_LIBADD =  getopt.c getopt1.c
                              ^

   Then, remove the src/getopt.o and type make. I have checked this
trick on a Solaris 8 system. Let us know if there is any other problem.

   A real solution for this will be discussed in other mail on
this same list and will be incorporated for future releases.

        Bye!


> from address@hidden:
>
> Hi,
>
> I am trying to build CommonC++ "2" on Soalris 2.8 with
> GCC version 2.95.3 20010315 (release).
>
> I got an error message at the end of 'make' as below,
> please advise what to do. Thanks -- Yao
>
> c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp
> -fPIC -DPIC -o .libs/ftp.lo
>
> c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I../src -DCCXX_EXPORT_LIBRARY -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c ftp.cpp
> -o ftp.o >/dev/null 2>&1
>
> mv -f .libs/ftp.lo ftp.lo
> /bin/sh ../libtool --mode=link c++  -I../src
> -DCCXX_EXPORT_LIBRARY  -I/usr/local/include
> -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -version-info 0:6 -release 0.99 -o libccext2.la -rpath
> /usr/local/lib  buffer.lo fifo.lo pipe.lo numbers.lo
> cmdoptns.lo  url.lo xml.lo persist.lo engine.lo
> digest.lo date.lo groups.lo md5.lo  unix.lo ftp.lo
> getopt.o getopt1.c -lposix4 -lpthread
> -L/usr/local/lib -lsocket
>
> *** Warning: Linking the shared library libccext2.la
> against the non-libtool
> *** objects  getopt.o is not portable!
> rm -fr .libs/libccext2.la .libs/libccext2.*
> .libs/libccext2-0.99.*
> (cd . && ln -s getopt.o getopt.o)
> /usr/ccs/bin/ld -G -h libccext2-0.99.so.0 -o
> .libs/libccext2-0.99.so.0.0.6  buffer.lo fifo.lo
> pipe.lo numbers.lo cmdoptns.lo url.lo xml.lo
> persist.lo engine.lo digest.lo date.lo groups.lo
> md5.lo unix.lo ftp.lo  getopt.o  -lposix4 -lpthread
> -L/usr/local/lib -lsocket -lc
>
> ld: fatal: file getopt.o: cannot open file: Number of
> symbolic links encountered during path name traversal
> exceeds MAXSYMLINKS
>
> ld: fatal: File processing errors. No output written
> to .libs/libccext2-0.99.so.0.0.6
> *** Error code 1
> make: Fatal error: Command failed for target
> `libccext2.la'
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp







reply via email to

[Prev in Thread] Current Thread [Next in Thread]