bugGNUtrition - Bugs: bug #47920, make fails when configuration...

 
 

bug #47920: make fails when configuration option sqlite3_LIBS isn't set.

Submitted by:  Calvin Heim <cheim>
Submitted on:  Sat 14 May 2016 05:04:11 AM UTC  
 
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  C Development Version Fixed Release:  None
Planned Release:  0.4

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 14 May 2016 05:04:11 AM UTC, original submission:  

Make fails when trying to build sqlite3.o on Ubuntu 14.04.

Steps to reproduce:

./configure
make

results in the following error (with context):

libtool: link: gcc -Wall -g -g -O2 -Wl,--export-dynamic -o gnutrition callbacks.o main.o user_interface.o sqlite3_api.o sqlite3.o food_db_tab.o file_handling.o preferences_tab.o food_journal_tab.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/i386-linux-gnu/libcairo.so -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 /usr/lib/i386-linux-gnu/libfreetype.so -lpthread
/usr/bin/ld: sqlite3.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
//lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [gnutrition] Error 1

This only seems to happen when the sqlite3_LIBS option isn't set by the user during configuration.
Setting sqlite3_LIBS="-ldl" fixes the problem.

Peeking around in the configure script reveals the following line:
pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "pthread-stubs" 2>/dev/null`

so this bug might only occur if pkg-config yields no libraries for pthread-stubs.

Calvin Heim <cheim>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cheim (Submitted the item)
  •  

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5