Hi list,

I have a long running problem with the g++ linker and libtool in general.
When running configure and compiling mpeg2dec, it refuses partout to build
with shared libs.
I use the following command when running ./configure:

sh-3.1# ./configure CC=ppcnf-linux-gcc CXX=ppcnf-linux-g++ --enable-shared
--host=ppc

Note that I am cross compiling for PowerPC architecture.

The resulting screen is as follows:

sh-3.1# ./configure CC=ppcnf-linux-gcc CXX=ppcnf-linux-g++ --enable-shared
--host=ppc
configure: WARNING: If you wanted to set the --build type, don't use
--host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ppc-strip... ppcnf-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-none
checking for ppc-gcc... ppcnf-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ppcnf-linux-gcc accepts -g... yes
checking for ppcnf-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of ppcnf-linux-gcc... gcc3
checking how to run the C preprocessor... ppcnf-linux-gcc -E
checking for egrep... grep -E
checking whether ppcnf-linux-gcc needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking altivec.h usability... no
checking altivec.h presence... no
checking for altivec.h... no
checking if ppcnf-linux-gcc supports  -Wall -g -O2 flags... yes
checking if ppcnf-linux-gcc supports  -Wall -g  -O3 flags... yes
checking if ppcnf-linux-gcc supports  -Wall -g  -O3 -fomit-frame-pointer
flags... yes
checking if ppcnf-linux-gcc supports  -Wall -g  -O3 -fomit-frame-pointer
-fno-common  flags... yes
checking for altivec.h... (cached) no
checking if ppcnf-linux-gcc supports  -Wall -g  -O3 -fomit-frame-pointer
-fno-common  -faltivec  flags... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by ppcnf-linux-gcc... ppcnf-linux-ld
checking if the linker (ppcnf-linux-ld) is GNU ld... yes
checking for ppcnf-linux-ld option to reload object files... -r
checking for BSD-compatible nm... ppcnf-linux-nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... unknown
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ppc-g++... ppcnf-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether ppcnf-linux-g++ accepts -g... yes
checking dependency style of ppcnf-linux-g++... gcc3
checking how to run the C++ preprocessor... ppcnf-linux-g++ -E
checking for ppc-g77... no
checking for ppc-f77... no
checking for ppc-xlf... no
checking for ppc-frt... no
checking for ppc-pgf77... no
checking for ppc-fort77... no
checking for ppc-fl32... no
checking for ppc-af77... no
checking for ppc-f90... no
checking for ppc-xlf90... no
checking for ppc-pgf90... no
checking for ppc-epcf90... no
checking for ppc-f95... no
checking for ppc-fort... no
checking for ppc-xlf95... no
checking for ppc-ifc... no
checking for ppc-efc... no
checking for ppc-pgf95... no
checking for ppc-lf95... no
checking for ppc-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse ppcnf-linux-nm output from ppcnf-linux-gcc
object... ok
checking for objdir... .libs
checking for ppc-ar... ppcnf-linux-ar
checking for ppc-ranlib... ppcnf-linux-ranlib
checking for ppc-strip... (cached) ppcnf-linux-strip
checking if ppcnf-linux-gcc static flag  works... yes
checking if ppcnf-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for ppcnf-linux-gcc option to produce PIC... -fPIC
checking if ppcnf-linux-gcc PIC flag -fPIC works... yes
checking if ppcnf-linux-gcc supports -c -o file.o... yes
checking whether the ppcnf-linux-gcc linker (ppcnf-linux-ld) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by ppcnf-linux-g++... ppcnf-linux-ld
checking if the linker (ppcnf-linux-ld) is GNU ld... yes
checking whether the ppcnf-linux-g++ linker (ppcnf-linux-ld) supports
shared libraries... no
checking for ppcnf-linux-g++ option to produce PIC... -fPIC
checking if ppcnf-linux-g++ PIC flag -fPIC works... yes
checking if ppcnf-linux-g++ supports -c -o file.o... yes
checking whether the ppcnf-linux-g++ linker (ppcnf-linux-ld) supports
shared libraries... no
checking dynamic linker characteristics... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether time.h and sys/time.h may both be included... yes
checking for struct timeval... yes
checking for inttypes.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for always_inline... yes
checking for restrict... __restrict__
checking for __builtin_expect... yes
checking whether byte ordering is bigendian... yes
checking for working volatile... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for gettimeofday... yes
checking for ftime... yes
checking if libtool supports -prefer-non-pic flag... yes
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XShmCreateImage in -lXext... no
checking ddraw.h usability... no
checking ddraw.h presence... no
checking for ddraw.h... no
checking for sdl-config... no
checking __attribute__ ((aligned ())) support... 64
configure: creating ./config.status
config.status: creating Makefile
config.status: creating autotools/Makefile
config.status: creating include/Makefile
config.status: creating test/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating libmpeg2/Makefile
config.status: creating libmpeg2/convert/Makefile
config.status: creating libvo/Makefile
config.status: creating vc++/Makefile
config.status: creating libmpeg2/libmpeg2.pc
config.status: creating libmpeg2/convert/libmpeg2convert.pc
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
sh-3.1#

While it compiles afterwards successfully no .so are created and you can
note in the above that:

checking if libtool supports shared libraries... no
checking whether the ppcnf-linux-g++ linker (ppcnf-linux-ld) supports
shared libraries... no

However my cross-compiler can DEFINATLY build shared libs, I have tested
that. Am I using maybe the wrong switches, could somebody shed some light
on this?

Any help greatly appreciated!

Regards,

Jason


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel

Reply via email to