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
  •  


Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit picture

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit

$99.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



Lot of 88GB (22x4GB) ADVANTECH 1RX16 DDR4 PC4-2400U AQD-D4U4GN24-HP MEMORY RAM picture

Lot of 88GB (22x4GB) ADVANTECH 1RX16 DDR4 PC4-2400U AQD-D4U4GN24-HP MEMORY RAM

$286.00



Lot of 4 Samsung 8GB 2Rx8 PC4-2133P -RE0-10 M393A1G43DB0-CPB0Q picture

Lot of 4 Samsung 8GB 2Rx8 PC4-2133P -RE0-10 M393A1G43DB0-CPB0Q

$80.00



Lot of 45 Assorted DDR3 16GB DIMM ECC RAM Memory Modules 1000s MHz picture

Lot of 45 Assorted DDR3 16GB DIMM ECC RAM Memory Modules 1000s MHz

$674.99



Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V picture

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V

$41.00



Samsung 16GB LPCAMM2 PC5 7500 DDR5 LPDDR5X CAMM2 M561K1LC4DM0-CCTGM RAM Memory picture

Samsung 16GB LPCAMM2 PC5 7500 DDR5 LPDDR5X CAMM2 M561K1LC4DM0-CCTGM RAM Memory

$189.00



Corsair Vengeance RGB Pro 16GB (2x8GB) DDR4-3600 PC4-28800 DIMM White picture

Corsair Vengeance RGB Pro 16GB (2x8GB) DDR4-3600 PC4-28800 DIMM White

$75.00



Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1 picture

Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1

$399.00