pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/37647: lang/python20 fails under Linux



The following reply was made to PR pkg/37647; it has been noted by GNATS.

From: OBATA Akio <obache%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: cheusov%tut.by@localhost
Subject: Re: pkg/37647: lang/python20 fails under Linux
Date: Sat, 16 Feb 2008 15:38:56 +0900

 > cd Modules;  /home/pkgsrc/pkg/bin/bmake OPT="-O2 -I/usr/include
 > -I/home/pkgsrc/pkg/include -I/home/pkgsrc/pkg/include/db4" VERSION="2.0"
 > prefix="/home/pkgsrc/pkg" exec_prefix="/home/pkgsrc/pkg"  sharedmods gcc
 > -fpic -ldb4 -L/usr/lib -Wl,-R/usr/lib -L/home/pkgsrc/pkg/lib
 > -Wl,-R/home/pkgsrc/pkg/lib  -O2 -I/usr/include -I/home/pkgsrc/pkg/include
 > -I/home/pkgsrc/pkg/include/db4 -I./../Include -I.. -DHAVE_CONFIG_H -c
 > ./bsddbmodule.c gcc: -R/home/pkgsrc/pkg/lib: linker input file unused
 > because linking not done gcc: -ldb4: linker input file unused because
 > linking not done
 > gcc -shared -ldb4 -L/usr/lib -Wl,-R/usr/lib -L/home/pkgsrc/pkg/lib
 > -Wl,-R/home/pkgsrc/pkg/lib  bsddbmodule.o  -ldb -o bsddbmodule.so
 > /usr/bin/ld: cannot find -ldb
 > collect2: ld returned 1 exit status
 > *** Error code 1
 >> Fix:
 
 Following patch fixes this problem?
 
 Index: databases/db4/buildlink3.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/databases/db4/buildlink3.mk,v
 retrieving revision 1.32
 diff -u -r1.32 buildlink3.mk
 --- databases/db4/buildlink3.mk 10 Jan 2008 21:55:52 -0000      1.32
 +++ databases/db4/buildlink3.mk 16 Feb 2008 06:34:52 -0000
 @@ -18,6 +18,12 @@
  BUILDLINK_LDADD.db4=           -ldb4
  BUILDLINK_TRANSFORM+=          l:db-4:db4
 
 +.  include "../../mk/bsd.fast.prefs.mk"
 +.  if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
 +BUILDLINK_LIBS.db4=            ${BUILDLINK_LDADD.db4}
 +BUILDLINK_TRANSFORM+=          l:db:db4
 +.  endif
 +
  .  include "../../mk/compiler.mk"
  .  if empty(PKGSRC_COMPILER:Mgcc)
  PTHREAD_OPTS+= native
 
 
 -- 
 "Of course I love NetBSD":-)
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index