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

 
 

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

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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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-linu ... nu/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>
Group Member

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-11ef.
    Corresponding source code