Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] plz respond and help

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] plz respond and help


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] plz respond and help
  • Date: Sat, 17 Oct 2009 11:11:12 +0200

Hi "lets go ok",

> m a new user of CGAL2.4. M using it because i have downloaded obstacle
> mobility model for ns2 which requires CGAL2.4 installed. my system is
> redhat server 5.2 on which i installed gcc-2.95.3 compiler. however when i
> try to build CGAL libraries in interactive mode i got this error for shared
> libraries. i dont know what should i do. plz help me.

Please understand that CGAL 2.4 is more than 7 years old and there is
basically no support at all for this old version.

> Error printed is:
>
[...]
> /usr/local/bin/g++ -Xlinker -shared -o ''libCGAL.so \
> `ls *.o | awk '{for (i=1; i<=NF;++i){printf "";print $i}}'`\
>
> /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> (.text+0x2b): undefined reference to `__init_array_end'
> /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> (.text+0x34): undefined reference to `__init_array_start'
> /usr/bin/ld: libCGAL.so: hidden symbol `__preinit_array_start' isn't defined
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make: *** [lib] Error 1

Try replacing "-Xlinker -shared" by "-shared" in all places in
install_cgal. At least that is the right way with later versions of gcc.
I don't know if that works with 2.95.3.

And chances are higher that you get some help if you configure your
mailer to display a proper name instead of "lets go ok" in the From: line.

Joachim



Archive powered by MHonArc 2.6.16.

Top of Page