Number: 1742
Title: multiple definition of `atexit'
Submitter: Rob
Date: Wed Aug 12 13:03:16 2009
Subsys: Build/Installation
Version: 2.24.0 and 2.25.20090812.1355
System: x86-Linux-Tinycore v2.2
Severity: minor
Problem:
Get this error when running make:

/bin/sh ../../libtool --tag=CC   --mode=link gcc  -march=i486 -mtune=i686 -Os -pipe -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math  -L/usr/local/lib -o gvpr actions.o compile.o gvpr.o gprstate.o parse.o queue.o ../../lib/vmalloc/libvmalloc_C.la ../../lib/sfio/libsfio_C.la ../../lib/ingraphs/libingraphs_C.la ../../lib/expr/libexpr_C.la ../../lib/cgraph/libcgraph.la -lm
gcc -march=i486 -mtune=i686 -Os -pipe -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -o .libs/gvpr actions.o compile.o gvpr.o gprstate.o parse.o queue.o  -L/usr/local/lib ../../lib/vmalloc/.libs/libvmalloc_C.a ../../lib/sfio/.libs/libsfio_C.a ../../lib/ingraphs/.libs/libingraphs_C.a ../../lib/expr/.libs/libexpr_C.a ../../lib/cgraph/.libs/libcgraph.so /mnt/hda3/tmp/graphviz/graphviz-2.24.0/lib/cdt/.libs/libcdt.so -lm
./../lib/sfio/.libs/libsfio_C.a(sfexit.o): In function `atexit':
sfexit.c:(.text+0x0): multiple definition of `atexit'
./../lib/vmalloc/.libs/libvmalloc_C.a(vmexit.o):vmexit.c:(.text+0x2c): first defined here
./../lib/sfio/.libs/libsfio_C.a(sfexit.o): In function `exit':
sfexit.c:(.text+0x119): multiple definition of `exit'
./../lib/vmalloc/.libs/libvmalloc_C.a(vmexit.o):vmexit.c:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [gvpr] Error 1

This error is present in 2.24.0 and 2.25.20090812.1355.
Output file: b1742.txt
Comments:
[ellson]

I'm not seeing this when building on other systems. Do you have some local builtin configure flags that might be affecting the build? I see this in your config.log:


Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.2/configure --prefix=/usr/local --libexecdir=/usr/local/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix

Owner: *
Status: *