Results 1 to 4 of 4

Thread: developing a tcp server being used in knoppix

  1. #1
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    10

    developing a tcp server being used in knoppix

    I'm having some pretty interesting issues. I can put up code on request, but it doesnt seem to be a code issue.

    I've built a process that uses a C++ server and a PHP client (hosted via apache) that communicate via localhost Tcp. On my Gentoo dev machine, they work great. Moving things to Knoppix, the accept() call in the server returns "Invalid Argument".

    I do have slightly different versions of apache, gcc, etc...as apt-get and emerge rab slightly different things by default. But i did a little cross-testing, heres where things get interesting..

    When I boot IN KNOPPIX and chroot into my gentoo partition, I run my server executable. I run the client in the a regular Knoppix web browser (ie my knoppix apache) and it works.

    I boot IN KNOPPIX, re-configure and re-make the server code that is IN MY GENTOO PARTITION (so I'm using Knoppix gcc, libs, etc). I run that executable from a Knoppix shell, it fails. I chroot into my gentoo partition and run that new executable, built from the knoppix shell, and run it..and the whole process works.

    Boy oh boy am i lost. I am totally willing to put together a stripped down version of this issue if someone wants to see it. But I'm thinking/hoping its something to do with the way Knoppix is put together, and i dont really know much about its trickery..

    thanks, dave

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    have you tried compiling it statically? might be some lib's missing...

  3. #3
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    10

    doesnt seem to help..

    but that sounds like it could be the right track..
    how does knoppix interwork with various architectures? ie is there specific C flags i should be passing in to the compiler if im developing for knoppix? right now im jus tpassing in -O0 and -g3 for debug info...plus -static now...

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949

    Re: doesnt seem to help..

    Quote Originally Posted by dkennedy
    but that sounds like it could be the right track..
    how does knoppix interwork with various architectures? ie is there specific C flags i should be passing in to the compiler if im developing for knoppix? right now im jus tpassing in -O0 and -g3 for debug info...plus -static now...
    Unless your working on a differnt Physical architecture with knoppix, the flags should be the same.

Similar Threads

  1. ftp-server and Knoppix 3.4
    By mk in forum Networking
    Replies: 0
    Last Post: 03-26-2005, 01:52 PM
  2. knoppix as a server
    By jpiranha in forum Hdd Install / Debian / Apt
    Replies: 19
    Last Post: 09-24-2004, 05:02 PM
  3. Web developing
    By amm in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 07-09-2004, 11:41 PM
  4. X server crash: "Fatal server error: Active ring not fl
    By cmcclean in forum General Support
    Replies: 1
    Last Post: 10-03-2003, 01:52 PM
  5. Terminal Server: Suspend to Server for clients
    By Robert Michel in forum Ideas
    Replies: 0
    Last Post: 02-26-2003, 01:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Atari 800 Computer W Software RAM Carts Controller AC Adapter And More picture

Atari 800 Computer W Software RAM Carts Controller AC Adapter And More

$349.99



Atari Power Cube 800XL, 600XL, 65XE, 130XE  USB-C Power Supply PSU picture

Atari Power Cube 800XL, 600XL, 65XE, 130XE USB-C Power Supply PSU

$11.25



Atari XEGS in  nice condition.  Pico Cart with Games. 800XL compatible picture

Atari XEGS in nice condition. Pico Cart with Games. 800XL compatible

$285.00



Atari SIO2PC *USB-C*  PC/Mac Disk Drive Emulator Adapter/Device XL/XE 400 800 picture

Atari SIO2PC *USB-C* PC/Mac Disk Drive Emulator Adapter/Device XL/XE 400 800

$15.25



Atari 8bit A8 Pico Cart XL XE XEGS - NEW picture

Atari 8bit A8 Pico Cart XL XE XEGS - NEW

$22.00



Atari 800 130XE 65XE Color S-Video, Composite Video and 2 Channel Audio Cable picture

Atari 800 130XE 65XE Color S-Video, Composite Video and 2 Channel Audio Cable

$29.78



Rana Systems 1000 Atari Compatible Floppy Disk Drive System w/cables. Powers On picture

Rana Systems 1000 Atari Compatible Floppy Disk Drive System w/cables. Powers On

$139.99



Atari 400/800/XL/XE Computer SIO2PC - PC/Mac Disk Drive Emulator Adapter/Device picture

Atari 400/800/XL/XE Computer SIO2PC - PC/Mac Disk Drive Emulator Adapter/Device

$15.25



Atari 800 8-Bit Home Computer Complete in Box Bueatiful Condition Powers up picture

Atari 800 8-Bit Home Computer Complete in Box Bueatiful Condition Powers up

$399.00



Atari ST Lot of 155 DISK 3.5

Atari ST Lot of 155 DISK 3.5" Software Games Utilities Demos

$124.98