Re: -lgssapi found at link time, but not at run time
> I can see that the libraries are present under /usr/lib: > > r...@lanai:~/src/openssl/curl/curl-7.18.0# ls -l /usr/lib/libgss* > lrwxrwxrwx 1 root root 11 Dec 6 21:56 /usr/lib/libgss.so -> libgss.so.1 > -rwxr-xr-x 1 root bin 76700 Dec 4 07:52 /usr/lib/libgss.so.1 > lrwxrwxrwx 1 root root 18 Dec 6 21:57 /usr/lib/libgssapi.so.2 -> > libgssapi.so.2.0.0 > -rw-r--r-- 1 root root 160428 Nov 25 17:12 /usr/lib/libgssapi.so.2.0.0 > lrwxrwxrwx 1 root root 21 Dec 9 09:04 /usr/lib/libgssapi_krb5.so > -> libgssapi_krb5.so.2.2 > lrwxrwxrwx 1 root root 21 Dec 9 09:04 > /usr/lib/libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2 > -rw-r--r-- 1 root root 171860 Dec 9 03:57 /usr/lib/libgssapi_krb5.so.2.2 > lrwxrwxrwx 1 root root 16 Dec 9 09:04 /usr/lib/libgssrpc.so -> > libgssrpc.so.4.0 > lrwxrwxrwx 1 root root 16 Dec 9 09:04 /usr/lib/libgssrpc.so.4 -> > libgssrpc.so.4.0 > -rw-r--r-- 1 root root 92868 Dec 9 03:57 /usr/lib/libgssrpc.so.4.0 > r...@lanai:~/src/openssl/curl/curl-7.18.0# dpkg -S /usr/lib/libgssapi.so.2 libgssapi2-heimdal: /usr/lib/libgssapi.so.2 r...@lanai:~/src/openssl/curl/curl-7.18.0# dpkg -S /usr/lib/libgssapi.so.2.0.0 libgssapi2-heimdal: /usr/lib/libgssapi.so.2.0.0 SP the package libgssapi2-heimdal provides /usr/lib/libgssapi.so.2 but not /usr/lib/libgssapi.so Is it this package's job to provide this package (by adding an ln -s at the right place in debian/rules)? Or is there something else that isnt doing this? Ainl ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Where is sun defined?
Hi, I was running into a wierd issue with the bind9 package.. which previously built without issues. /usr/bin/cc -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1 -I./unix/include -I. -I./include -I./include -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include -D_REENTRANT -D_XPG4_2 -D__EXTENSIONS__ -fno-strict-aliasing -O2 -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c getaddrinfo.c -fPIC -DPIC -o .libs/getaddrinfo.o getaddrinfo.c: In function 'get_local': getaddrinfo.c:712: error: expected identifier or '(' before numeric constant getaddrinfo.c:717: error: invalid type argument of 'unary *' getaddrinfo.c:721: error: lvalue required as left operand of assignment getaddrinfo.c:722: error: invalid type argument of '->' getaddrinfo.c:722: error: invalid type argument of '->' make[3]: *** [getaddrinfo.lo] Error 1 make[3]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/lwres' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1' make: *** [build-stamp] Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 Looking at the funciton.. it defined a variable as sun. #ifdef AF_LOCAL static int get_local(const char *name, int socktype, struct addrinfo **res) { struct addrinfo *ai; struct sockaddr_un *sunn; if (socktype == 0) return (EAI_SOCKTYPE); ai = ai_alloc(AF_LOCAL, sizeof(*sunn)); if (ai == NULL) return (EAI_MEMORY); sunn = SUN(ai->ai_addr); strncpy(sunn->sun_path, name, sizeof(sunn->sun_path)); ai->ai_socktype = socktype; /* * ai->ai_flags, ai->ai_protocol, ai->ai_canonname, * and ai->ai_next were initialized to zero. */ *res = ai; return (0); } #endif Changing the variable to sunn fixed the issue.. so my question is where is sun defined? The includes in the file are config.h and error.h (apart from the projects internal includes) Anil ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Where is sun defined?
On Fri, Dec 12, 2008 at 9:12 PM, Anil Gulecha wrote: > Hi, > > I was running into a wierd issue with the bind9 package.. which > previously built without issues. > > /usr/bin/cc -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1 > -I./unix/include -I. -I./include -I./include > -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/isc/include > -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include > -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include > -D_REENTRANT -D_XPG4_2 -D__EXTENSIONS__ -fno-strict-aliasing -O2 > -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual > -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c > getaddrinfo.c -fPIC -DPIC -o .libs/getaddrinfo.o > getaddrinfo.c: In function 'get_local': > getaddrinfo.c:712: error: expected identifier or '(' before numeric constant > getaddrinfo.c:717: error: invalid type argument of 'unary *' > getaddrinfo.c:721: error: lvalue required as left operand of assignment > getaddrinfo.c:722: error: invalid type argument of '->' > getaddrinfo.c:722: error: invalid type argument of '->' > make[3]: *** [getaddrinfo.lo] Error 1 > make[3]: Leaving directory > `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/lwres' > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib' > make[1]: *** [subdirs] Error 1 > make[1]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1' > make: *** [build-stamp] Error 2 > dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > > Looking at the funciton.. it defined a variable as sun. > > #ifdef AF_LOCAL > static int > get_local(const char *name, int socktype, struct addrinfo **res) { >struct addrinfo *ai; >struct sockaddr_un *sunn; > >if (socktype == 0) >return (EAI_SOCKTYPE); > >ai = ai_alloc(AF_LOCAL, sizeof(*sunn)); >if (ai == NULL) >return (EAI_MEMORY); > >sunn = SUN(ai->ai_addr); >strncpy(sunn->sun_path, name, sizeof(sunn->sun_path)); > >ai->ai_socktype = socktype; >/* > * ai->ai_flags, ai->ai_protocol, ai->ai_canonname, > * and ai->ai_next were initialized to zero. > */ > >*res = ai; >return (0); > } > #endif > A note that the above function is with sun changed to sunn. Anil ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Where is sun defined?
I think 'sun' might be defined by the compiler. You can add '#undef sun' at the top of the code to get around this. -- David On Fri, Dec 12, 2008 at 10:42 AM, Anil Gulecha wrote: > Hi, > > I was running into a wierd issue with the bind9 package.. which > previously built without issues. > > /usr/bin/cc -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1 > -I./unix/include -I. -I./include -I./include > -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/isc/include > -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include > -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include > -D_REENTRANT -D_XPG4_2 -D__EXTENSIONS__ -fno-strict-aliasing -O2 > -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual > -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c > getaddrinfo.c -fPIC -DPIC -o .libs/getaddrinfo.o > getaddrinfo.c: In function 'get_local': > getaddrinfo.c:712: error: expected identifier or '(' before numeric constant > getaddrinfo.c:717: error: invalid type argument of 'unary *' > getaddrinfo.c:721: error: lvalue required as left operand of assignment > getaddrinfo.c:722: error: invalid type argument of '->' > getaddrinfo.c:722: error: invalid type argument of '->' > make[3]: *** [getaddrinfo.lo] Error 1 > make[3]: Leaving directory > `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/lwres' > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib' > make[1]: *** [subdirs] Error 1 > make[1]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1' > make: *** [build-stamp] Error 2 > dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > > Looking at the funciton.. it defined a variable as sun. > > #ifdef AF_LOCAL > static int > get_local(const char *name, int socktype, struct addrinfo **res) { >struct addrinfo *ai; >struct sockaddr_un *sunn; > >if (socktype == 0) >return (EAI_SOCKTYPE); > >ai = ai_alloc(AF_LOCAL, sizeof(*sunn)); >if (ai == NULL) >return (EAI_MEMORY); > >sunn = SUN(ai->ai_addr); >strncpy(sunn->sun_path, name, sizeof(sunn->sun_path)); > >ai->ai_socktype = socktype; >/* > * ai->ai_flags, ai->ai_protocol, ai->ai_canonname, > * and ai->ai_next were initialized to zero. > */ > >*res = ai; >return (0); > } > #endif > > Changing the variable to sunn fixed the issue.. so my question is > where is sun defined? The includes in the file are config.h and > error.h (apart from the projects internal includes) > > Anil > ___ > gnusol-devel mailing list > gnusol-devel@lists.sonic.net > http://lists.sonic.net/mailman/listinfo/gnusol-devel > > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: -lgssapi found at link time, but not at run time
On linux, ldconfig handles this. So you shouldn't need to add the symlink creation directly to debian/rules. How do other packages create the symlink (I would look myself, but my nexenta box is still down). -- David On Fri, Dec 12, 2008 at 6:11 AM, Anil Gulecha wrote: >> I can see that the libraries are present under /usr/lib: >> >> r...@lanai:~/src/openssl/curl/curl-7.18.0# ls -l /usr/lib/libgss* >> lrwxrwxrwx 1 root root 11 Dec 6 21:56 /usr/lib/libgss.so -> libgss.so.1 >> -rwxr-xr-x 1 root bin 76700 Dec 4 07:52 /usr/lib/libgss.so.1 >> lrwxrwxrwx 1 root root 18 Dec 6 21:57 /usr/lib/libgssapi.so.2 -> >> libgssapi.so.2.0.0 >> -rw-r--r-- 1 root root 160428 Nov 25 17:12 /usr/lib/libgssapi.so.2.0.0 >> lrwxrwxrwx 1 root root 21 Dec 9 09:04 /usr/lib/libgssapi_krb5.so >> -> libgssapi_krb5.so.2.2 >> lrwxrwxrwx 1 root root 21 Dec 9 09:04 >> /usr/lib/libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2 >> -rw-r--r-- 1 root root 171860 Dec 9 03:57 /usr/lib/libgssapi_krb5.so.2.2 >> lrwxrwxrwx 1 root root 16 Dec 9 09:04 /usr/lib/libgssrpc.so -> >> libgssrpc.so.4.0 >> lrwxrwxrwx 1 root root 16 Dec 9 09:04 /usr/lib/libgssrpc.so.4 -> >> libgssrpc.so.4.0 >> -rw-r--r-- 1 root root 92868 Dec 9 03:57 /usr/lib/libgssrpc.so.4.0 >> > > r...@lanai:~/src/openssl/curl/curl-7.18.0# dpkg -S /usr/lib/libgssapi.so.2 > libgssapi2-heimdal: /usr/lib/libgssapi.so.2 > r...@lanai:~/src/openssl/curl/curl-7.18.0# dpkg -S /usr/lib/libgssapi.so.2.0.0 > libgssapi2-heimdal: /usr/lib/libgssapi.so.2.0.0 > > SP the package libgssapi2-heimdal provides /usr/lib/libgssapi.so.2 but > not /usr/lib/libgssapi.so > > Is it this package's job to provide this package (by adding an ln -s > at the right place in debian/rules)? Or is there something else that > isnt doing this? > > Ainl > ___ > gnusol-devel mailing list > gnusol-devel@lists.sonic.net > http://lists.sonic.net/mailman/listinfo/gnusol-devel > > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Nexenta PHP5 Apache update broken
Seems that the latest apache2 or php5 update has now broken things, i updated today, alot of apache2 and php packages were held back so i installed them again and php5 is seemingly busted now, need to roll back to previous, error messages is apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: ld.so.1: apache2: fatal: nspr_use_zone_allocator: can't find symbol failed! any help appreciated ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Ok well updating from Dec 5 gets worse now
this all started with wanting to install postgres on a running box apt-get install postgresql-8.3 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libpq5 libssl0.9.8 nexenta-lu nexenta-sunw openssl openssl-blacklist postgresql-client-8.3 postgresql-client-common postgresql-common ssl-cert sunwcsd sunwcsl sunwcslr sunwcsr sunwcsu sunwopenssl-commands sunwopenssl-libraries sunwopensslr tzdata Suggested packages: oidentd ident-server postgresql-doc-8.3 The following NEW packages will be installed: libpq5 openssl openssl-blacklist postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common ssl-cert sunwopenssl-commands sunwopensslr tzdata The following packages will be upgraded: libssl0.9.8 nexenta-lu nexenta-sunw sunwcsd sunwcsl sunwcslr sunwcsr sunwcsu sunwopenssl-libraries 9 upgraded, 11 newly installed, 0 to remove and 260 not upgraded. Need to get 0B/48.4MB of archives. After this operation, 7955kB of additional disk space will be used. Do you want to continue [Y/n]? ^C Notice it wants to install alot of sunw packages, which must be done via apt-clone, so i move to apt-clone upgrade all goes fine until the reboot in which ssh is broken, so then apt-get install sunwssh, which then force updates openssl... which then seriously break apache and php as mentioned in my prior post in which apt-hget upgrade says apache and all its freinds have been left behing, but due to the openssl upgrade they fail to work anyway, so if i deinstall/resinstall they still apprear broken so, how to deal with this to get a current build without having to blow away a running system? all id like to do is install postgres on whats already running ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Ok well updating from Dec 5 gets worse now
Hi Outback, We recently moved from openssl to sunwopenssl.. and thus are on a recompilation spree of all packages that depend on ssl (and libraries). Many were updated as listed at http://lists.sonic.net/pipermail/nexenta-changes/2008-December/005589.html Php is one of the few packages, and should be shortly fixed. Regards Anil On Fri, Dec 12, 2008 at 11:37 PM, Outback Dingo wrote: > this all started with wanting to install postgres on a running box > > apt-get install postgresql-8.3 > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following extra packages will be installed: > libpq5 libssl0.9.8 nexenta-lu nexenta-sunw openssl openssl-blacklist > postgresql-client-8.3 postgresql-client-common postgresql-common ssl-cert > sunwcsd sunwcsl sunwcslr sunwcsr sunwcsu sunwopenssl-commands > sunwopenssl-libraries > sunwopensslr tzdata > Suggested packages: > oidentd ident-server postgresql-doc-8.3 > The following NEW packages will be installed: > libpq5 openssl openssl-blacklist postgresql-8.3 postgresql-client-8.3 > postgresql-client-common postgresql-common ssl-cert sunwopenssl-commands > sunwopensslr tzdata > The following packages will be upgraded: > libssl0.9.8 nexenta-lu nexenta-sunw sunwcsd sunwcsl sunwcslr sunwcsr > sunwcsu sunwopenssl-libraries > 9 upgraded, 11 newly installed, 0 to remove and 260 not upgraded. > Need to get 0B/48.4MB of archives. > After this operation, 7955kB of additional disk space will be used. > Do you want to continue [Y/n]? ^C > > Notice it wants to install alot of sunw packages, which must be done via > apt-clone, so i move to apt-clone upgrade > all goes fine until the reboot > > in which ssh is broken, so then apt-get install sunwssh, which then force > updates openssl... which then seriously break apache and php as mentioned in > my prior post > in which apt-hget upgrade says apache and all its freinds have been left > behing, but due to the openssl upgrade they fail to work anyway, so if i > deinstall/resinstall they still apprear broken > > so, how to deal with this to get a current build without having to blow away > a running system? all id like to do is install postgres on whats already > running > > > ___ > gnusol-devel mailing list > gnusol-devel@lists.sonic.net > http://lists.sonic.net/mailman/listinfo/gnusol-devel > > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
emacs22 missing xaw3dg dependency
emacs22 needs to depend on xaw3dg (this is the case in the ubuntu package[0]), otherwise install will fail during byte-compiling. -- David [0] http://packages.ubuntu.com/hardy-updates/emacs22 ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Devzone issue
This is a nexenta specific issue, not an issue with devzone. Anil Gulecha wrote: Another devzone-specific issue. On a newly created devzone, r...@kauai:~/src/smf/postgres.2# svcs -xv svc:/network/npiv_config:default (?) State: offline since Sun Nov 30 23:36:37 2008 Reason: Dependency svc:/system/sysevent is absent. See: http://sun.com/msg/SMF-8000-E2 Impact: 19 dependent services are not running: svc:/system/filesystem/local:default svc:/milestone/multi-user:default svc:/system/intrd:default svc:/milestone/multi-user-server:default svc:/system/zones:default svc:/system/sysidtool:net svc:/network/rpc/bind:default svc:/system/filesystem/autofs:default svc:/system/system-log:default svc:/network/ssh:default svc:/network/inetd:default svc:/system/sysidtool:system svc:/network/inetd-upgrade:default svc:/system/cron:default svc:/system/dbus:default svc:/system/hal:default svc:/system/boot-archive-update:default svc:/network/shares/group:default svc:/system/sac:default ~Anil ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: emacs22 missing xaw3dg dependency
Thanks for reporting. Fixed and uploaded. Anil On Sat, Dec 13, 2008 at 8:50 AM, David Bartley wrote: > emacs22 needs to depend on xaw3dg (this is the case in the ubuntu > package[0]), otherwise install will fail during byte-compiling. > > -- David > > [0] http://packages.ubuntu.com/hardy-updates/emacs22 > ___ > gnusol-devel mailing list > gnusol-devel@lists.sonic.net > http://lists.sonic.net/mailman/listinfo/gnusol-devel > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel