Hi again!

I couldn't sleep, so I decided to dig into this "smartcam won't compile
on Ubuntu 10.10 64 bit" issue a bit deeper and searched the web. Maybe
you'll find the thing I found as interesting as I do - however I'm not
quite sure, whether it's really about the same problem that I have on my
machine.

The problem I have is:

  /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
  (.text+0x12): undefined reference to `__libc_csu_fini'
  /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
  (.text+0x19): undefined reference to `__libc_csu_init'
  collect2: ld returned 1 exit status

The information I found is:

  (from May 2006)
    
http://www.archivum.info/gnu.gcc.help/2006-05/00071/Re-__libc_csu_fini-and-__libc_csu_init.html
  (from Oct 2010)
    
http://www.linuxquestions.org/questions/linux-general-1/undefined-reference-to-%60__libc_csu_fini-849247/
  (from Sep 2011)
    https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/837745

Please see the following tests I did and maybe you can find this useful
to help us:

condor@herkules:~$ uname -a

Linux herkules 2.6.35-31-generic # 63-Ubuntu SMP Mon Nov 28 19:29:10 UTC
2011 x86_64 GNU/Linux

condor@herkules:~/Install/smartcam-1.4.0$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.40.0... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTHREAD... yes
checking for GTK... yes
checking for DBUS... yes
checking for GCONF... yes
checking for hci_open_dev in -lbluetooth... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating data/smartcam.desktop.in
config.status: creating data/icons/Makefile
config.status: creating data/icons/16x16/Makefile
config.status: creating data/icons/22x22/Makefile
config.status: creating data/icons/24x24/Makefile
config.status: creating data/icons/32x32/Makefile
config.status: creating data/icons/48x48/Makefile
config.status: creating data/phone_installs/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po/stamp-it commands

condor@herkules:~/Install/smartcam-1.4.0$ make

make  all-recursive
make[1]: Betrete Verzeichnis '/home/condor/Install/smartcam-1.4.0'
Making all in src
make[2]: Betrete Verzeichnis '/home/condor/Install/smartcam-1.4.0/src'
dbus-binding-tool --prefix=smartcam_dbus --mode=glib-server smartcam-dbus.xml> 
smartcam-dbus.h
make  all-am
make[3]: Betrete Verzeichnis '/home/condor/Install/smartcam-1.4.0/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-smartcam.o -MD -MP -MF .deps/smartcam-smartcam.Tpo -c -o 
smartcam-smartcam.o `test -f 'smartcam.cpp' || echo './'`smartcam.cpp
mv -f .deps/smartcam-smartcam.Tpo .deps/smartcam-smartcam.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-SmartEngine.o -MD -MP -MF .deps/smartcam-SmartEngine.Tpo -c 
-o smartcam-SmartEngine.o `test -f 'SmartEngine.cpp' || echo 
'./'`SmartEngine.cpp
mv -f .deps/smartcam-SmartEngine.Tpo .deps/smartcam-SmartEngine.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-CommHandler.o -MD -MP -MF .deps/smartcam-CommHandler.Tpo -c 
-o smartcam-CommHandler.o `test -f 'CommHandler.cpp' || echo 
'./'`CommHandler.cpp
CommHandler.cpp: In member function ‘void 
CCommHandler::RegisterBtService(uint8_t)’:
CommHandler.cpp:156: warning: taking address of temporary
CommHandler.cpp:156: warning: taking address of temporary
CommHandler.cpp: In member function ‘int CCommHandler::StartBtServer()’:
CommHandler.cpp:201: warning: taking address of temporary
mv -f .deps/smartcam-CommHandler.Tpo .deps/smartcam-CommHandler.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-UIHandler.o -MD -MP -MF .deps/smartcam-UIHandler.Tpo -c -o 
smartcam-UIHandler.o `test -f 'UIHandler.cpp' || echo './'`UIHandler.cpp
mv -f .deps/smartcam-UIHandler.Tpo .deps/smartcam-UIHandler.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-UserSettings.o -MD -MP -MF .deps/smartcam-UserSettings.Tpo 
-c -o smartcam-UserSettings.o `test -f 'UserSettings.cpp' || echo 
'./'`UserSettings.cpp
mv -f .deps/smartcam-UserSettings.Tpo .deps/smartcam-UserSettings.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" 
-DDATADIR=\"/usr/local/share\"  -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2 -MT smartcam-JpegHandler.o -MD -MP -MF .deps/smartcam-JpegHandler.Tpo -c 
-o smartcam-JpegHandler.o `test -f 'JpegHandler.cpp' || echo 
'./'`JpegHandler.cpp
mv -f .deps/smartcam-JpegHandler.Tpo .deps/smartcam-JpegHandler.Po
g++ -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-g -O2   -o smartcam smartcam-smartcam.o smartcam-SmartEngine.o 
smartcam-CommHandler.o smartcam-UIHandler.o smartcam-UserSettings.o 
smartcam-JpegHandler.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 
-lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 
-lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 
-lrt -lglib-2.0   -pthread -lgthread-2.0 -lrt -lglib-2.0   -pthread -L/lib 
-ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0   
-lgconf-2 -lglib-2.0   -lbluetooth -ljpeg 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
make[3]: *** [smartcam] Fehler 1
make[3]: Verlasse Verzeichnis '/home/condor/Install/smartcam-1.4.0/src'
make[2]: *** [all] Fehler 2
make[2]: Verlasse Verzeichnis '/home/condor/Install/smartcam-1.4.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/condor/Install/smartcam-1.4.0'
make: *** [all] Fehler 2



condor@herkules:~/Temp$ echo 'int main() { return 0; }' | gcc -xc -
condor@herkules:~/Temp$ ll a.out
  -rwxr-xr-x 1 condor condor 8327 2011-12-24 07:03 a.out*

condor@herkules:~$ ll /lib64
  lrwxrwxrwx 1 root root 4 2010-05-04 20:01 /lib64 -> /lib/

condor@herkules:~$ ll /usr/lib64/libc.so 
  -rw-r--r-- 1 root root 247 2011-01-21 22:44 /usr/lib64/libc.so

condor@herkules:~$ cat /usr/lib64/libc.so 
  /* GNU ld script
     Use the shared library, but some functions are only in
     the static library, so try that secondarily.  */
  OUTPUT_FORMAT(elf64-x86-64)
  GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( 
/lib/ld-linux-x86-64.so.2 ) )

condor@herkules:~$ ll /lib/libc.so.6
  lrwxrwxrwx 1 root root 14 2011-02-03 01:32 /lib/libc.so.6 -> libc-2.12.1.so*

condor@herkules:~$ ll /usr/lib/libc_nonshared.a
  -rw-r--r-- 1 root root 22806 2011-01-21 22:46 /usr/lib/libc_nonshared.a

condor@herkules:~$ ll /lib/ld-linux-x86-64.so.2
  lrwxrwxrwx 1 root root 12 2011-02-03 01:32 /lib/ld-linux-x86-64.so.2 -> 
ld-2.12.1.so*

condor@herkules:~$ ll /lib/ld*
  -rwxr-xr-x 1 root root 141072 2011-01-21 22:46 /lib/ld-2.12.1.so*
  lrwxrwxrwx 1 root root     20 2011-02-03 01:32 /lib/ld-linux.so.2 -> 
/lib32/ld-linux.so.2*
  lrwxrwxrwx 1 root root     12 2011-02-03 01:32 /lib/ld-linux-x86-64.so.2 -> 
ld-2.12.1.so*


I really would like the problem to be solved without upgrading my OS -
I'm just not sure which way to go now, because if it is true, that there
is a bug regarding "lsb" on Ubuntu 64 Bit, it would be "fix released"
only in "lsb 4.0-0ubuntu16 oneiric". And I've got:

condor@herkules:~/Temp$ sudo apt-cache policy lsb
[sudo] password for condor: 
lsb:
  Installiert: (keine)
  Kandidat:    4.0-0ubuntu8
  Versionstabelle:
     4.0-0ubuntu8 0
        500 http://de.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages

… no "lsb" installed and only "lsb 4.0-0ubuntu8" available.
Can you give me a tip on how to proceed easily, because I'm not an expert.

Thank you very much!

Dennis

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/259371

Title:
  [needs-packaging] Smartcam

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/259371/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to