LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-26-2009, 10:48 AM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
installing ntp results in errors!


Code:
./libntp/libntp.a
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x27d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f9): undefined reference to `dlerror'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x36d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3e1): undefined reference to `dlerror'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x44c): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x4f5): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x546): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x56f): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[3]: *** [ntpd] Error 1
make[3]: Leaving directory `/home/tux4prez/ntp-4.2.4p6/ntpd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/tux4prez/ntp-4.2.4p6/ntpd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tux4prez/ntp-4.2.4p6'
make: *** [all] Error 2
ive looked around and have not found out much info on this error. anyone more knowledgable know whats up?
 
Old 02-26-2009, 05:49 PM   #2
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Try adding "--with-libs=-ldl" (without the quotes, of course) to NTP's configure options. That may or may not solve the problem, though even if it does it's probably not the "right" solution. Something seems to be off with your installation of OpenSSL that's preventing ld from finding what it needs. Did you make sure to enable the creation of OpenSSL's shared libraries during its configuration stage?
 
Old 02-27-2009, 05:49 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Slackware 12.1 ?

'ntp-4.2.4p6' compiles with no errors on my system,
just using './configure' .. 'make'

If you succeed, be aware of the default installed 'ntp'
> 'ls /var/log/packages/ | grep ntp'
( supposed to print 'ntp-4.2.4p0-i486-1 )

Having 2 versions installed can be confusing, I guess.
.....
 
Old 02-27-2009, 11:50 AM   #4
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
this is on a linux from scratch pc, it doesnt have much on it.
 
Old 02-27-2009, 01:26 PM   #5
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
Code:
./config shared --prefix=/usr
on a clean untarring of the openssl source tarball fixed my error. thanks for giving me a hint as to what was going on.
 
Old 02-27-2009, 02:12 PM   #6
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
No problem. Glad I was able to help.
 
Old 02-28-2009, 06:42 AM   #7
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
it was totaly the wrong command you gave, but the post had enough info for just a little bit of searching to find the right way to set it up.
 
Old 02-28-2009, 02:50 PM   #8
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
And learning to search and find the answers by yourself is part of what LFS is all about. Working with your own home-brewed Linux system for a while helps you become much more self-reliant to the point where, in cases of trouble, a "hint" is generally all that's needed.

As for the --with-libs=-ldl config option I gave you, I *did* say that it might not work; I included it only because I'd found logs from other people who were getting errors very similar to yours and that solved it, for them. In your case, though, OpenSSL seemed the more likely culprit.

And out of curiosity, did you not follow the OpenSSL instructions in BLFS the first time around? That should have enabled the building of its shared libraries if you did.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring multipath to hds san results in multiple types of errors bret Linux - Software 1 05-12-2006 10:00 AM
installing mysql and php4 results in a conflict bshearer *BSD 3 04-29-2005 02:36 PM
Startx results in a black screen with VGA and screen errors kwosource Linux - Newbie 4 03-11-2005 02:58 PM
ntp service causing huge time errors zoubidoo Linux - General 2 11-23-2004 10:29 AM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration