Bug 111084

Summary: build failure, gcc-4.0.1, -fvisibility
Product: [Applications] digikam Reporter: Rex Dieter <rdieter>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.7.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: config.log for gcc4 build
kdemacros.h from Debian kdelibs4-dev 3.4.2-1

Description Rex Dieter 2005-08-19 15:26:20 UTC
Version:           0.7.4 (using KDE KDE 3.4.2)
Installed from:    Fedora RPMs
Compiler:          gcc version 4.0.1 20050720 (Red Hat 4.0.1-4) 
OS:                Linux

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -DNDEBUG -DNO_DEBUG -O2 -O2 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i38
6 -mtune=pentium4 -fasynchronous-unwind-tables -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE    -o digikam  -L/usr/lib -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib    -L/usr/lib -lImlib2 -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl -lm main.o -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -lkdecore -lkdeui  -lkio -lkparts libdigikam.la 
main.o(.text+0x791): In function `main':
main.cpp: undefined reference to `DigikamFirstRun::DigikamFirstRun(KConfig*, QWidget*, char const*, bool, unsigned int)'
main.o(.text+0x8f5):main.cpp: undefined reference to `DigikamApp::DigikamApp(bool)'
collect2: ld returned 1 exit status
make[5]: *** [digikam] Error 1
make[5]: Leaving directory `/usr/local/tmp/BUILD/digikam-0.7.4/digikam/digikam'
Comment 1 Renchi Raju 2005-08-20 06:54:16 UTC
Rex, can you attach your config.log (generated when configure is run) and also your kdemacros.h in kde includes.

(Tom, I had to manually patch the 0.7.4 tarballs I made earlier with some visibility fixes. The released tarballs are missing them. I should have checked them more carefully :( )
Comment 2 Mark Purcell 2005-08-20 21:39:12 UTC
Created attachment 12286 [details]
config.log for gcc4 build
Comment 3 Mark Purcell 2005-08-20 21:45:19 UTC
Same thing here trying to build for Debian with KDE 3.4.2.

I'll attach config.log and kdemacros.h

Btw,  What are the manual patches for visibility??


make[5]: Entering directory `/home/mark/src/debian/kde-extras/digikam/build-area/digikam-0.7.4/obj-i486-linux-gnu/digikam/digikam'
/bin/sh ../../libtool --silent --tag=CXX --mode=link g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE    -o digikam  -L/usr/lib -L/usr/share/qt3/lib -L/usr/X11R6/lib    -L/usr/lib -lImlib2 -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl -lm main.o -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -lkdecore -lkdeui  -lkio -lkparts libdigikam.la 
main.o: In function `main':
/home/mark/src/debian/kde-extras/digikam/build-area/digikam-0.7.4/./digikam/digikam/main.cpp:223: undefined reference to `DigikamFirstRun::DigikamFirstRun(KConfig*, QWidget*, char const*, bool, unsigned int)'
/home/mark/src/debian/kde-extras/digikam/build-area/digikam-0.7.4/./digikam/digikam/main.cpp:261: undefined reference to `DigikamApp::DigikamApp(bool)'
collect2: ld returned 1 exit status
Comment 4 Mark Purcell 2005-08-20 21:49:28 UTC
Created attachment 12287 [details]
kdemacros.h from Debian kdelibs4-dev 3.4.2-1
Comment 5 Renchi Raju 2005-08-21 05:59:13 UTC
the tarball at sourceforge has been updated with visibility fixes.