bm_mne
Jan 11 2008, 02:42 PM
| | Hello
I am writing small routine that should resolve URL. Using Solaris 8 box and gcc. I nedd to use 'gethostbyname()' function but after linking, I receive message with linking error.
Does anyone knows which libraries I should include and which gcc option should be used for compiling?
|
Reply
yordan
Jan 17 2008, 04:00 PM
seems to be the same problem as here : http://gcc.gnu.org/ml/gcc-bugs/2002-07/msg00196.html This guy solved his problem by using "cc" instead of gcc.
Reply
ethergeek
Jan 17 2008, 04:57 PM
I never had this problem with gethostbyname, though the last time I coded on Slowaris was using gcc 2.95 and gcc 3.1...so, if you're using a newer version of GCC I can't really speak for why it doesn't work. What linker options are you passing to GCC to compile it? Sounds a little bit like the linker is resolving the wrong library and linking it. I can see problems happening when you link a non-gnu library and expect it to behave like it's gnu counterpart.
Reply
Recent Queries:--
solaris gethostbyname - 3.90 hr back. (2)
-
gcc gethostbyname - 20.19 hr back. (1)
-
getbyhostname solaris - 94.82 hr back. (1)
-
gethostbyname dns - 106.19 hr back. (1)
-
solaris gcc gethostbyname - 123.96 hr back. (1)
-
gethostbyname solaris unix - 128.63 hr back. (1)
-
gethostbyname linux bind lib - 134.06 hr back. (1)
-
gethostbyname difference in linux and solaris - 179.29 hr back. (1)
-
gethostbyname linking error, solaris - 331.93 hr back. (1)
-
gethostbyname linking - 408.95 hr back. (1)
-
gethostbyname free - 418.00 hr back. (1)
-
solaris gethostbyname - 419.67 hr back. (1)
-
gethostbyname solaris - 159.49 hr back. (4)
-
gethostbyname in solaris 8 - 443.48 hr back. (1)
Similar Topics
Keywords : solaris, gethostbyname, dns, resolving
- How Do I Install Solaris?
(5)
Why Solaris Is Different To Other Unix?
a general description of some diferences of Solaris 10 (9) Why SOLARIS is different to other UNIX? Well, Solaris has some important differences with other
Unix. For example the FileSystem. They use ZFile which is file system created by Sun Microsystems an
it is a 128bits file system capable for managing a unlimited capacity (2^128 bytes! it's a
very huge number!) which could be a single Hard Disk or multiple hard disks or a cluster of
computer. Another difference is the Console managment which makes the creation of users, roles and
permission a very fast and easy task by using some wizards and a graphical interfac....
Request For Subforum - Solaris
request to create a subforum for SOLARIS (3) hi, could you create a subforum for SOLARIS inside the subforum 'OS' here in the
'How-To's and Tutorials' forum? i thing that many good tutorials and fast guides could
be included in this category. thanks....
Basic Setup For Apache In Solaris 10
An step by step guide to configure an Apache web server in Solaris 10 (1) HOW TO SETUP APACHE SERVER IN SOLARIS 10 Apache Web Server is already included and installed in
Solaris 10 (Update 08/07). Normally it is already running as a service, but it requires some
configuration to make it run as you desire. I will use the '#' to indicate the commands
you should execute as root, and '%' to indicate it is a command to run as user. 1. Stop
the web server # svcadm disable svc:/network/http:apache2 2. Copy the file
/etc/apache2/httpd.conf-example to /etc/apache2/httpd.conf. The file 'httpd.conf-example'
contains an e....
Need Help Configuring The BIND DNS Server
Make it resolving some domains as I want. (7) Please help me with configurating bind dns server. I configured it for internet domain names
resolving (forwarder) and local domains resolver (xxxxx.ds) now I need that dns resolve internet
domain as I want. cs.kuban.tv as 192.168.144.200 instead of 213.132.64.34, I don't know how to
do it. DNS server I forward request to, resolve it as 213.132.64.34. What I should write in config
file? Slackware linux 10.2 / BIND 9. Thanks for all who will reply. /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
Shmmni, Shmseg, Shmmax : How To Know The Current Value On Solaris ?
I would like to know the current value, how to read the value currentl (3) I have problems when installing Oracle on Solaris. The database files are correctly copied, but the
instance does not startup, in the alert file I have a message saying that the the shm parameters are
not correct. How is it possible to know the current value of SHMMNI, SHMSEG, SHMMAX etc..., really
reading them from the solaris kernel ? I inserted some values in /etc/system, but how to know if
these new values have been taken into account ? The Oracle documentation says "ask the system
administrator". Unfortunately, I am currently the solaris sytem administrator !....
Named In Solaris
Named (1) Hi all I have configured Bind in Solaris Enterprise ..., Now I can dig but can't ping the
server ..I have make all necessary entries in /etc/resolv.conf..but still can dig nameserver but
can't ping why??? I m new to solaris but have configured in Linux lot of times.. help me plzz
THX ....
Whats A Good Graphics Editor For Solaris 10 ?
(8) I've just download Solaris from Sun Download Center. I also installed it. But I need to do some
artwork with photoshop. I don't have any graphic edior for this Operating System. I don't
know what to do next, Does anyone know anyway to run a Win App on Solaris or a good Graphic Editor
for Solaris?....
Suggest Books/tutorials For Solaris 10 Beginner
a little help please (2) ok this isn't a request for a tutorial...cause it would be like asking for someone to write me
an instruction/teaching book for free...lol...unless someone really feels like doing so...lol.
What I am asking for is a couple of book titles that would be good for a beginer to get so as to be
able to have a good referance for this OS. Thanks in advance....
Port Status
Solaris 10 (2) Hi ! I wonder if there is any special command that shows which programs are listening to which
network ports ? I have tried: # ps -ef Then I get something like this: CODE UID PID PPID
C STIME TTY TIME CMD root 0 0 0 07:51:10 ? 0:09
sched root 1 0 0 07:51:10 ? 0:00 /sbin/init root 2 0
0 07:51:10 ? 0:00 pageout root 3 0 0 07:51:10 ?
0:01 fsflush webservd 262 247 0 07:51:34 ? 0....
DNS Server On Solaris 10
How to setup DNS server on solaris 10 (2) Hi ! I wonder if anybody knows how to set up a DNS server on Solaris 10. I know that the
service should be started with: # svadm enable network/dns/server But when I write: # svcs -l
/network/dns/server I get: fmri svc:/network/dns/server:default enabled false state
disabled next_state none state_time Wed Sep 28 11:53:52 2005 restarter
svc:/system/svc/restarter:default dependency require_all/none file://localhost/etc/named.conf
(absent) dependency require_all/none svc:/system/filesystem/minimal (online) dependency
require_any/er....
Debian 3.1 Or Solaris 10
Please come in and express yourself (5) Alright, I'm buying a new computer and I'm planing to use my old one as an exclusive Unix
based PC, mostly to learn and practice, but to implement a couple of servers as well (mostly a
webserver, a mailserver and fileserver). So I need your opinion, which of these 2 great OSs should
I give a try first?....
Need Help In Resolving MySQL Database Crashes
Need Help With The Subject Of "Database" (7) Ok, I am not a genius when it comes to databaes, this topic is mostly reffering to "MySql"
databases, I could use some help. On other free hosting sites, they give you MySql databases (maybe
2 or more) and I would set up phpnuke, vbulletin, phpbb, or anything else that needed a database,
and when users started registering with my forums, the database would in a way "crash". Is this
because some databases can only hold so much information, or what is causing this? I told you
before, I do not know too much in the field of "databases" so sorry if you think this post is po....
Mounting Ext2 Filesystem In Solaris 10
(1) Hello everyone, I decided to make a move from Linux, to Solaris, for the time being, and was
wondering how I would go about mounting an ext2 filesystem under Solaris. I used it for all my
backup stuff, which I moved to another hard disk, and now that I'm on Solaris, I need it back.....
Someone from the Sun?
Solaris OS family (18) I've use Solaris 9 on X86 platform and i think that nobody does a best work than Sun
Microsystem: Stabe, Fast, Secure the only problem was my Net Card and the hardware in general,
it's very difficult to configure it /sad.gif' border='0' style='vertical-align:middle'
alt='sad.gif' /> ....
Looking for solaris, gethostbyname, dns, resolving
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for solaris, gethostbyname, dns, resolving
|
advertisement
|
|