LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2008, 08:30 PM   #1
allwefantasy
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
socketapi compile problems


when i install socketapi-2.1.0 ,i can pass the ./configure,but when i run the make command,the following message are show:
make all-recursive
make[1]: Entering directory `/home/william/Desktop/RSerPool/socketapi-2.1.0'
Making all in socketapi
make[2]: Entering directory `/home/william/Desktop/RSerPool/socketapi-2.1.0/socketapi'
source='thread.cc' object='thread.lo' libtool=yes \
depfile='.deps/thread.Plo' tmpdepfile='.deps/thread.TPlo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o thread.lo `test -f 'thread.cc' || echo './'`thread.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c thread.cc -MT thread.lo -MD -MP -MF .deps/thread.TPlo -fPIC -DPIC -o .libs/thread.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c thread.cc -MT thread.lo -MD -MP -MF .deps/thread.TPlo -o thread.o >/dev/null 2>&1
source='tdstrings.cc' object='tdstrings.lo' libtool=yes \
depfile='.deps/tdstrings.Plo' tmpdepfile='.deps/tdstrings.TPlo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o tdstrings.lo `test -f 'tdstrings.cc' || echo './'`tdstrings.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c tdstrings.cc -MT tdstrings.lo -MD -MP -MF .deps/tdstrings.TPlo -fPIC -DPIC -o .libs/tdstrings.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c tdstrings.cc -MT tdstrings.lo -MD -MP -MF .deps/tdstrings.TPlo -o tdstrings.o >/dev/null 2>&1
source='synchronizable.cc' object='synchronizable.lo' libtool=yes \
depfile='.deps/synchronizable.Plo' tmpdepfile='.deps/synchronizable.TPlo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o synchronizable.lo `test -f 'synchronizable.cc' || echo './'`synchronizable.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c synchronizable.cc -MT synchronizable.lo -MD -MP -MF .deps/synchronizable.TPlo -fPIC -DPIC -o .libs/synchronizable.o
In file included from /usr/include/signal.h:33,
from synchronizable.cc:44:
/usr/include/bits/sigset.h:118: error: expected constructor, destructor, or type conversion before 'int'
/usr/include/bits/sigset.h:119: error: expected constructor, destructor, or type conversion before 'int'
/usr/include/bits/sigset.h:120: error: expected constructor, destructor, or type conversion before 'int'
make[2]: *** [synchronizable.lo] Error 1
make[2]: Leaving directory `/home/william/Desktop/RSerPool/socketapi-2.1.0/socketapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/william/Desktop/RSerPool/socketapi-2.1.0'
make: *** [all] Error 2


and this is the ./configure output:
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.16.0, but GLIB (2.16.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.0... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating socketapi/Makefile
config.status: creating cppsocketapi/Makefile
config.status: creating socket_programs/Makefile
config.status: creating cppsocket_programs/Makefile
config.status: creating scripts/Makefile
config.status: creating config.h
config.status: executing depfiles commands

The socketapi package has been configured with the following options:

Build with Maintainer Mode : yes
Build with SCTP over UDP :

sctplib libraries : /usr/local/lib/libsctplib.a
glib_LIBS : -L/usr/lib -lglib
Thread Libraries : -lpthread

CFLAGS : -g -O2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include
CXXFLAGS : -g -O2 -DLINUX -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include
LDFLAGS

actually,when i install sctp,there seems to be no glib,so i install glib-2.16.0.But the config setup say glib-2,16,3 was found.notice that the program will find the glib-config ,so i installed the glib-dev ,and solve that problem,but still will show the warning.and the make goes wrong. i also download the socketapi.deb package,but it says glib cannot been found and sometimes say sctp are not found ,but i had installed sctp!damn
plz,someone can fix this problem or who have installed socketapi
successfully show me steps or communicate with me.
my e-mail:allwefantasy@gmail.com
thanks.
 
Old 07-11-2008, 07:27 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 8.04 ??

The only version, which can be compiled with "glibc-2.7"
(e.g. libc6-dev 2.7-10ubuntu3) is here :
http://ppa.launchpad.net/dreibh/ubun...n/s/socketapi/

Please look for "socketapi_2.2.0~beta4-0ubuntu.orig.tar.gz"
being the last file on the page.

Regards

P.S.: Remark: The files from "socketapi-2.2.x/socket_programs/.libs
(hidden files) are not installed when doing 'make install'
In earlier packages they are in "doc" :
/usr/share/doc/socketapi1/examples/socket_programs.tar.gz
( e.g. from "socketapi1_1.3.2-1_i386.deb" )

Last edited by knudfl; 07-11-2008 at 08:28 AM. Reason: PS
 
Old 07-13-2008, 03:42 AM   #3
allwefantasy
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Ubuntu 8.04 ??

The only version, which can be compiled with "glibc-2.7"
(e.g. libc6-dev 2.7-10ubuntu3) is here :
http://ppa.launchpad.net/dreibh/ubun...n/s/socketapi/

Please look for "socketapi_2.2.0~beta4-0ubuntu.orig.tar.gz"
being the last file on the page.

Regards

P.S.: Remark: The files from "socketapi-2.2.x/socket_programs/.libs
(hidden files) are not installed when doing 'make install'
In earlier packages they are in "doc" :
/usr/share/doc/socketapi1/examples/socket_programs.tar.gz
( e.g. from "socketapi1_1.3.2-1_i386.deb" )

thanks.
but i failed again.when i use deb file.it says libsctplib1 is not found.
actually,i have installed sctp.

luckily,i have fixed the problem.when i compile and install the socketapi-2.2.0~beta4.orig,i success.thanks again.


actually,many people have the same problem which i have met--glib are not found or some thing else about glib.
there are three ways to fix it.
fist,but also the best:
type the following command:
sudo apt-get install libgtk2.0-common libgtk2.0-dev
and cause gtk depend on glib ,so synaptic will also install glib (even you have installed glib manually,it still work.)everything go fine.
and then you can install sctp or socketapi.(if the socketapi is a deb file,when you install them ,system would still tell you glib is not found,so maybe you can use the source code where the url is provided by knudfl)
second :
type the ./configure --prefix=/usr instead of just ./configure command.the reason is when you use--prefix=/usr,glib will be placed in /usr/lib,otherwise will be located in /usr/local/lib
.without using --prifix,once you install other software ,they will say cannot find glib.
third:
when you just use ./configure ,just like i said before,glib would not be found.but you can add /usr/local/lib to the /etc/ld.so.conf.and then run command like this:ldconfig .and it will work.

Last edited by allwefantasy; 07-13-2008 at 04:21 AM.
 
Old 07-14-2008, 09:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
It's not a good idea to compile and "make install"
a new set of libraries " glib / gtk " in Ubuntu.

More than 600 other packages depends on those 2.

The risk : a total unusable system.

Synaptic' or apt-get' are to be preferred for install
of " system libraries "

Regards

Last edited by knudfl; 07-14-2008 at 09:13 AM.
 
  


Reply

Tags
sctp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile problems edgjerp Mandriva 2 12-08-2004 02:51 PM
problems after compile Gunslinger_ROL Slackware 7 06-18-2004 12:20 AM
Compile problems looper Linux - Software 11 01-15-2004 08:16 PM
compile problems with 2.4.18 Syncrm Slackware 7 09-16-2002 04:29 AM
compile problems zenerdiode Linux - Software 2 12-22-2000 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration