Ports weirdness with FreeBSD
Hi all,
I'm been put in charge of the FreeBSD server at http://www.gamecreation.org. But I don't really have too much experience with FreeBSD in particular. So, the thing is, I was asked to upgrade the system to the latest version of PHP and MySQL back in December. I read a little about the Ports system and thought it didn't sound hard at all! So I run cvsup to update Ports and I run "make install PHP5" and the system starts to chug along and everything seems to be working. I was happy until it came to compiling pkgconfig and then all hell broke loose.
No matter what I try, pkgconfig will not compile. If I just run "make install pkgconfig" for example, I will get and eror that stpcpy is not a defined symbol. This does not seem right to me, being that stpcpy is part of the standard C library. And this leaves me being unable to update pkgconfig and so I have been unable to update several packages such as glib2 and all the packages that are dependent upon it. Finally, the old admin seems to have dropped off the face of the planet, so I thought I would see if you might be able to help me out.
** Please let me know exactly what output from Ports might help diagnose the problem more specifically.
Thank you for your time!
-Andrew Fox
EDITS: typos
If you are just upgrading the ports, you shouldn't need to make install them, you should be able to run portupgrade ( make sure its installed first, and see the list of ports that need updating with "pkg_version -L =" )
On the pkgconfig issue, make sure you do not have NOLIBC_R defined in /etc/make.conf, and that libc.so is up-to-date. Using portupgrade -ar should update everything thats out of date, so you can try that.
--
the_enemy
On the pkgconfig issue, make sure you do not have NOLIBC_R defined in /etc/make.conf, and that libc.so is up-to-date. Using portupgrade -ar should update everything thats out of date, so you can try that.
--
the_enemy
Thank you for your help!
I checked /etc/make.conf and NOLIBC_R is not defined. So, that's not the problem. And, when using portuprade to upgrade pkgconfig, I still get the same error about stpcpy being an undefined symbol. However, I also got warnings that autoconf and autoheader were not installed on my system.
Now what really messes with me is how FreeBSD can tell me:
and then fails to compile. But if libc.so is out of date, I guess it would.
I'm running portupgrade to upgrade the entire system. I will post the results when it finishes. With luck, libc will be updated and everything will work out nicely (crosses fingers)
EDIT:
wow. just wow.
Here's the whole summary:
[Edited by - Foxostro on January 23, 2006 8:11:21 AM]
I checked /etc/make.conf and NOLIBC_R is not defined. So, that's not the problem. And, when using portuprade to upgrade pkgconfig, I still get the same error about stpcpy being an undefined symbol. However, I also got warnings that autoconf and autoheader were not installed on my system.
Now what really messes with me is how FreeBSD can tell me:
Quote:
. . .
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
. . .
and then fails to compile. But if libc.so is out of date, I guess it would.
I'm running portupgrade to upgrade the entire system. I will post the results when it finishes. With luck, libc will be updated and everything will work out nicely (crosses fingers)
EDIT:
Quote:
---> Packages processed: 0 done, 51 ignored, 49 skipped and 10 failed
wow. just wow.
Here's the whole summary:
Quote:
** Listing the failed packages (*:skipped / !:failed)
! (libtool-1.4.3_3) (invalid package name)
! security/nmap (nmap-3.50) (unknown build error)
! databases/postgresql80-client (postgresql-client-8.0.1) (unknown build error)
! security/gnupg (gnupg-1.2.4_1) (interrupted by user)
* databases/postgresql80-client (postgresql-client-8.0.4)
! lang/ezm3 (ezm3-1.1_1) (install error)
! devel/pkgconfig (pkgconfig-0.15.0_1) (unknown build error)
* print/freetype2 (freetype2-2.1.10_2)
* devel/glib12 (glib-1.2.10_11)
* audio/libaudiofile (libaudiofile-0.2.6)
* graphics/libart_lgpl2 (libart_lgpl2-2.3.16)
* audio/esound (esound-0.2.34)
* textproc/libxml2 (libxml2-2.6.9)
* textproc/libxslt (libxslt-1.1.6)
* games/robotfindskitten (robotfindskitten-1600003.248b)
* x11-fonts/fontconfig (fontconfig-2.2.2,1)
* devel/glib20 (glib-2.4.0)
! www/apache13 (apache-1.3.29_3) (install error)
! devel/fam (fam-2.6.9_4) (unknown build error)
* devel/libIDL (libIDL-0.8.3_2)
* accessibility/atk (atk-1.6.1)
* x11/XFree86-4-libraries (XFree86-libraries-4.3.0_7)
* x11-toolkits/open-motif (open-motif-2.2.3_2)
* graphics/libungif (libungif-4.1.2)
* x11-fonts/XFree86-4-fontEncodings (XFree86-fontEncodings-4.3.0)
! textproc/intltool (intltool-0.30_1) (unknown build error)
* misc/shared-mime-info (shared-mime-info-0.14_2)
* emulators/mtools (mtools-3.9.8_3)
* x11-toolkits/Xaw3d (Xaw3d-1.5)
* misc/hicolor-icon-theme (hicolor-icon-theme-0.5)
* misc/gnome-icon-theme (gnome-icon-theme-1.2.1)
! emulators/linux_base (linux_base-7.1_7) (unknown build error)
* x11-fonts/XFree86-4-fontScalable (XFree86-fontScalable-4.3.0)
* editors/emacs19 (emacs-21.3_2)
* x11-fonts/libXft (libXft-2.1.6)
* java/linux-sun-jdk14 (linux-sun-jdk-1.4.2.09)
* x11-toolkits/pango (pango-1.4.0)
* x11-toolkits/gtk20 (gtk-2.4.0)
* security/gnomekeyring (gnomekeyring-0.2.1)
* devel/ORBit2 (ORBit2-2.10.0)
* databases/postgresql80-server (postgresql-server-8.0.1_3)
* www/mod_php5 (mod_php5-5.0.3_2,1)
* www/php5-session (php5-session-5.0.5)
* devel/libbonobo (libbonobo-2.6.0)
* net/linc (linc-1.0.3_2)
* databases/php5-pgsql (php5-pgsql-5.0.5)
* devel/libglade2 (libglade2-2.3.6)
* graphics/libgnomecanvas (libgnomecanvas-2.6.1)
* devel/php5-pcre (php5-pcre-5.0.3_2)
* misc/gnomehier (gnomehier-1.0_17)
* x11/startup-notification (startup-notification-0.6)
* misc/gnomemimedata (gnomemimedata-2.4.1_2)
* devel/gconf2 (gconf2-2.6.1)
* devel/gnomevfs2 (gnomevfs2-2.6.1.1)
* textproc/scrollkeeper (scrollkeeper-0.3.14_1,1)
* x11/libgnome (libgnome-2.6.1)
* x11-toolkits/libbonoboui (libbonoboui-2.6.0)
* x11-toolkits/libgnomeui (libgnomeui-2.6.0_1)
* archivers/fileroller (fileroller-2.6.1,1)
---> Packages processed: 0 done, 51 ignored, 49 skipped and 10 failed
[Edited by - Foxostro on January 23, 2006 8:11:21 AM]
January 23, 2006 10:09 AM
try rerunning cvsup and make sure you have an up to date ports tree then deinstalling and reinstalling pkgconfig:
cvsup -h cvs1.freebsd.org /usr/share/examples/cvsup/ports-supfile
cd /usr/ports/dev/pkgconfig/
make deinstall reinstall clean
--
also check to see if a dependancy of pkgconfig is failing to compile, and make deinstall reinstall that port.
cvsup -h cvs1.freebsd.org /usr/share/examples/cvsup/ports-supfile
cd /usr/ports/dev/pkgconfig/
make deinstall reinstall clean
--
also check to see if a dependancy of pkgconfig is failing to compile, and make deinstall reinstall that port.
Is it safe to deinstall something with Ports that might be a dependency of a dependency etc of an application that is running? I don't want to break the webserver :/
Okay,
I made pkg-config separately from Ports because I thought it would satisfy executable requirements for certain other packaes when I then used Ports to build other things. In those cases, pkg-config 0.20 is found, but I still get errors. The root of the problem is that stpcpy is an undefined symbol.
Yet, stpcpy is defined with string.h whenever the BSD_VISIBLE flag is set. I imagine that something would have to be really wrong for this to not be defined. Anyway, I think the error I get is a linker error as it reads something along the lines of (from memory):
I can update the ports tree with cvsup and I made sure to run "pkgdb -fu" right after that to have it sort out dependencies. Then I went to build glib12:
with no problems at all. That made me very happy!
But when I attempt to do the same with glib20 or pkgconfig, then I get that stpcpy error. How can I find out what causes that?
-Andrew
[Edited by - Foxostro on January 24, 2006 11:13:31 AM]
I made pkg-config separately from Ports because I thought it would satisfy executable requirements for certain other packaes when I then used Ports to build other things. In those cases, pkg-config 0.20 is found, but I still get errors. The root of the problem is that stpcpy is an undefined symbol.
Yet, stpcpy is defined with string.h whenever the BSD_VISIBLE flag is set. I imagine that something would have to be really wrong for this to not be defined. Anyway, I think the error I get is a linker error as it reads something along the lines of (from memory):
Quote:
foo.so: 'stpcpy' is an undefined symbol
I can update the ports tree with cvsup and I made sure to run "pkgdb -fu" right after that to have it sort out dependencies. Then I went to build glib12:
cd /usr/ports/devel/glib12make cleanmake deinstallmake reinstallmake clean
with no problems at all. That made me very happy!
But when I attempt to do the same with glib20 or pkgconfig, then I get that stpcpy error. How can I find out what causes that?
-Andrew
[Edited by - Foxostro on January 24, 2006 11:13:31 AM]
Hi,
You could try to force FreeBSD to install pkgconfig as a package: compiled and ready. Use portinstall -PP pkgconfig to do this.
Also, make sure your ports database is okay by running pkgdb -F to fix any problems with that.
hth,
CipherCraft
You could try to force FreeBSD to install pkgconfig as a package: compiled and ready. Use portinstall -PP pkgconfig to do this.
Also, make sure your ports database is okay by running pkgdb -F to fix any problems with that.
hth,
CipherCraft
Quote: Original post by Anonymous Poster
You may want to try the FreeBSD mailing lists.
Thanks! I will.
Quote:
You could try to force FreeBSD to install pkgconfig as a package: compiled and ready. Use portinstall -PP pkgconfig to do this.
I'll try that!
EDIT: pkgconfig-0.20 could not be fetched as a package, so it fetched 0.15 instead. Its not exactly what I wanted but there were no errors or problems, so I will try to use portinstall -PP to install the other offending packages.
Quote:
Also, make sure your ports database is okay by running pkgdb -F to fix any problems with that.
When I run that I get about a dozen stale dependencies and I'm not really sure what to do to fix them. I will look on the internet at work today to see if I can find out anything more.
[Edited by - Foxostro on January 25, 2006 9:28:44 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement