advanced programming unix environment

Brother Seamus brother_seamus at btinternet.com
Mon Apr 14 18:56:06 UTC 2008


just a note: same source code makes fine on solaris installation.

I would appreciate if somebody else running freebsd 7.0 could download source and see if it makes fine on their installation.

Steven's "Advance Programming in the Unix Environment" Source code:
http://www.apuebook.com/src.tar.gz

thanks


Date: Mon, 14 Apr 2008 16:48:58 +0000 (GMT)
From: Brother Seamus <brother_seamus at btinternet.com>
Subject: advanced programming unix environment
To: freebsd-questions at freebsd.org
Message-ID: <774348.47840.qm at web86514.mail.ird.yahoo.com>
Content-Type: text/plain; charset=utf-8

I am trying to build the neccesary files for the stevens/rago APUE.2e book on FreeBSD 7.0

as instructed i get the source from here: http://www.apuebook.com/src.tar.gz

unzip & untar to:

/home/seamus/apue.2e

cd /home/seamus/apue.2e

amend "Make.defines.freebsd" as instructed so:
"WKDIR=/home/seamus/apue.2e"

and then run "make" from this directory.

I get the following error:
+++++++++++++++++++++++++++++++++++++++++
pracct.c  ../lib/libapue.a 
pracct.c: In function 'main':
pracct.c:31: error: storage size of 'acdata' isn't known
pracct.c:31: warning: unused variable 'acdata'
*** Error code 1

Stop in /usr/home/seamus/apue.2e/proc.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
*** Error code 1

Stop in /usr/home/seamus/apue.2e.
+++++++++++++++++++++++++++++++++++++++++

I would appreciate any help.

+++++++++++++++++++++++++++++++++++++++++
Make.defines.freebsd
+++++++++++++++++++++++++++++++++++++++++

# Common make definitions, customized for each platform

# Definitions required in all program directories to compile and link
# C programs using gcc.

WKDIR=/home/seamus/apue.2e
CC=gcc
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDDIR) $(LDFLAGS)
LDDIR=-L../lib
LDLIBS=../lib/libapue.a $(EXTRALIBS)
CFLAGS=-ansi -I$(WKDIR)/include -Wall -DBSD $(EXTRA)

# Our library that almost every program needs.
LIB=../libapue.a

# Common temp files to delete from each directory.
TEMPFILES=core core.* *.o temp.* *.out typescript*

+++++++++++++++++++++++++++++++++++++++++
pracct.c
+++++++++++++++++++++++++++++++++++++++++

#include "apue.h"
#include <sys/acct.h>

#ifdef HAS_SA_STAT
#define FMT "%-*.*s  e = %6ld, chars = %7ld, stat = %3u: %c %c %c %c\n"
#else
#define FMT "%-*.*s  e = %6ld, chars = %7ld, %c %c %c %c\n"
#endif
#ifndef HAS_ACORE
#define ACORE 0
#endif
#ifndef HAS_AXSIG
#define AXSIG 0
#endif

static unsigned long
compt2ulong(comp_t comptime)    /* convert comp_t to unsigned long */
{
    unsigned long    val;
    int                exp;

    val = comptime & 0x1fff;    /* 13-bit fraction */
    exp = (comptime >> 13) & 7;    /* 3-bit exponent (0-7) */
    while (exp-- > 0)
        val *= 8;
    return(val);
}
int
main(int argc, char *argv[])
{
    struct acct        acdata;
    FILE            *fp;

    if (argc != 2)
        err_quit("usage: pracct filename");
    if ((fp = fopen(argv[1], "r")) == NULL)
        err_sys("can't open %s", argv[1]);
    while (fread(&acdata, sizeof(acdata), 1, fp) == 1) {
        printf(FMT, (int)sizeof(acdata.ac_comm),
            (int)sizeof(acdata.ac_comm), acdata.ac_comm,
            compt2ulong(acdata.ac_etime), compt2ulong(acdata.ac_io),
#ifdef HAS_SA_STAT
            (unsigned char) acdata.ac_stat,
#endif
            acdata.ac_flag & ACORE ? 'D' : ' ',
            acdata.ac_flag & AXSIG ? 'X' : ' ',
            acdata.ac_flag & AFORK ? 'F' : ' ',
            acdata.ac_flag & ASU   ? 'S' : ' ');
    }
    if (ferror(fp))
        err_sys("read error");
    exit(0);
}







------------------------------

Message: 23
Date: Mon, 14 Apr 2008 13:16:45 -0400
From: Jerry McAllister <jerrymc at msu.edu>
Subject: Re: Can't log in as root on new 7.0 install
To: Jesse Sheidlower <jester at panix.com>
Cc: freebsd-questions at freebsd.org
Message-ID: <20080414171645.GJ31602 at gizmo.acns.msu.edu>
Content-Type: text/plain; charset=us-ascii

On Mon, Apr 14, 2008 at 10:35:03AM -0400, Jesse Sheidlower wrote:

> 
> I've recently installed FreeBSD 7.0 on a new server. I seem to
> be unable to log in as root in any way, and I'm not sure why.
> Furthermore I'm now physically separate from the machine, and
> have been relying on a (non-computer-literate) colleague with
> access to its console server to try and help.
> 
> After the initial install I (am pretty sure I) was able to log
> in as root over ssh. However, after a week when the machine
> was inaccessible for other reasons, I cannot log in as root,
> only as a normal user.
> 
> I thought that I had perhaps mis-remembered the root password,
> so I directed the colleague to log in in single user mode and
> reset the root password; she was able to do this, and typed
> "exit" to return the system to multi-user mode and herself at
> a root prompt. However I was still not able to log in as root,
> either over ssh, or by logging in as a normal user and then
> typing "login root" (i.e. it wasn't just something preventing
> root logins over ssh).
> 
> I then asked the colleague to add me to the "wheel" group,
> which she successfully did; I logged out and back in again,
> determined that I was indeed in this group, and tried to "su -" 
> and got a "su: Sorry" message, with the colleague reporting
> that a "BAD SU [user] to root on /dev/ttyp0" message had
> appeared.
> 
> I'm sort of at a loss for what to do or why this is happening,
> and am quite eager to control my own machine....Suggestions
> welcome.

Well, the two things I would guess are:  there is a syntax error
in adding your regular id to the wheel group and you are typing
in the root password incorrectly.

I've never had it fail when I remembered to add my id to wheel
and got the root password right.

Can your colleague log in with her id and then su to root?

I have never used su with the '-' on it, but I presume that
should be no problem.

////jerry

> 
> Thanks very much.
> 
> Jesse Sheidlower
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


------------------------------

Message: 24
Date: Mon, 14 Apr 2008 17:43:30 +0100
From: Frank Shute <frank at shute.org.uk>
Subject: Re: start up scripts stopped working
To: Eric <eric at mikestammer.com>
Cc: freebsd-questions <freebsd-questions at freebsd.org>
Message-ID: <20080414164330.GA48818 at melon.esperance-linux.co.uk>
Content-Type: text/plain; charset=us-ascii

On Sun, Apr 13, 2008 at 07:18:52PM -0600, Eric wrote:
>
> tomasz dereszynski wrote:
> >Eric wrote:
> >>hello,
> >>
> >>does anyone know what I can do to fix the following problem?  Every 
> >>time my FreeBSd 6.2 machine reboots, none of the scripts in the 
> >>/usr/local/etc/rc.d directory launch the various programs i have 
> >>defined in my rc.conf file. when i added
> >>
> >>rc_info=yes
> >>rc_debug=yes
> >>
> >>to rc.conf i see things getting evaluated, but nothing is launched. 
> >>this forces someone to log in locally to the machine and start 
> >>openssh so i can get to the box.
> >>
> >>does anyone know what could be causing this?
> >Hi Eric,
> >
> >can you copy your rc.conf file?
> >
> >would be easier to say something...
> >cheers
> >
> sure, here it is:
> 
> defaultrouter="192.168.0.1"
> hostname="someservername"
> ifconfig_xl0="inet 192.168.0.51  netmask 255.255.255.0"
> 
> 
> #sshd_program=/usr/local/sbin/sshd
> #sshd_enable="YES"
> # disable built in SSH and enable SSH_portable
> sshd_enable="NO"
> openssh_enable="YES"
> 
> font8x8="swiss-8x8"
> font8x14="NO"
> font8x16="swiss-8x16"
> 
> saslauthd_enable=YES
> 
> postgrey_enable="YES"
> 
> sendmail_enable="YES"
> sendmail_flags="-bd"
> sendmail_outbound_enable="NO"
> sendmail_submit_enable="NO"
> sendmail_msp_queue_enable="NO"
> 
> clamav_freshclam_enable=YES
> clamav_clamd_enable=YES
> 
> amavisd_enable=YES
> 
> dovecot_enable=YES
> 
> apache22_enable=YES
> samba_enable=YES
> smartd_enable="YES"
> 
> mysql_enable="YES"
> 
> vsftpd_enable="YES"
> 
> denyhosts_enable="YES"
> 
> mailgraph_enable="YES"
> 
> ddclient_enable="YES"
> 
> twdm2_enable="YES"
> 
> kern_securelevel="1"
> kern_securelevel_enable="YES"
> 

I spotted a couple of things with your rc.conf that could be causing
you trouble:

1) There are a lot of unquoted YES's for enabling services. I don't
know if that could screw thing's up but for form's sake, I'd try quoting
them and rebooting.

2) You seem to have set your security level quite high. I can't find
where they are documented in 6.3 (in 7.0 under security(7)) but it
could be worth a try commenting out the securelevel lines and
rebooting and then setting your security level through sysctl (I
think you can do that).

HTH.

-- 

 Frank 

    
 Contact info: http://www.shute.org.uk/misc/contact.html 



------------------------------

Message: 25
Date: Mon, 14 Apr 2008 17:59:48 +0100
From: "uktradestreet" <info at uktradestreet.com>
Subject: Renovation Projects
To: <freebsd-questions at freebsd.org>
Message-ID: <ae7a7a33ce65d45bab7006f10010e55e at uktradestreet.com>
Content-Type: text/plain;    charset="windows-1252"

Hello

I came across your details and hope you will not see this as junk mail; if 
so, please do accept my apologies.

 

We at  www.uktradestreet.com  can offer you a complimentary service in that 
we have genuine customers - both commercial and domestic who would need your 
services and as such we would welcome you to register with us for FREE.

 

If you are a customer who needs to have a job undertaken - whether at home 
or in the office, then likewise you are most welcome to post your job on our 
site, and honest, reliable and customer recommended Tradespeople/companies, 
will be happy to give you a Quotation.

 

Why not have a look around, and remember, it is FREE to register ~ and you 
can tell all your friends and colleagues too!

 

Thanks

Michelle

T:020 8133 0625

www.uktradestreet.com

 

 

To unsubscribe please reply with 'unsubscribe' in subject heading ~ but we 
hope you will sign up first!





------------------------------

Message: 26
Date: Mon, 14 Apr 2008 12:58:11 -0500
From: David Kelly <dkelly at hiwaay.net>
Subject: Re: Can't log in as root on new 7.0 install
To: Jerry McAllister <jerrymc at msu.edu>
Cc: Jesse Sheidlower <jester at panix.com>, freebsd-questions at freebsd.org
Message-ID: <20080414175811.GA18380 at Grumpy.DynDNS.org>
Content-Type: text/plain; charset=us-ascii

On Mon, Apr 14, 2008 at 01:16:45PM -0400, Jerry McAllister wrote:
> 
> Well, the two things I would guess are:  there is a syntax error in
> adding your regular id to the wheel group and you are typing in the
> root password incorrectly.

In ancient times I had IRIX lock out a user because there was a space at
the end of their entry in /etc/passwd. Not hardly believing it myself,
made a link copy of csh with a space at the end and the user could
login. Fixed /etc/passwd, deleted the link, and placed a trouble report
with SGI.

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


------------------------------

Message: 27
Date: Mon, 14 Apr 2008 11:28:40 -0700 (PDT)
From: Dino Vliet <dino_vliet at yahoo.com>
Subject: yelp won't upgrade properly
To: Jeremy Messenger <mezz7 at cox.net>, freebsd-questions at freebsd.org,
    gnome at freebsd.org
Message-ID: <195672.51309.qm at web51112.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1



Jeremy Messenger <mezz7 at cox.net> wrote: On Sun, 13 Apr 2008 15:56:11 -0500, Dino Vliet   
wrote:

>
>
> Jeremy Messenger  wrote: On Sat, 12 Apr 2008 14:45:47  
> -0500, Dino Vliet
> wrote:
>
>> Folks,
>>
>> I've tried to upgrade my ports and get the following error from
>> gnome-applets everytime I do a portupgrade gnome-applets:
>>
>> ain.c:42: error: structure has no member named `gconf'
>> main.c:46: error: structure has no member named `gweather_pref'
>> main.c:46: error: structure has no member named `gconf'
>> gmake[2]: *** [main.o] Error 1
>> gmake[2]: Leaving directory
>> `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
>> gmake[1]: *** [install-recursive] Error 1
>> gmake[1]: Leaving directory
>> `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
>> gmake: *** [install-recursive] Error 1
>> *** Error code 2
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> *** Error code 1
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> *** Error code 1
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> ** Command failed [exit code 1]: /usr/bin/script -qa
>> /tmp/portupgrade.38565.0 env UPGRADE_TOOL=portupgrade
>> UPGRADE_PORT=gnome-applets-2.20.1 UPGRADE_PORT_VER=2.20.1 make
>> WITH_FAM_SYSTEM=fam reinstall
>> --->  Restoring the old version
>>
>> ** Fix the installation problem and try again.
>> [Updating the pkgdb  in /var/db/pkg ... - 988 packages
>> found (-0 +1) . done]
>> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>>         ! x11/gnome-applets (gnome-applets-2.20.1)      (install error)
>> ** Could not clean up temporary directory: Directory not empty -
>> /var/tmp/portupgradeOdM6jXk4
>>
>>
>> I'm seeing this on my AMD64 freebsd 6.3 system.
>>
>> Does anyone have ideas?
>
> Did you follow the /usr/ports/UPDATING?
>
> Cheers,
> Mezz
>
>> Thanks
>
> Now I did and chek out the mess:
>
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         - graphics/ImageMagick (marked as IGNORE)
>         - java/diablo-jdk15 (marked as IGNORE)
>         - japanese/lynx (marked as IGNORE)
>         - java/jdk15 (marked as IGNORE)
>         - textproc/p5-Text-ParseWords (port directory error)
>         - x11-servers/xorg-printserver (marked as IGNORE)
>         ! devel/ccrtp (ccrtp-1.5.2)     (unknown build error)
>         * devel/libzrtpcpp (libzrtpcpp-0.9.2)
>         * net/twinkle (twinkle-1.0_4)
>         * multimedia/libxine (libxine-1.1.7_3)
>         ! x11/yelp (yelp-2.18.1_1)      (linker error)
>         * finance/gnucash-docs (gnucash-docs-2.2.0)
>         * finance/gnucash (gnucash-2.2.0)
>         ! security/seahorse (gnome-keyring-manager-2.20.0)       
> (configure error)
>
> What is next?

It doesn't show anything. You need to do it again to get actually error.  
The portupgrade has option to save build log or you can go to each port  
and do it by hand to get build error log. As for the seahorse part, are  
you sure you have complete ports tree up to date? The portupgrade is  
supposed to delete gnome-keyring-manager. If you still have it, remove it  
by manual and redo it.

Cheers,
Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
Ok thanks for the suggestions,

I've started with Yelp but am getting this error when doing a make install distclean.

[root at amd_desktop /usr/ports/x11/yelp]# make install distclean
===>  Building for yelp-2.22.1
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1'
Making all in src
gmake[2]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
gmake  all-am
gmake[3]: Entering directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
/bin/sh ../libtool --tag=CXX --mode=link c++ -fno-rtti  -fshort-wchar -O2 -fno-strict-aliasing -pipe -Wall -Wno-unused  -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -O2 -fno-strict-aliasing -pipe  -L/usr/local/lib -o yelp -R/usr/local/lib/firefox  yelp-Yelper.o yelp-yelp-base.o yelp-yelp-bookmarks.o yelp-yelp-debug.o yelp-yelp-error.o yelp-yelp-gecko-utils.o yelp-yelp-html.o yelp-yelp-io-channel.o yelp-yelp-settings.o yelp-yelp-utils.o yelp-yelp-window.o yelp-yelp-marshal.o yelp-yelp-main.o yelp-yelp-print.o yelp-yelp-page.o yelp-yelp-transform.o yelp-yelp-gecko-services.o yelp-yelp-document.o yelp-yelp-toc.o yelp-yelp-docbook.o yelp-yelp-db-print.o yelp-yelp-man-parser.o yelp-yelp-man.o yelp-yelp-info.o yelp-yelp-info-parser.o yelp-gtkentryaction.o yelp-yelp-search.o yelp-yelp-search-parser.o -pthread -L/usr/local/lib -lglade-2.0 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2
 -lart_lgpl_2
 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lcairo -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lX11 -lXfixes -lgconf-2 -lgthread-2.0 -lgmodule-2.0 -lexslt -lxslt -lz -lm -lgcrypt -lgpg-error -lxml2 -lstartup-notification-1 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -liconv -lrarian     -lz -lbz2  -lSM -lICE  -L/usr/local/lib -lX11  -Wl,-rpath,/usr/local/lib/firefox -pthread -L/usr/local/lib/firefox -L/usr/local/lib -lgtkembedmoz -lxpcom -lplds4 -lplc4 -lnspr4     
c++ -fno-rtti -fshort-wchar -O2 -fno-strict-aliasing -pipe -Wall -Wno-unused -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -O2 -fno-strict-aliasing -pipe -o yelp yelp-Yelper.o yelp-yelp-base.o yelp-yelp-bookmarks.o yelp-yelp-debug.o yelp-yelp-error.o yelp-yelp-gecko-utils.o yelp-yelp-html.o yelp-yelp-io-channel.o yelp-yelp-settings.o yelp-yelp-utils.o yelp-yelp-window.o yelp-yelp-marshal.o yelp-yelp-main.o yelp-yelp-print.o yelp-yelp-page.o yelp-yelp-transform.o yelp-yelp-gecko-services.o yelp-yelp-document.o yelp-yelp-toc.o yelp-yelp-docbook.o yelp-yelp-db-print.o yelp-yelp-man-parser.o yelp-yelp-man.o yelp-yelp-info.o yelp-yelp-info-parser.o yelp-gtkentryaction.o yelp-yelp-search.o yelp-yelp-search-parser.o -pthread -Wl,-rpath -Wl,/usr/local/lib/firefox -pthread  -L/usr/local/lib /usr/local/lib/libglade-2.0.so /usr/local/lib/libgnomeui-2.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgnome-keyring.so /usr/local/lib/libjpeg.so
 /usr/local/lib/libbonoboui-2.so
 /usr/local/lib/libgnomecanvas-2.so /usr/local/lib/libgailutil.so /usr/local/lib/libpixman-1.so /usr/local/lib/libgnome-2.so /usr/local/lib/libgnomevfs-2.so -lssl -lcrypto -lutil /usr/local/lib/libesd.so -laudiofile /usr/local/lib/libpopt.so /usr/local/lib/libbonobo-2.so /usr/local/lib/libbonobo-activation.so /usr/local/lib/libORBitCosNaming-2.so /usr/local/lib/libart_lgpl_2.so /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so /usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libXinerama.so /usr/local/lib/libXi.so /usr/local/lib/libXrandr.so /usr/local/lib/libXcursor.so /usr/local/lib/libXcomposite.so /usr/local/lib/libXext.so /usr/local/lib/libXdamage.so /usr/local/lib/libcairo.so /usr/local/lib/libglitz.so -lpng /usr/local/lib/libXrender.so /usr/local/lib/libpangoft2-1.0.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libfontconfig.so /usr/local/lib/libfreetype.so
 /usr/local/lib/libexpat.so
 /usr/local/lib/libXfixes.so /usr/local/lib/libgconf-2.so /usr/local/lib/libORBit-2.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libexslt.so /usr/local/lib/libxslt.so /usr/local/lib/libgcrypt.so /usr/local/lib/libgpg-error.so /usr/local/lib/libxml2.so -lm /usr/local/lib/libstartup-notification-1.so /usr/local/lib/libdbus-glib-1.so /usr/local/lib/libdbus-1.so -pthread /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -licui18n /usr/local/lib/libintl.so /usr/local/lib/libpcre.so /usr/local/lib/libiconv.so /usr/local/lib/librarian.so -lz -lbz2 /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXau.so /usr/local/lib/libXdmcp.so -lrpcsvc -L/usr/local/lib/firefox -lgtkembedmoz -lxpcom -lplds4 -lplc4 -lnspr4   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib/firefox
yelp-Yelper.o(.text+0x26d): In function `Yelper::Find(char const*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0x631): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_StringContainerInit2'
yelp-yelp-gecko-services.o(.text+0x6f4): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0x8fd): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0x9cf): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0xa1e): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0xa6d): In function `PrintListener::SetPrintSettings(_YelpPrintInfo*, int, nsIPrintSettings*)':
: undefined reference to `NS_CStringContainerInit2'
yelp-yelp-gecko-services.o(.text+0xabc): more undefined references to `NS_CStringContainerInit2' follow
/usr/local/lib/libgtkembedmoz.so: undefined reference to `NS_InitXPCOM3'
gmake[3]: *** [yelp] Error 1
gmake[3]: Leaving directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/x11/yelp/work/yelp-2.22.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/yelp/work/yelp-2.22.1'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/x11/yelp.

What can I do to solve this?

        


------------------------------

Message: 28
Date: Mon, 14 Apr 2008 11:36:18 -0700 (PDT)
From: Dino Vliet <dino_vliet at yahoo.com>
Subject: Re: port seahorse won't upgrade properly
To: Jeremy Messenger <mezz7 at cox.net>
Cc: gnome at freebsd.org, freebsd-questions at freebsd.org
Message-ID: <955740.54203.qm at web51105.mail.re2.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1



Jeremy Messenger <mezz7 at cox.net> wrote: On Sun, 13 Apr 2008 15:56:11 -0500, Dino Vliet   
wrote:

>
>
> Jeremy Messenger  wrote: On Sat, 12 Apr 2008 14:45:47  
> -0500, Dino Vliet
> wrote:
>
>> Folks,
>>
>> I've tried to upgrade my ports and get the following error from
>> gnome-applets everytime I do a portupgrade gnome-applets:
>>
>> ain.c:42: error: structure has no member named `gconf'
>> main.c:46: error: structure has no member named `gweather_pref'
>> main.c:46: error: structure has no member named `gconf'
>> gmake[2]: *** [main.o] Error 1
>> gmake[2]: Leaving directory
>> `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
>> gmake[1]: *** [install-recursive] Error 1
>> gmake[1]: Leaving directory
>> `/usr/ports/x11/gnome-applets/work/gnome-applets-2.22.1/gweather'
>> gmake: *** [install-recursive] Error 1
>> *** Error code 2
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> *** Error code 1
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> *** Error code 1
>>
>> Stop in /usr/ports/x11/gnome-applets.
>> ** Command failed [exit code 1]: /usr/bin/script -qa
>> /tmp/portupgrade.38565.0 env UPGRADE_TOOL=portupgrade
>> UPGRADE_PORT=gnome-applets-2.20.1 UPGRADE_PORT_VER=2.20.1 make
>> WITH_FAM_SYSTEM=fam reinstall
>> --->  Restoring the old version
>>
>> ** Fix the installation problem and try again.
>> [Updating the pkgdb  in /var/db/pkg ... - 988 packages
>> found (-0 +1) . done]
>> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>>         ! x11/gnome-applets (gnome-applets-2.20.1)      (install error)
>> ** Could not clean up temporary directory: Directory not empty -
>> /var/tmp/portupgradeOdM6jXk4
>>
>>
>> I'm seeing this on my AMD64 freebsd 6.3 system.
>>
>> Does anyone have ideas?
>
> Did you follow the /usr/ports/UPDATING?
>
> Cheers,
> Mezz
>
>> Thanks
>
> Now I did and chek out the mess:
>
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         - graphics/ImageMagick (marked as IGNORE)
>         - java/diablo-jdk15 (marked as IGNORE)
>         - japanese/lynx (marked as IGNORE)
>         - java/jdk15 (marked as IGNORE)
>         - textproc/p5-Text-ParseWords (port directory error)
>         - x11-servers/xorg-printserver (marked as IGNORE)
>         ! devel/ccrtp (ccrtp-1.5.2)     (unknown build error)
>         * devel/libzrtpcpp (libzrtpcpp-0.9.2)
>         * net/twinkle (twinkle-1.0_4)
>         * multimedia/libxine (libxine-1.1.7_3)
>         ! x11/yelp (yelp-2.18.1_1)      (linker error)
>         * finance/gnucash-docs (gnucash-docs-2.2.0)
>         * finance/gnucash (gnucash-2.2.0)
>         ! security/seahorse (gnome-keyring-manager-2.20.0)       
> (configure error)
>
> What is next?

It doesn't show anything. You need to do it again to get actually error.  
The portupgrade has option to save build log or you can go to each port  
and do it by hand to get build error log. As for the seahorse part, are  
you sure you have complete ports tree up to date? The portupgrade is  
supposed to delete gnome-keyring-manager. If you still have it, remove it  
by manual and redo it.

Cheers,
Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
I've continued with the seahorse problem. In /usr/ports/UPDATING I couldn't find anything regarding seahorse!

So I removed gnome-keyring-manager as you suggested.
Then I did a portsnap fetch update.

I then tried to install seahorse but got the following error:
===>   epiphany-2.22.1.1 depends on shared library: ORBit-2.0 - found
===>   epiphany-2.22.1.1 depends on shared library: pango-1.0.0 - found
===>  Configuring for epiphany-2.22.1.1
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... amd64-portbld-freebsd6.3
checking host system type... amd64-portbld-freebsd6.3
checking for style of include used by gmake... GNU
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking how to run the C++ preprocessor... c++ -E
checking for g77... no
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd6.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd6.3 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 static flag -static works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd6.3 ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing strerror... none required
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking dependency style of c++... (cached) gcc3
checking for glib-genmarshal... /usr/local/bin/glib-genmarshal
checking for glib-mkenums... /usr/local/bin/glib-mkenums
checking for intltool >= 0.35.0... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking what warning flags to pass to the C compiler... 
checking what language compliance flags to pass to the C compiler... 
checking what warning flags to pass to the C++ compiler... -Wall -Wno-unused
checking what language compliance flags to pass to the C++ compiler... 
checking for DEPENDENCIES... configure: error: Package requirements (
                  glib-2.0 >= 2.16.0
                  gmodule-2.0
                  gio-unix-2.0 >= 2.16.0
                  gtk+-2.0 >= 2.12.0
                  gtk+-unix-print-2.0 >= 2.12.0
                  libxml-2.0 >= 2.6.12
                  libxslt >= 1.1.7
                  libgnome-2.0 >= 2.14.0
                  libgnomeui-2.0 >= 2.14.0
                  libglade-2.0 >= 2.3.1                   gconf-2.0
                  gnome-desktop-2.0 >= 2.9.91
                  libstartup-notification-1.0 >= 0.5
                  libnotify >= 0.4
                  ) were not met:

Package gnome-keyring-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-keyring-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gnome-keyring-1', required by 'libgnomeui', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPENDENCIES_CFLAGS
and DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome at FreeBSD.org, and attach (a)
"/usr/ports/www/epiphany/work/epiphany-2.22.1.1/config.log", (b) the output
of the failed make command, and (c) the gnomelogalyzer output. Also, it might
be a good idea to provide an overview of all packages installed on your system
(i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with
the attachment. Try to avoid sending any attachments to the mailing list
(gnome at FreeBSD.org), because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/www/epiphany.
*** Error code 1

Stop in /usr/ports/security/seahorse.
*** Error code 1

Stop in /usr/ports/security/seahorse.


What now?
I really don't have a clue.
Hope you can help me out,

brgds
Dino



        

------------------------------

_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

End of freebsd-questions Digest, Vol 211, Issue 3
*************************************************





More information about the freebsd-questions mailing list