Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#284 Failure in detection of GC_get_start_callback

Stable_release
closed
nobody
None
1
2014-02-27
2014-02-26
Anonymous
No

Failure in detection of GC_get_start_callback

Building ECL master on Ubuntu 12.04 LTS, I get this error:

make[2]: Leaving directory `/home/tunes/src/ecl/build/c'
if [ -f CROSS-COMPILER ]; then \
                touch ecl_min; \
        else \
                gcc  -o ecl_min cinit.o c/all_symbols.o -L./
libeclmin.a -leclatomic  -lgmp -lgc -lffi -lpthread
 -ldl  -lm ;\
        fi
libeclmin.a(alloc_2.o): In function `init_alloc':
/home/tunes/src/ecl/src/c/alloc_2.d:1100: undefined reference to
`GC_get_start_callback'
/home/tunes/src/ecl/src/c/alloc_2.d:1101: undefined reference to
`GC_set_start_callback'
collect2: ld returned 1 exit status
make[1]: *** [ecl_min] Error 1
make[1]: Leaving directory `/home/tunes/src/ecl/build'
make: *** [all] Error 2

Even though the configure script checks for presence of this symbol
and doesn't complain after finding it doesn't exist.

Failure with the latest commit 3ad584ee104caf109737490278d32ef86ec818c4.

Happily, Daniel Herring has a working patch — see attachment.

1 Attachments

Discussion

  • P.Marek
    P.Marek
    2014-02-27

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,23 +2,23 @@
    
     Building ECL master on Ubuntu 12.04 LTS, I get this error:
    
    -make[2]: Leaving directory `/home/tunes/src/ecl/build/c'
    -if [ -f CROSS-COMPILER ]; then \
    -                touch ecl_min; \
    -        else \
    -                gcc  -o ecl_min cinit.o c/all_symbols.o -L./
    -libeclmin.a -leclatomic  -lgmp -lgc -lffi -lpthread
    - -ldl  -lm ;\
    -        fi
    -libeclmin.a(alloc_2.o): In function `init_alloc':
    -/home/tunes/src/ecl/src/c/alloc_2.d:1100: undefined reference to
    -`GC_get_start_callback'
    -/home/tunes/src/ecl/src/c/alloc_2.d:1101: undefined reference to
    -`GC_set_start_callback'
    -collect2: ld returned 1 exit status
    -make[1]: *** [ecl_min] Error 1
    -make[1]: Leaving directory `/home/tunes/src/ecl/build'
    -make: *** [all] Error 2
    +    make[2]: Leaving directory `/home/tunes/src/ecl/build/c'
    +    if [ -f CROSS-COMPILER ]; then \
    +                    touch ecl_min; \
    +            else \
    +                    gcc  -o ecl_min cinit.o c/all_symbols.o -L./
    +    libeclmin.a -leclatomic  -lgmp -lgc -lffi -lpthread
    +     -ldl  -lm ;\
    +            fi
    +    libeclmin.a(alloc_2.o): In function `init_alloc':
    +    /home/tunes/src/ecl/src/c/alloc_2.d:1100: undefined reference to
    +    `GC_get_start_callback'
    +    /home/tunes/src/ecl/src/c/alloc_2.d:1101: undefined reference to
    +    `GC_set_start_callback'
    +    collect2: ld returned 1 exit status
    +    make[1]: *** [ecl_min] Error 1
    +    make[1]: Leaving directory `/home/tunes/src/ecl/build'
    +    make: *** [all] Error 2
    
     Even though the configure script checks for presence of this symbol
     and doesn't complain after finding it doesn't exist.
    
     
  • P.Marek
    P.Marek
    2014-02-27

    done, 285eb31812bc7c2c48a8b1bbe14e01084ba92b05

     


Anonymous


Cancel   Add attachments