Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-perl/Net-DNS makefile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
apeterd
n00b
n00b


Joined: 19 Jun 2024
Posts: 2

PostPosted: Wed Jun 19, 2024 8:00 pm    Post subject: dev-perl/Net-DNS makefile error Reply with quote

I have been emerging this package for ages without problem. i update this gentoo system daily
something in my environment has changed resulting in an unrecognized makefile target: pure_install

can someone enlighten me please?

Code:
>>> Install dev-perl/Net-DNS-1.450.0 into /var/tmp/portage/dev-perl/Net-DNS-1.450.0/image
make -j5 DESTDIR=/var/tmp/portage/dev-perl/Net-DNS-1.450.0/image pure_install
make: *** No rule to make target 'pure_install'.  Stop.
 * ERROR: dev-perl/Net-DNS-1.450.0::gentoo failed (install phase):
 *   emake failed

=================================================================

Code:
>>> Emerging (1 of 2) dev-perl/Net-DNS-1.450.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * Net-DNS-1.45.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking Net-DNS-1.45.tar.gz to /var/tmp/portage/dev-perl/Net-DNS-1.450.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Net-DNS-1.450.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/Net-DNS-1.450.0/work/Net-DNS-1.45 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Net-DNS-1.450.0/work/Net-DNS-1.45 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL AR=x86_64-pc-linux-gnu-ar CC=x86_64-pc-linux-gnu-gcc CPP=x86_64-pc-linux-gnu-gcc -E LD=x86_64-pc-linux-gnu-gcc NM=x86_64-pc-linux-gnu-nm RANLIB=x86_64-pc-linux-gnu-ranlib OPTIMIZE=-O2 -pipe -march=native LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none --no-online-tests --no-IPv6-tests
Duplicate specification "noonline-tests" for option "noonline-tests"
Checking if your kit is complete...
Looks good
'CPP' is not a known MakeMaker parameter name.
'NM' is not a known MakeMaker parameter name.
##
##      The install location for this version of Net::DNS differs
##      from the existing version 1.45 in your perl library at
##      /usr/local/lib64/perl5/5.38/Net/DNS.pm
##
##      The installation would be rendered ineffective because the
##      existing version 1.45 occurs in the library search path before
##      /usr/lib64/perl5/vendor_perl/5.38
##
##      The generated Makefile supports build and test only.
##
Generating a Unix-style Makefile
Writing Makefile for Net::DNS
Writing MYMETA.yml and MYMETA.json
>>> Source configured.

=================================================================

emerge —info
Code:
===========================
Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/split-usr, gcc-13, glibc-2.39-r6, 6.1.12-gentoo x86_64)
=================================================================
System uname: Linux-6.1.12-gentoo-x86_64-Intel-R-_Pentium-R-_Silver_J5005_CPU_@_1.50GHz-with-glibc2.39
KiB Mem:     7785984 total,    394240 free
KiB Swap:    6291448 total,   1696204 free
Timestamp of repository gentoo: Wed, 19 Jun 2024 10:30:01 +0000
Head commit of repository gentoo: 22ffbb374cff2baf6e6f77d2cf90d49f33d860e0
sh bash 5.1_p16-r11
ld GNU ld (Gentoo 2.40 p7) 2.40.0
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r11::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.69-r9::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             1.78.0::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
dev-util/ccache:           4.9.1-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.40-r9::gentoo, 2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo


[Administrator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1963

PostPosted: Wed Jun 19, 2024 8:32 pm    Post subject: Reply with quote

apeterd wrote:
##
## The install location for this version of Net::DNS differs
## from the existing version 1.45 in your perl library at
## /usr/local/lib64/perl5/5.38/Net/DNS.pm
##
## The installation would be rendered ineffective because the
## existing version 1.45 occurs in the library search path before
## /usr/lib64/perl5/vendor_perl/5.38
##
## The generated Makefile supports build and test only.
##

Looks like some trash in /usr/local/lib64 is interfering with this installation.
Back to top
View user's profile Send private message
apeterd
n00b
n00b


Joined: 19 Jun 2024
Posts: 2

PostPosted: Wed Jun 19, 2024 8:55 pm    Post subject: Reply with quote

thanks grknight, temporarily renaming the 5.38 directory in /usr/local/lib64 did indeed “fix” the problem. but now i have to understand why it got corrupted...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22867

PostPosted: Wed Jun 19, 2024 9:39 pm    Post subject: Reply with quote

What do you mean corrupted? The problem is that root installed a version of this package in /usr/local, and that version's existence conflicts with building this through Portage. The question to ask is why there was anything in /usr/local/lib64/perl5 at all. It should not exist.
Back to top
View user's profile Send private message
RumpletonBongworth
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2024
Posts: 82

PostPosted: Sun Jun 23, 2024 7:24 am    Post subject: Reply with quote

A typical reason for this to happen is for a Perl module to be installed outside the purview of the distro package manager by running cpan as the root user. Those needing to install arbitrary modules should note that Gentoo offers the local::lib module as dev-perl/local-lib. It also offers cpanminus as dev-perl/App-cpanminus, which is a better client for installing CPAN modules than the official one.
Back to top
View user's profile Send private message
PCGyver
n00b
n00b


Joined: 15 Jan 2005
Posts: 6
Location: Poland

PostPosted: Tue Jul 09, 2024 7:58 am    Post subject: Reply with quote

I removed rm /usr/local/lib/perl5/5.38/Net/DNS.pm
and re-emerge dev-perl/Net-DNS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum